skills/install-worktree-rule/SKILL.md
Install or uninstall the worktree-and-PR git workflow rule into a project. Triggers on 'install worktree rule', 'add worktree rule', or /install-worktree-rule.
npx skillsauth add agentic-cookbook/tools install-worktree-ruleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
If $ARGUMENTS is --version, respond with exactly:
install-worktree-rule v1.0.0
Then stop.
Otherwise, print install-worktree-rule v1.0.0 as the first line of output, then proceed.
Version check: Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and extract the version: field from frontmatter. Compare to this skill's version (1.0.0). If they differ, print:
⚠ This skill is running v1.0.0 but vA.B.C is installed. Restart the session to use the latest version.
Continue running — do not stop.
Installs the always-use-worktrees-and-prs.md rule into the current project's .claude/rules/ directory. This rule enforces a structured git workflow: every change goes through a worktree, a draft PR, incremental commits, and a squash merge.
If $ARGUMENTS contains --uninstall:
.claude/rules/always-use-worktrees-and-prs.md exists.✓ Removed .claude/rules/always-use-worktrees-and-prs.md
Nothing to remove — .claude/rules/always-use-worktrees-and-prs.md not found.
Verify the current directory is a git repository (check for .git/ or .git file).
ERROR: Not a git repository. and stop.Check if .claude/rules/always-use-worktrees-and-prs.md already exists.
${CLAUDE_SKILL_DIR}/references/always-use-worktrees-and-prs.md.Already installed and up to date. and stop.Updating .claude/rules/always-use-worktrees-and-prs.md to latest version. and continue to Step 2..claude/rules/ if it doesn't exist.${CLAUDE_SKILL_DIR}/references/always-use-worktrees-and-prs.md..claude/rules/always-use-worktrees-and-prs.md.✓ Installed .claude/rules/always-use-worktrees-and-prs.md
This rule enforces:
• All work in git worktrees (never commit to main directly)
• Draft PR created before any code
• Atomic commits pushed after each change
• Squash merge and worktree cleanup
To remove: /install-worktree-rule --uninstall
testing
Validate cookbook integrity — frontmatter, cross-references, indexes, skills, rules, file placement. Run from cookbook or consuming project.
tools
Remove the agentic cookbook from your project. Removes rules, state files, CLAUDE.md section, and optionally global plugins and status line.
tools
Analyze a macOS SwiftUI app and plan its conversion to native AppKit. Triggers on 'port to AppKit', 'convert SwiftUI to AppKit', 'remove SwiftUI', or /port-swiftui-to-appkit.
tools
--- name: plan-cookbook-recipe version: 2.3.0 description: Interactively design a new cookbook recipe through guided discussion disable-model-invocation: true context: fork allowed-tools: Read, Glob, Grep, Agent, Write, Edit, AskUserQuestion, Bash(git *), Bash(mkdir *), Bash(ls *) argument-hint: [recipe-name] [--version] --- # Plan Agentic Cookbook Recipe v2.3.0 ## Startup **First action**: If `$ARGUMENTS` is `--version`, print `plan-cookbook-recipe v2.3.0` and stop. Otherwise, print `plan-c