From claude-stack
Autonomous workflow loop - runs the full skill chain automatically with circuit breaker and stuck detection
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-stack:s-autoThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the full skill chain automatically. Monitors progress, detects failures, and stops when the job is done.
Run the full skill chain automatically. Monitors progress, detects failures, and stops when the job is done.
/s:new already run).planning/STATE.md must existRead .planning/STATE.md to determine the current position in the workflow chain.
Identify which phase and task is active. Determine the next skill in the chain:
CHAIN ORDER:
/s:discuss → /s:brainstorm → /s:plan → /s:build → /s:review → /s:verify → /s:ship → /s:compound
Map the current state to the next skill:
/s:discuss/s:brainstorm/s:plan/s:build/s:review/s:verify/s:ship/s:compoundMaintain a circuit breaker with 3 states:
Display circuit breaker state at each step:
[AUTO] Circuit: CLOSED | Step 3/8: running /s:plan...
[AUTO] Circuit: OPEN | STOPPED - same error 3x: "test suite failed"
[AUTO] Circuit: HALF-OPEN | Testing: running /s:build after user fix...
Track errors across steps. An error is "stuck" when:
When stuck is detected:
[AUTO] STUCK DETECTED after 3 identical failures.
Error: {error_message}
Skill: /s:{skill_name}
Options:
1. Fix the issue and type "retry"
2. Skip this step: "skip"
3. Abort autonomous mode: "abort"
For each skill in the chain:
[AUTO] Step {N}/8: running /s:{skill}...Progress display format:
[AUTO] ================================
[AUTO] Step 3/8: /s:plan
[AUTO] Status: RUNNING
[AUTO] Circuit: CLOSED
[AUTO] Errors so far: 0
[AUTO] ================================
After each skill completes:
[AUTO] Step 3/8: /s:plan - COMPLETE
[AUTO] Next: /s:build (starting in 3s, type 'pause' to stop)
Between each skill execution:
The autonomous loop ONLY terminates when BOTH conditions are met:
Condition A: All phase tasks complete
.planning/ROADMAP.md and check all tasks are marked [x].planning/phases/N/PLAN.md and verify all tasks doneCondition B: Verification passes
/s:verify ran and produced a passing evidence tableREQUIREMENTS.md have status "done" or "verified"If only one condition is met:
/s:verify again, then /s:debug if needed/s:buildWhen both exit conditions are satisfied:
/s:compound (NEVER skip - captures learnings)[AUTO] ================================
[AUTO] AUTONOMOUS LOOP COMPLETE
[AUTO] ================================
[AUTO] Skills executed: 8
[AUTO] Errors encountered: 1 (resolved)
[AUTO] Total tasks completed: {N}
[AUTO] Verification: PASSED
[AUTO] Learnings saved: docs/solutions/{file}
[AUTO] ================================
[AUTO] Run /s:retro for a retrospective.
At ANY point during execution, the user can:
After any interrupt, update STATE.md with:
If a skill fails:
/s:build even in auto modenpx claudepluginhub bdarbaz/claude-stack-pluginOrchestrates multi-phase project execution by dispatching dedicated persona agents for planning, execution, verification, and review. Use after spec approval for automated phase chaining.
Auto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task decomposition, code implementation, testing (L1-L4), and iterative quality gates until completion. Invoke with /autoworker.
Autonomous technical lead that drives projects from commander's intent to completion using an OODA loop. Invokes other skills for implementation, refactoring, review, and bug-hunting.