/wicked-garden:wicked-garden-worktreesfrom wicked-garden
Manages Git worktree hygiene: detects subagent dangling commits, orphan branches, and time-sensitive dangling-commit GC. Use when verifying subagent SHAs, cleaning worktrees, or salvaging orphaned work.
Ships in wicked-garden. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Git worktrees let multiple branches be checked out simultaneously and let agent runtimes (a harness's worktree-isolated agents, crew runners, etc.) make changes in isolation without disturbing the main checkout. Useful — and a quiet source of three repeating bugs.
Subagent dispatched into an isolated worktree commits inside that worktree. Branch ref lives only in the worktree; when the worktree is removed, the commit is dangling — reachable only via git fsck --no-reflogs --lost-found until git gc collects it (14-day default via gc.pruneExpire). The subagent's "Commit SHA: abc1234" report becomes a lie. Code may also be sitting in the main worktree as unstaged changes.
Trust-but-verify rule — every time a subagent reports a commit, run the ancestry check from refs/recipes.md §1.
Worktree dir is gone (auto-cleaned, deleted weeks ago); branch (local or origin/crew/<name>) still points at commits NOT in main; git worktree list says nothing about it. Bulk-deleting branches because "no worktree = no work" silently loses everything between fork-point and tip.
Detection commands in refs/recipes.md §2. Each branch needs an explicit salvage decision (see Salvage flow below).
Commit object exists but no branch points at it. Time sensitive — once git gc runs (default grace 14 days), the object is unreachable forever. List + preserve commands in refs/recipes.md §3.
Decision must be prompt — there is no third state. Either preserve or accept the loss.
Branch + remote ref state, not on-disk worktree presence. Worktree-dir absence is the LEAST reliable indicator of merge state. Safe-delete recipe in refs/recipes.md §4.
For each candidate branch:
git worktree list (every registered worktree, wherever the harness placed it — agent runtimes keep theirs under the project's hidden tool directory) plus project-specific dirs (e.g. <project state dir>/worktrees/crew-*).refs/recipes.md §5.Manual file-by-file extraction often beats git cherry-pick on noisy branches — see refs/recipes.md §7.
Dangling commit SHA + unstaged changes in main worktree shows up when the subagent edited shared files (main worktree sees as unstaged) before its own commit (lands in worktree branch). Both halves need attention. Re-landing recipe in refs/recipes.md §6.
Whenever a subagent's summary says "commit SHA: XYZ":
git merge-base --is-ancestor XYZ origin/main — must return true (exit 0). Use origin/main (not HEAD); the latter false-positives if you're on a feature branch. git fetch origin main first if origin is stale.git status -s — should be empty if the commit is real and completegit show XYZ --stat | head — confirm the change set matches what the subagent describedSkipping this check has cost time before. The closing comment on a GitHub issue citing a dangling SHA is misleading future archaeology.
wicked-garden:engineering:review — that
reviews code changes; this reviews whether the changes actually
landed where they should.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden91 skills in this plugin
/wicked-garden-agenticAgentic-systems domain skill: review, design, audit, and framework selection
for AI agent systems. Routes to one of four actions (review | design | audit |
frameworks) backed by the rubrics in refs/.
Use when: "agentic review", "review this agent system", "full agentic codebase
review", "trust and safety audit", "audit my agents for GDPR/HIPAA/SOC2/NIST
compliance", "design an agentic system", "design a multi-agent architecture",
"which agentic framework should I use", "compare LangChain vs CrewAI vs
AutoGen", or any former /wicked-garden:agentic:{review|design|audit|frameworks}
invocation.
Disambiguation: this domain reviews and designs **AI agent systems**. For
ordinary source code use the engineering review; for a binding go/no-go
verdict use the archetype review (see docs/domains.md → "review appears in
three domains").
/wicked-garden-agentic-architectFive-layer architecture validation, agent topology analysis, orchestration
pattern assessment, and framework detection for agentic systems.
Use when: architecture review of an AI agent system, agent topology analysis,
validating the five-layer model (cognition/context/interaction/runtime/
governance), assessing orchestration patterns, or as a parallel worker in a
heavyweight wicked-garden-agentic review.
Other plugins' skills for the same job