FreeSkills
Commits, branches and sync with the but CLI
- 361361 downloads
- 198198 likes
- 103103 saves
- Claude Code
- Codex
- Cursor
- and 3 more
Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans
Use this resource to block direct commits to main and make agents work in worktrees
New
Free
In a terminal, from the folder you want:
npx --yes palatekit@latest install global-hook-block-main-commitsWith no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.
First time: connect the CLI with
npx --yes palatekit@latest loginThe agent installs a global pre-commit hook via core.hooksPath, which refuses commits to main and agent commits in the main checkout. It then delegates to each repository's own hook and provides an escape hatch for humans.
Mostly picked by
Updated November 2, 2026
You say
“Install the global hook that blocks commits to main across all my repositories.”

Skill published by onsager-ai under the MIT license, delivered in its original version.
Listed unmodified
« worktree-discipline » (onsager-ai, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.
–
No ratings yet
Loading reviews…