Skip to content

[claude-code-guide] Learn prompt-based hooks #309

Description

@sylvansys

Parent Issue: #308
Agent Type: claude-code-guide
Branch: 308-feature/can-you-review-prompt-based-hooks-to-see


Task Description

Learn prompt-based hooks

Task Prompt

Explain prompt-based hooks in Claude Code in detail. I need to understand:

  1. What are prompt-based hooks and how do they differ from command hooks?
  2. How do you define a prompt-based hook in hooks.json?
  3. What is the structure/schema for prompt-based hooks?
  4. What events support prompt-based hooks (especially SubagentStop and Stop)?
  5. How does the prompt get executed and what context does it have access to?
  6. Any examples of prompt-based hooks in use

Provide comprehensive documentation with examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    subissueSub-issue linked to parent issuetaskTask tracked from Claude Code session

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions