Create hook JSON files for policy enforcement and agent lifecycle automation.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "create-hook" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/vscode/main/extensions/copilot/assets/prompts/skills/create-hook/SKILL.md 2. Save it as ~/.claude/skills/create-hook/SKILL.md 3. Reload skills and tell me it's ready
Generate a hook.json for an agent system that checks for sensitive information and missing required metadata before commit; block the action if validation fails and return clear error messages.
A hook.json for pre-commit validation with trigger timing, validation rules, blocking conditions, and error messages.
Create a hook.json that automatically sends a notification to a specified webhook after an agent task completes, including a result summary, execution duration, and status fields.
A post-task hook.json defining the notification target, message payload structure, and trigger conditions.
Generate a hook.json that automatically loads default context, checks required environment variables, and records initialization logs when an agent session starts.
A session-start hook configuration with initialization steps, environment checks, and logging actions.
Related skill: agent-customization. Load and follow hooks.md for template and principles.
Guide the user to create a hook in .github/hooks/.
First, review the conversation history. If the user has been expressing concerns about agent behavior (e.g., "don't run this command", "always check before doing X", "inject this context"), generalize that into a hook. Extract:
If no clear policy need emerges from the conversation, clarify:
Remember to follow the agent-customization guidelines to create highly effective hooks.
Generate or update session run commands for faster project startup and testing.
Update the GitHub Copilot CLI or SDK to a newer version.
Analyze V8 heap snapshots to find memory leaks and object retention.
Merge session branch changes back into the base branch cleanly.
Launch VS Code OSS in isolation for automation and multi-process debugging.
Configure and manage agents, skills, prompts, and integrations in the editor.
Create, configure, and refine Hookify rules and syntax patterns.
Create Claude Code plugin hooks for tool validation and event-driven automation.
Add webhook and callback flows for AI agents with waiting and verification.
Manage, send, track, and relay webhook events for autonomous agents.
Helps create and audit short-form content hooks, scripts, CTAs, and retention.
Create reusable custom agent files tailored to specific roles and workflows.