set
Skill36 starsChanged 8 months agoMITView on GitHub
Manage git worktrees for parallel AI agent development. Use this when asked to create, list, open, close, or merge worktrees, or when working with set-* commands.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- tjmode/koovitheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- tjmode/koovi★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-commSkill
- cross-project-channelSkill
- e2e-runsSkill
- evidence-disciplineSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- openspec-verify-changeSkill
- regression-baselineSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Use these from the main repository to manage worktrees.
- Distinctive: line 54
If the branch exists on remote, it will be checked out and tracked automatically.
- Distinctive: line 81
Keep branch (can reopen later)
- Distinctive: line 82
Delete local branch only
- Distinctive: line 83
Delete local and remote branch
- Distinctive: line 107
Use these from within a worktree to manage your own state.
- Distinctive: line 128
Commit and push your changes
- Very specific: line 220
Use /set:audit to scan and interactively address gaps.
- Very specific: line 226
Use /set:sentinel to start and supervise a set-orchestrate run with intelligent monitoring.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Worktree Management Skill
Manage git worktrees for parallel AI agent development.
Context Detection
First, detect which mode you're operating in:
# Check if we're in a worktree (not the main repo)
if git rev-parse --is-inside-work-tree &>/dev/null; then
BRANCH=$(git branch --show-current)
if [[ "$BRANCH" == change/* ]]; then
CHANGE_ID="${BRANCH#change/}"
echo "Running in worktree: $CHANGE_ID"
MODE="worktree"
else
echo "Running in main repository"
MODE="main"
fi
fiCentral Control Commands
Use these from the main repository to manage worktrees.
List Worktrees
set-listList all active worktrees with their change IDs and paths.
To see remote branches available for checkout:
set-list --remoteCreate New Worktree
set-new <change-id>Creates a new worktree at ../<project>-<change-id>/ with branch change/<change-id>.
If the branch exists on remote, it will be checked out and tracked automatically.
To force create a new branch even if remote exists:
set-new <change-id> --newOpen Worktree for Work
set-work <change-id>Opens the worktree in Zed editor with Claude Code. This launches a new agent session in that worktree context.
To open in terminal instead:
set-work <change-id> --terminalClose Worktree
set-close <change-id>Removes the worktree. Interactive mode asks what to do with the branch:
- Keep branch (can reopen later)
- Delete local branch only
- Delete local and remote branch
Non-interactive options:
set-close <change-id> --keep-branch # Keep the branch
set-close <change-id> --delete-remote # Delete both local and remoteMerge Worktree
set-merge <change-id>Merges the worktree branch into the target branch (default: main).
Options:
set-merge <change-id> --target develop # Merge to specific branch
set-merge <change-id> --no-delete # Keep branch after mergeSelf-Control Commands
Use these from within a worktree to manage your own state.
Push Current Branch
git push -u origin $(git branch --show-current)Pushes the current branch to remote and sets up tracking.
Get Current Change ID
CHANGE_ID=$(git branch --show-current | sed 's|change/||')
echo "Current change: $CHANGE_ID"Close Own Worktree
From within a worktree, you cannot directly close it (the directory is in use). Instead:
- Commit and push your changes
- Exit the agent session
- From main repo, run:
set-close <change-id>
Or instruct the user:
To close this worktree after I exit:
cd <main-repo-path>
set-close <change-id>Merge Own Work
CHANGE_ID=$(git branch --show-current | sed 's|change/||')
set-merge "$CHANGE_ID"This will merge your current branch to the target and optionally close the worktree.
Workflow Examples
Central Agent: Create and Delegate Work
# List current work items
set-list
# Create new worktree for a task
set-new fix-login-bug
# Open agent in that worktree
set-work fix-login-bugWorktree Agent: Complete and Hand Off
# Check current context
git branch --show-current # -> change/fix-login-bug
# Do work...
# ...
# Push changes
git push -u origin change/fix-login-bug
# Report back to user that work is ready for merge
echo "Work complete. To merge: set-merge fix-login-bug"Full Lifecycle
# 1. Central agent creates worktree
set-new implement-feature
# 2. Central agent opens worktree for work
set-work implement-feature
# 3. Worktree agent does the work, pushes
git add -A && git commit -m "Implement feature"
git push -u origin change/implement-feature
# 4. Central agent merges when ready
set-merge implement-feature
# 5. Worktree is cleaned up automatically (or use set-close)Project Health Audit
Scan Project Health
set-audit scan # Human-readable report
set-audit scan --json # Machine-readable JSON
set-audit scan --condensed # Summary line onlyScans 6 project health dimensions:
- Claude Code Config — permissions, hooks, agents, rules
- Design Documentation — docs/design/*.md coverage
- OpenSpec Config — config.yaml context population
- Code Quality Signals — large files, unused code tooling
- CLAUDE.md Structure — conventions, managed sections
- Gitignore Coverage — sensitive file patterns
Output includes evidence (what exists), delta (✅/⚠️/❌), and guidance (source pointers for what the LLM should READ to create missing content).
Interactive Remediation
Use /set:audit to scan and interactively address gaps. The skill runs the scan, presents findings, and helps create project-specific content by reading the actual codebase — not templates.
Orchestration Supervisor
Sentinel (Agent Mode)
Use /set:sentinel to start and supervise a set-orchestrate run with intelligent monitoring. The agent starts the orchestrator in background, polls state every 15s, and makes decisions on crashes (log diagnosis), checkpoints (auto-approve periodic), and completion (summary report).
/set:sentinel # basic supervision
/set:sentinel --spec docs/v5.md --max-parallel 3 # with optionsSentinel (Bash Fallback)
For environments without Claude agent access:
The sentinel is launched via the web UI "Start Sentinel" button or the /set:sentinel skill.
For non-interactive orchestration, use set-orchestrate start --spec docs/v5.md directly.
See docs/sentinel.md for full documentation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

