mk:worktree — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited mk:worktree (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Manages git worktrees for parallel agent isolation. Each parallel agent works in its own worktree to prevent file conflicts. Backed by scripts/worktree.cjs.
See references/commands.md for full option reference and JSON field docs.
Pre-flight: get repo info, then create a parallel worktree.
# Step 1: verify repo state
node .claude/skills/worktree/scripts/worktree.cjs info --json
# Step 2: create parallel agent worktree
node .claude/skills/worktree/scripts/worktree.cjs create "{agent-name}" --orchestrated --jsonBefore creating the first parallel worktree in a repo, verify .worktrees/ is in .gitignore. If not, append it:
echo '.worktrees/' >> .gitignoreThe script places the worktree at .worktrees/{agent-name} on branch parallel/{agent-name}-{timestamp} per parallel-execution-rules.md Rule 3.
Merge a completed parallel branch back to the feature branch using no-fast-forward:
git merge --no-ff {branch} -m "merge: parallel/{agent-name} into {feature-branch}"On conflict: list conflicting files, STOP, report to orchestrator. Do NOT auto-resolve — human or lead agent decides.
On success: run the full test suite (parallel-execution-rules.md Rule 5). After integration test passes, delegate to project-manager (background):
"Generate delivery status for plan at {plan-dir}. Write report to
{plan-dir}/status-reports/{YYMMDD}-status.md (create subdir if absent).
Load template from tasks/templates/pm-status-template.md.
Run in the background — do not block the caller."Skip PM delegation if MEOWKIT_PM_AUTO=off is set in environment.
Before removing a worktree, ensure the parallel agent has released its task ownership in mk:task-queue. Then:
node .claude/skills/worktree/scripts/worktree.cjs remove "{agent-name}" --jsonNever cleanup a worktree with uncommitted changes — commit or stash first.
node .claude/skills/worktree/scripts/worktree.cjs list --jsonHealth audit of all active worktrees (ahead/behind divergence, dirty state):
node .claude/skills/worktree/scripts/worktree.cjs status --jsonClean stale worktree metadata. Always dry-run first:
# Safe first-pass
node .claude/skills/worktree/scripts/worktree.cjs prune --dry-run --json
# Execute if no surprises
node .claude/skills/worktree/scripts/worktree.cjs prune --jsonBRANCH_CHECKED_OUT error; timestamps in orchestrated branches prevent collisions
git worktree remove fails silently if the directory was already deleted manually —script checks existence first via getWorktreeRecords()
.git — force-pushing from a worktree affects the maincheckout (Safety Rule: NEVER force-push)
.worktrees/ directory must be gitignored — add to .gitignore before first parallel runSKILL.md/CLAUDE.md are common in parallel runs — always stopand report to orchestrator, never auto-resolve
mk:task-queue ownership must be released before worktree cleanup, or the next agentcannot claim that task
statuscommand shows current count
: in skill names need quoting in shell commandsmain or master — only on feature branches.git.worktrees/ is in .gitignore before creating the first worktreemk:task-queue task ownership before calling cleanupmk:cook, mk:workflow-orchestrator) when decomposing COMPLEX tasksmk:task-queue for task claiming and ownership enforcement during parallel runsproject-manager after merge integration test passes(post-phase-delegation Rule 1, background mode)
MEOWKIT_PM_AUTO=off — skip PM delegation when set~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.