AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

git-worktree-manager

Use when running several branches or agents in parallel on one repo. Creates worktrees with isolated ports and env via worktree_manager.py and removes stale ones with worktree_cleanup.py.

Original source
alirezarezvani
License
MIT
Pinned revision
e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read alirezarezvani--git-worktree-manager at revision e4a1dc3695908dd5a6c811cc76ab7aa4cf95f2f0, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 4

README.md

Git Worktree Manager

Production workflow for parallel branch development with isolated ports, env sync, and cleanup safety checks. This skill packages practical CLI tooling and operating guidance for multi-worktree teams.

Quick Start

# Create + prepare a worktree
python scripts/worktree_manager.py \
  --repo . \
  --branch feature/api-hardening \
  --name wt-api-hardening \
  --base-branch main \
  --install-deps \
  --format text

# Review stale worktrees
python scripts/worktree_cleanup.py --repo . --stale-days 14 --format text

Included Tools

  • scripts/worktree_manager.py: create/list-prep workflow, deterministic ports, .env* sync, optional dependency install
  • scripts/worktree_cleanup.py: stale/dirty/merged analysis with optional safe removal

Both support --input <json-file> and stdin JSON for automation.

References

  • references/port-allocation-strategy.md
  • references/docker-compose-patterns.md

Installation

Claude Code

cp -R engineering/git-worktree-manager ~/.claude/skills/git-worktree-manager

OpenAI Codex

cp -R engineering/git-worktree-manager ~/.codex/skills/git-worktree-manager

OpenClaw

cp -R engineering/git-worktree-manager ~/.openclaw/skills/git-worktree-manager