/meta:hook-creatorfrom meta
Create event hooks for Claude Code that trigger on specific events. Generate hooks with proper JSON configuration for automating workflows. Use when: creating hooks, setting up event triggers, automating on file saves or tool calls. Activates for: "create hook", "generate hook", "new hook", "event hook", "make hook"
Ships in meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate event-driven hooks for Claude Code with proper configuration.
Hooks allow you to run shell commands or scripts in response to Claude Code events:
Event Types:
user-prompt-submit - Before Claude processes user inputtool-call - Before/after tool executionsession-start - When Claude Code session beginssession-end - When session endsAsk the user:
Location:
~/.claude/skills/super-claude/plugins/[plugin]/hooks/hooks.json/path/to/project/.claude/hooks/hooks.jsonFormat:
{
"hooks": [
{
"name": "hook-name",
"event": "event-type",
"when": "before|after",
"command": "shell command to execute",
"filter": {
"tool": "specific-tool-name",
"filePattern": "*.ts"
},
"description": "What this hook does"
}
]
}
Ensure:
{
"hooks": [
{
"name": "format-on-save",
"event": "tool-call",
"when": "after",
"command": "prettier --write $FILE",
"filter": {
"tool": "Write",
"filePattern": "*.{ts,tsx,js,jsx,md,json}"
},
"description": "Automatically format files after writing"
}
]
}
{
"hooks": [
{
"name": "type-check-pre-commit",
"event": "user-prompt-submit",
"when": "before",
"command": "npm run type-check",
"filter": {
"promptPattern": "commit|create.*commit"
},
"description": "Run type check before git commits"
}
]
}
{
"hooks": [
{
"name": "test-after-edit",
"event": "tool-call",
"when": "after",
"command": "npm test -- --related $FILE --run",
"filter": {
"tool": "Edit",
"filePattern": "*.{ts,tsx}"
},
"description": "Run related tests after editing source files"
}
]
}
{
"hooks": [
{
"name": "validate-openapi-schema",
"event": "tool-call",
"when": "after",
"command": "npm run validate:openapi",
"filter": {
"tool": "Write",
"filePattern": "**/api/**/*.ts"
},
"description": "Validate OpenAPI schema after API changes"
}
]
}
{
"hooks": [
{
"name": "a11y-check-components",
"event": "tool-call",
"when": "after",
"command": "npm run a11y:check $FILE",
"filter": {
"tool": "Write",
"filePattern": "**/components/**/*.tsx"
},
"description": "Run accessibility checks on component changes"
}
]
}
{
"hooks": [
{
"name": "session-start-checks",
"event": "session-start",
"when": "after",
"command": "./scripts/check-dependencies.sh",
"description": "Check dependencies and environment on session start"
}
]
}
user-prompt-submit
when: "before" to validate/modify inputwhen: "after" to log/process completed requeststool-call
filter.tool to specify which tool$FILE variablesession-start
session-end
{
"filter": {
"tool": "Write", // Specific tool name
"filePattern": "*.ts", // Glob pattern for files
"promptPattern": "commit|deploy", // Regex for prompt content
"fileType": "typescript" // File type detection
}
}
Available in commands:
$FILE - File path being operated on$TOOL - Tool name being used$PROJECT - Project root directory$PWD - Current working directory⚠️ Important: Hooks execute shell commands
Solution:
Solution:
Solution:
{
"name": "conditional-hook",
"event": "tool-call",
"when": "after",
"command": "if [ -f package.json ]; then npm test; fi",
"description": "Run tests only if package.json exists"
}
{
"name": "format-and-lint",
"event": "tool-call",
"when": "after",
"command": "prettier --write $FILE && eslint --fix $FILE",
"filter": {
"tool": "Write",
"filePattern": "*.ts"
},
"description": "Format and lint TypeScript files"
}
{
"name": "background-validation",
"event": "tool-call",
"when": "after",
"command": "npm run validate &",
"description": "Run validation in background"
}
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/agent-creatorCreate specialized agents for Claude Code that handle specific tasks autonomously.
Generate agent definitions with proper configuration and best practices.
Use when: creating agents, generating sub-agents, setting up autonomous workflows.
Activates for: "create agent", "generate agent", "new agent", "sub-agent", "make agent"
/command-creatorCreate custom slash commands for Claude Code with proper markdown structure and YAML frontmatter.
Use when: creating commands, generating slash commands, making workflow automations.
Activates for: "create command", "generate command", "new command", "slash command", "make command"
/plugin-creatorCreate complete Claude Code plugins with proper structure including skills, commands, agents, and hooks.
Generates plugin manifests and directory structures for distribution.
Use when: building plugins, creating plugin packages, distributing skills to marketplace.
Activates for: "create plugin", "generate plugin", "new plugin", "plugin package", "make plugin"
npx claudepluginhub jbabin91/super-claude --plugin metaOther plugins' skills for the same job