.github/skills/engineering/git-worktree-manager/SKILL.md
Git Worktree Manager
npx skillsauth add desenyon/infinitecontex git-worktree-managerInstall 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.
Tier: POWERFUL
Category: Engineering
Domain: Parallel Development & Branch Isolation
Use this skill to run parallel feature work safely with Git worktrees. It standardizes branch isolation, port allocation, environment sync, and cleanup so each worktree behaves like an independent local app without stepping on another branch.
This skill is optimized for multi-agent workflows where each agent or terminal session owns one worktree.
.env*) from main repo to new worktreerm -rf operationspython scripts/worktree_manager.py \
--repo . \
--branch feature/new-auth \
--name wt-auth \
--base-branch main \
--install-deps \
--format text
If you use JSON automation input:
cat config.json | python scripts/worktree_manager.py --format json
# or
python scripts/worktree_manager.py --input config.json --format json
Recommended convention:
main/develop) on default portEach worktree contains .worktree-ports.json with assigned ports.
python scripts/worktree_cleanup.py --repo . --stale-days 14 --format text
python scripts/worktree_cleanup.py --repo . --remove-merged --format text
Use per-worktree override files mapped from allocated ports. The script outputs a deterministic port map; apply it to docker-compose.worktree.yml.
See docker-compose-patterns.md for concrete templates.
Default strategy is base + (index * stride) with collision checks:
30005432637910See port-allocation-strategy.md for the full strategy and edge cases.
python scripts/worktree_manager.py --help
.env* filespython scripts/worktree_cleanup.py --help
Both tools support stdin JSON and --input file mode for automation pipelines.
localhost:3000 across all brancheswt-<topic>).--format json for machine flows and --format text for human review.Before claiming setup complete:
git worktree list shows expected path + branch..worktree-ports.json exists and contains unique ports..env files copied successfully (if present in source repo).0 (if enabled).Use this quick selector before creating a new worktree:
main/develop).git status branch matches expected branch..worktree-ports.json exists.wt-1234-auth).git worktree add fails due to existing path: inspect path, do not overwrite.testing
When the user wants to optimize any form that is NOT signup/registration — including lead capture forms, contact forms, demo request forms, application forms, survey forms, or checkout forms. Also use when the user mentions "form optimization," "lead form conversions," "form friction," "form fields," "form completion rate," or "contact form." For signup/registration forms, see signup-flow-cro. For popups containing forms, see popup-cro.
development
Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and forecasts. Also applicable when users mention financial modeling, cash flow analysis, company valuation, financial projections, or spreadsheet analysis.
testing
SaaS financial health advisor. Use when a user shares revenue or customer numbers, or mentions ARR, MRR, churn, LTV, CAC, NRR, or asks how their SaaS business is doing.
development
Performs financial ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction for strategic decision-making. Use when analyzing financial statements, building valuation models, assessing budget variances, or constructing financial projections and forecasts. Also applicable when users mention financial modeling, cash flow analysis, company valuation, financial projections, or spreadsheet analysis.