Stop Rules — Development skill for Claude Code
Holds your coding agent to your team's written coding rules.
How to install Stop Rules
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open haystackeditor/stop-rules and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Stop Rules does
Holds your coding agent to your team's written coding rules. A stop hook for Claude Code, Codex, Cursor and ten more agents that asks Jev whether each changed piece breaks a rule, and hands the piece back to the agent.
Alternatives in Development
- Fast Jev Compaction — Claude Code plugin that replaces the compaction summary with Jev decisions: every tool call and result is scor 425 ★
- Clarity Interview — Co-write a piece with clarity, starting from an interview 189 ★
- Voice Guard — Use to check ONE already-written piece of copy against a voice guide before it ships — it spawns ONE fresh sib 130 ★
README
stop-rules
`stop-rules` holds your coding agent to your team's written coding rules. When the agent finishes a turn, it cuts the code changed since the last check into pieces, one git diff hunk each, and asks [Jev](https://typesafe.ai) one yes or no question per piece and per rule, with 25 lines of the surrounding file so the question can be answered. If a rule is likely broken, it hands that piece of code back to the agent so it fixes it before you see it. Jev is the default judge; OpenAI's `gpt-6-luna` is the other one, see [Which judge](#which-judge).

[examples/demo/README.md](examples/demo/README.md) explains the demo, where every number on it comes from, and the commands that reproduce the checks.
Cutting by git diff hunk is the default, and it needs nothing installed. A team that would rather have one whole function per piece switches to tree-sitter with `init --cut functions`, which is 10 languages and a few megabytes of grammar files. Both are in [docs/TUNING.md](docs/TUNING.md).
Using a coding agent? Point it at [AGENT-SETUP.md](AGENT-SETUP.md) and let it do the install.
Quick start, just you
git clone https://github.com/haystackeditor/stop-rules
node stop-rules/bin/stop-rules.mjs init --dir /path/to/your/repo
No `npm install`, no build: `bin/stop-rules.mjs` is committed and ready to run.
`init` finds which coding agents your repo already uses, copies itself into `.stop-rules/stop-rules.mjs` there, writes a starter `.stop-rules.md`, and wires the hook into each agent's own config file. That is one file of 390 KB and no grammar files at all, because cutting by git diff hunk parses nothing. It says so:
cutting by git diff hunk, no g
Related Skills
Docforge Dashboard
Previews the written docs as a local, browsable site — rebuilds only what changed, never touches the repo's pa
Jev Guard
Probability-scored guardrails for Claude Code: deny rule-breaking edits and unasked-for deploys, route your do
Jev Doctor
Check JevSubRouter configuration and whether routing is live
Jev Status
Show whether the gate is running, which mode it is in, and what it has decided so far
Friday Upgrade
Checks whether a newer Friday Shortcuts release exists, upgrades your install, and tells you exactly what chan
Prompt Skill For Sri
A Claude skill that interrogates before it builds, so an engineering request never has to be explained twice.
Related Agents
TS Planner
Breaks down a TypeScript task into a plan and decides which agent should do each piece of work. Returns a read
Mission Planner.Agent
Breaks a LongRun mission into phases, workstreams, artifact expectations, and verifiable stop conditions.
Cursor Spec Reviewer
Use this agent when you need to verify that converted Cursor rule files (.mdc) produced by Caruso strictly con