mcpbeat

Write Hook

facebook/write-hook

Create a Mononoke server-side hook with 3-diff split (tests, wiring, implementation), unit tests, and integration tests

3k tokens
context cost
the whole folder, loaded on every use
6
files
instructions only
0
copies elsewhere
how many repositories repackaged it
6956
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/facebook/sapling --skill write-hook

What comes with it

10 610 bytes besides the instruction
references/common-mistakes.md
references/configerator-setup.md
references/implementation-guide.md
references/performance-constraints.md
references/testing-patterns.md

The instruction itself

1 sections, as written by the author

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

How to use it

Copy the folder

Take facebook/write-hook from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.