# Write Hook

> Write 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

- Skill name: `write-hook`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/facebook/sapling/blob/HEAD/eden/mononoke/.llms/skills/write-hook/SKILL.md
- Repository: facebook/sapling (6,926 GitHub stars when collected)

## SKILL.md

# 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](references/implementation-guide.md)
- When writing hook logic that touches manifests or derived data, read [references/performance-constraints.md](references/performance-constraints.md)
- When writing unit or integration tests, read [references/testing-patterns.md](references/testing-patterns.md)
- Before submitting, read [references/common-mistakes.md](references/common-mistakes.md)
- After implementation is complete, read [references/configerator-setup.md](references/configerator-setup.md) for enabling the hook in production

---

Source: https://www.openparable.com/skill/development/write-hook (OpenParable). Cite the canonical URL above.
