Write Hook
Developmentwrite-hookWrite Hook is an Agent Skill for development published in the facebook/sapling repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Create a Mononoke server-side hook with 3-diff split (tests, wiring, implementation), unit tests, and integration tests
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/facebook/sapling/blob/HEAD/eden/mononoke/.llms/skills/write-hook/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/write-hook, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Write a Mononoke Hook
Create a server-side Mononoke hook based on the user's request.
- When creating a new hook, read references/implementation-guide.md
- When writing hook logic that touches manifests or derived data, read references/performance-constraints.md
- When writing unit or integration tests, read references/testing-patterns.md
- Before submitting, read references/common-mistakes.md
- After implementation is complete, read references/configerator-setup.md for enabling the hook in production