计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
create-hook【效率与协作】Create a hook (.json) to enforce policy or automate agent lifecycle events.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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:
cwd defaulting to the workspace root (when a workspace folder is available); otherwise cwd falls back to the user home directory. Relative paths resolve from cwd. Absolute paths are fine when intentional — just be deliberate about which you use.Remember to follow the agent-customization guidelines to create highly effective hooks.