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.
Validate Azure DevOps pipeline changes and troubleshoot builds and YAML faster.
Generate or update chat customization files for AI coding agents.
Find and read Code OSS dev build logs for faster debugging.
Merge session branch changes back into the base branch cleanly.
Create and maintain screenshot test fixtures for UI components effectively.
Launch VS Code OSS in isolation for automation and multi-process debugging.
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.
Create reusable custom agent files tailored to specific roles and workflows.
Adds human approval and policy checks to risky AI file operations.