install-worktree-rule
OfficialEnforce worktree-first PR workflow
System Documentation
What problem does it solve?
This Skill automates installing or removing a repository rule that enforces a disciplined git workflow where all work happens in worktrees, draft pull requests are created before coding, commits are atomic and pushed incrementally, and merges are squashed. It removes manual copying, inconsistent team practices, and onboarding friction by bundling the policy into the project's .claude/rules directory.
Core Features & Use Cases
- Install or update rule: Writes the bundled always-use-worktrees-and-prs rule into .claude/rules/, creating the directory if needed and reporting status.
- Uninstall: Removes the rule file cleanly when requested.
- Verification and reporting: Compares installed and bundled versions, reports up-to-date status, and provides clear success or error messages.
- Use Case: Onboard a repository to a consistent team workflow or update the policy across projects without manual file edits.
Quick Start
Run the install-worktree-rule command from the project root to add the always-use-worktrees-and-prs rule into .claude/rules/ or run it with --uninstall to remove the rule.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: install-worktree-rule Download link: https://github.com/agentic-cookbook/tools/archive/main.zip#install-worktree-rule Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.