
Guardrails: 6 Hooks and 3 Skills for Claude Code
Six hooks and three skills (task branch, guardrails setup and session close) that let Claude Code work alone, and several sessions share one repository, without wrecking it. A write or a commit on main, or on another session's branch, is refused with the command that starts the task's own branch. A folder another session works in is held for it, and a second session gets a folder of its own. A deletion git cannot undo is asked about first, naming what would be lost. A key never reaches a tracked file, a commit or a push. And the agent cannot stop while your project's own checks are red. The corrections you give are kept and turned into rules at the end of the session. Plain files you can read, tests you can run yourself, no network and nothing sent anywhere. Hooks for Claude Code; the skills also work in Codex, Cursor, GitHub Copilot and Gemini CLI.
One payment. The files are yours to download right away.
- Instant downloadIn your account the moment the payment goes through, with the receipt by email.
- Personal and commercial useOne license for one person, in your own work and your clients'. The files themselves are not shared or resold.
- Includes
- 6 hooks and 3 agent skills
- Formats
- A Claude Code plugin: hooks in Node with the tests that prove each one, and SKILL.md folders, with no dependency
- Download
- 39 files in one zip, 0.1 MB
- Works with
- Claude Code; the skills also in Codex, Cursor, GitHub Copilot and Gemini CLI
- Category
- Agent Skills
- Released
- 21 Nov 2026
- License
- Personal and commercial use
Where to use it
Long runs alone
Leave the agent working: it stays on its own branch, asks before deleting what git cannot bring back, and keeps keys out of every commit.
Several sessions
Two or more sessions on one repository, each in a folder of its own, merged one at a time: nobody commits another session's half-done work.
Done means done
Your project's own checks run before the agent may stop: the ones your CI runs, not only the tests it remembers.
One rule for the team
One .guardrails.json in the repository, and every session and every teammate meets the same protected branches and checks.
Corrections that stick
What you correct is kept, and turned into a check or a line of CLAUDE.md at the end, so the next session starts knowing it.
More in Agent Skills



