Claude-skill-registry aico-worktree

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/aico-worktree" ~/.claude/skills/majiayu000-claude-skill-registry-aico-worktree && rm -rf "$T"
manifest: skills/data/aico-worktree/SKILL.md
safety · automated scan (low risk)
This is a pattern-based risk scan, not a security review. Our crawler flagged:
  • pip install
Always read a skill's source content before installing. Patterns alone don't mean the skill is malicious — but they warrant attention.
source content

Git Worktree

Process

  1. Check existing directories:
    .worktrees/
    or
    worktrees/
  2. Verify gitignored: MUST verify before creating
  3. Create worktree:
    git worktree add <path> -b <branch>
  4. Run project setup: Auto-detect (npm/pip/go/cargo)
  5. Verify baseline tests: Run tests, report status

Directory Selection

PriorityCheck
1Existing
.worktrees/
2Existing
worktrees/
3Project config/docs
4Ask user

Safety Verification

For project-local directories:

git check-ignore -q .worktrees 2>/dev/null

If NOT ignored → Add to

.gitignore
first.

Creation Steps

# Create worktree with new branch
git worktree add ".worktrees/$BRANCH_NAME" -b "$BRANCH_NAME"
cd ".worktrees/$BRANCH_NAME"

# Run project setup (auto-detect)
if [ -f package.json ]; then npm install; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

# Verify baseline tests
npm test / pytest / go test ./...

Report Format

Worktree ready at <full-path>
Branch: <branch-name>
Tests: <N> passing
Ready to implement <feature-name>

Worktree Management

git worktree list          # List all
git worktree remove <path> # Remove after merge
git worktree prune         # Clean stale

Key Rules

  • ALWAYS verify directory is gitignored for project-local
  • MUST run baseline tests before reporting ready
  • If tests fail → Report failures, ask whether to proceed
  • ALWAYS auto-detect and run project setup

Common Mistakes

  • ❌ Skip ignore verification → ✅ Always verify gitignored
  • ❌ Skip baseline tests → ✅ Verify clean starting point
  • ❌ Proceed with failing tests → ✅ Ask user first
  • ❌ Leave stale worktrees → ✅ Remove after merge