From claude-decide
Continuously run the decide operator in force mode, auto-restarting after each cycle. Use when the user wants to run /decide in a loop without manual re-invocation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-decide:decide-loopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Runs the Claude Operator (`/decide force`) in a continuous loop. Each cycle executes in a **fresh Claude session** via `claude -p`, ensuring full superpowers skill access (brainstorming, writing-plans, executing-plans) on every cycle.
Runs the Claude Operator (/decide force) in a continuous loop. Each cycle executes in a fresh Claude session via claude -p, ensuring full superpowers skill access (brainstorming, writing-plans, executing-plans) on every cycle.
/decide-loop # run until stopped (default max: 50 cycles)
/decide-loop 10 # run 10 cycles then stop
/decide-loop edit # review backlog before starting loop
/decide-loop 5 edit # review backlog, then run 5 cycles
This skill manages the loop — checking stop conditions, handling stuck recovery, and optionally reviewing the backlog. The actual cycle execution is delegated to a fresh claude -p "/decide force" session each time, so every cycle gets clean context and full skill access.
Read the args. If a number is provided, use it as max_cycles. Otherwise default to 50. If "edit" is present, set edit_mode to true.
If .claude-operator/ does not exist, run the Onboarding Phase from the decide skill (read /Users/maxwellnewman/.claude/skills/decide/SKILL.md for the onboarding instructions — this is the one interactive part). Set mode to "force" during initialization.
If .claude-operator/state.json exists, set its mode to "force".
Set a cycle counter to 0.
Output:
Starting decide loop (force mode, max cycles: [N]).
Touch .claude-operator/stop to halt after the current cycle.
If edit_mode is false, skip this step entirely.
Read .claude-operator/backlog.json. Filter to items with status: "queued", sorted by priority_score descending.
If no queued items exist, output: "No queued backlog items to review. The loop will run research to discover new work." and skip to Step 3.
Present the full queued backlog as a numbered table:
Backlog review — [N] queued items (sorted by priority):
| # | ID | Priority | Idea |
|---|-----|----------|------|
| 1 | BL-031 | 0.68 | /decide rollback command |
| 2 | BL-008 | 0.65 | Backlog inspection commands |
| ... | ... | ... | ... |
For each item, respond with:
approve — keep as-is, will be built in priority order
reject — remove from queue (won't be built)
bump N — change priority to N (0.0-1.0)
skip — leave as-is, move to next
Or use bulk commands:
approve all — approve all remaining items
reject [#,#,...] — reject specific items by number
bump [#] [score] — change priority of specific item
Review items now:
Wait for the user to respond. Process their feedback:
priority_score to the new value.After the user has reviewed all items (or used a bulk command), write the updated backlog.json.
Output: "Backlog review complete. [N] items approved, [M] rejected, [P] reprioritized. Starting loop..."
Repeat the following until a stop condition is met:
Check stop conditions (in order):
.claude-operator/stop exists → remove the file, output "Stop signal detected. Loop stopped." and exit..claude-operator/stuck.json exists → enter Stuck Recovery Phase (read the stuck report from the file and present it to the user conversationally, then handle their response: debug together, skip, or stop). After resolution, continue the loop. If the user chooses "stop", exit the loop.state.json status is "paused" → output "Operator is paused." and exit.Execute one cycle via fresh session:
--- Cycle [N] of [max] ---claude -p "Invoke the /decide skill with argument 'force' using the Skill tool now. Run ALL phases of one complete cycle (research → propose → execute → update memory) without stopping between phases. Do not exit between phases — continue until the cycle is complete (state reset to research, cycle incremented). CRITICAL: During the Execute Phase, you MUST invoke these three superpowers skills in order via the Skill tool: (1) superpowers:brainstorming, (2) superpowers:writing-plans, (3) superpowers:executing-plans. Do NOT skip any of these. Do NOT implement changes directly." --dangerously-skip-permissions
/decide force as a proper skill (setting ${CLAUDE_SKILL_DIR} correctly for prompt template paths).--dangerously-skip-permissions flag allows the session to use tools without interactive prompts.Cycle [N] complete.Loop back to step 1.
Each cycle runs in a fresh claude -p session because:
The tradeoff is that each cycle takes longer to start (session initialization), but the quality of each cycle is significantly higher.
Cycle N -- [short description] (PRD-NNN). One commit per cycle, including .claude-operator/ state files.skills/ in the repo, use bash install.sh to sync to ~/.claude/skills/. Never use raw cp commands.install.sh handles copying skills to the user's Claude skills directory. Always use it instead of manual copies./decideclaude -p, not inline execution.npx claudepluginhub maxwhoppa/claude-decide --plugin claude-decideRe-enters long-running Plans.md execution with fresh context using /loop dynamic mode and ScheduleWakeup. Invokes harness-work per cycle. Useful for autonomous multi-cycle task execution with configurable pacing.
Automates long-running task loops using Claude Code's /loop and ScheduleWakeup for autonomous re-entry with fresh context each cycle. Useful for unattended multi-cycle task execution.
Interviews user to generate PRD.json with scope, criteria, and phases, then invokes loop skill for iterative, one-story-per-cycle task implementation in Claude Code.