From loopd
Use when the user invokes `/loopd <name>` to start a loopd session. The argument is either `pm` (run the PM merge-orchestration round) or a worker name (run that worker's round in its worktree). Reads .loopd/LOOPD.md + .loopd/LOOP_<NAME>.md, runs the appropriate pre-round, picks a task from Active or Queue, delegates via parallel subagent dispatch, runs gates, commits, pushes, updates the tracker, schedules next wake.
How this skill is triggered — by the user, by Claude, or both
Slash command
/loopd:loopdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are starting a loopd session. The skill argument is either `pm` or a worker name. Find `.loopd/` via `git rev-parse --show-toplevel`/../.loopd or by searching upward.
You are starting a loopd session. The skill argument is either pm or a worker name. Find .loopd/ via git rev-parse --show-toplevel/../.loopd or by searching upward.
git rev-parse --show-toplevel succeeds..loopd/config.sh exists at the repo root.source .loopd/config.sh (via a Bash tool call) — you now have PROJECT, MAIN_BRANCH, PM_WORKTREE, WORKER_NAMES[], WORKER_BRANCHES[], WORKER_WORKTREES[].If any of these fail, tell the user loopd isn't installed here and point them at /loopd-init.
Parse the skill argument. Valid values: pm, or any element of WORKER_NAMES[]. Anything else → error to user.
pm → go to PM round section.You are the Project Manager. You never touch domain code; you only orchestrate.
cd "$PM_WORKTREE"
bash .loopd/pm-round.sh
pm-round.sh does: fetch origin, FF-merge every WORKER_BRANCHES[*] into MAIN_BRANCH, cherry-pick + force-with-lease reset on divergence, log every action to .loopd/pm-round.log.
.loopd/LOOPD.md (charter) if you need protocol refresher..loopd/LOOP_PM.md — your Roadmap, Blocker matrix, PM log..loopd/LOOP_<WORKER>.md — to confirm each worker's Queue depth ≥ 3, spot cross-loop conflicts, detect blockers.git log --oneline -20 — see what each worker shipped this round.Dispatch investigation subagents in a single message with multiple Agent calls. Common PM investigations:
Codex: use spawn_agent per references/codex-tools.md.
For each worker whose Queue is thin: specify a new task in their ## Queue (with enough detail that they can pick it up without asking). Keep Queue ≥ 3.
Update LOOP_PM.md:
## Roadmap if priorities shifted.## Blocker matrix for cross-loop blockers.## Log.Only PM pushes main. If state changed:
git add .loopd/LOOP_*.md
git commit -m "pm(round): <summary>"
git push origin "$MAIN_BRANCH"
If nothing changed (quiet round), skip the commit.
Use ScheduleWakeup (or Codex equivalent):
Pass the same /loopd pm invocation as the wake prompt.
You are a worker. The skill argument was your name (e.g., backend). Resolve:
idx = index of your name in WORKER_NAMES.BRANCH = WORKER_BRANCHES[idx].WORKTREE = WORKER_WORKTREES[idx].cd "$WORKTREE"
git fetch origin
git rebase "origin/$MAIN_BRANCH"
Conflicts in your domain → resolve. Conflicts outside your domain → stop, flag in Blocked by in your LOOP_<NAME>.md, let PM reconcile. Do not resolve other workers' code blindly.
.loopd/LOOPD.md if you need protocol refresher..loopd/LOOP_<YOUR_NAME_UPPER>.md — your Active task, Queue, Blocked by, Backlog, PM log, Log. The header prose block tells you your Domain, Bar, and Gates.Priority order:
## Active task populated → work it.## Queue into Active.## Backlog into Active.Never wait for PM to populate Active — the Queue exists for exactly this reason.
Single message, multiple Agent calls:
Codex: use spawn_agent per references/codex-tools.md.
The ## Gates prose in your LOOP_<NAME>.md lists the exact commands. Typically:
If gates fail, fix or roll back; do not ship red.
Move completed item out of ## Active task, append one-line entry to ## Log (keep last 5 — older lives in git log), pull next task from ## Queue into ## Active task.
Do NOT maintain a Completed list. git log --oneline --author=... reconstructs it.
Use the commit prefix convention from your LOOP_<NAME>.md:
git add <specific files>
git commit -m "<prefix>(<topic>): <one-liner>"
git push origin "$BRANCH"
Never git push origin $MAIN_BRANCH. The pre-push hook will reject it; do not bypass.
Use ScheduleWakeup with the same /loopd <your-name> invocation. Typical: 270s if active round, 600s if quiet.
code-reviewer before commit.main. Ever.Blocked by, wake PM.pm-round.sh reports FF-fail → the script auto-handles it (cherry-pick + force-with-lease reset); read .loopd/pm-round.log to verify no surprises..loopd/config.sh sources with errors → likely typo; have the user inspect, or re-run /loopd-init with --repair (TBD).npx claudepluginhub shmor3/mrskills --plugin loopdProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.