Fully autonomous epic execution. Runs until ALL children are CLOSED. Loops through beads issues, runs /implement on each, validates with /vibe. NO human prompts, NO stopping.
View on GitHubFebruary 1, 2026
Select agents to install to:
npx add-skill https://github.com/boshu2/agentops/blob/main/skills/crank/SKILL.md -a claude-code --skill crankInstallation paths:
.claude/skills/crank/# Crank Skill > **Quick Ref:** Autonomous epic execution. Loops `/implement` on all issues until DONE. Output: closed issues + final vibe. **YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.** Autonomous execution: implement all issues until the epic is DONE. **Requires:** bd CLI (beads) for issue tracking, OR in-session TaskList for task-based tracking. ## Global Limits **MAX_EPIC_ITERATIONS = 50** (hard limit across entire epic) This prevents infinite loops on circular dependencies or cascading failures. **Why 50?** - Typical epic: 5-10 issues - With retries: ~5 iterations per issue max - 50 = safe upper bound (10 issues × 5 retries) **MAX_PARALLEL_AGENTS = 3** (hard limit per wave) When multiple issues are ready, execute them in parallel using subagents. Capped at 3 to prevent context explosion. **Why 3?** - Each subagent returns results that accumulate in context - 3 parallel agents = manageable context growth - Higher parallelism risks context overflow on complex issues ## Completion Enforcement (The Sisyphus Rule) **THE SISYPHUS RULE:** Not done until explicitly DONE. After each task, output completion marker: - `<promise>DONE</promise>` - Epic truly complete, all issues closed - `<promise>BLOCKED</promise>` - Cannot proceed (with reason) - `<promise>PARTIAL</promise>` - Incomplete (with remaining items) **Never claim completion without the marker.** ## Execution Steps Given `/crank [epic-id]`: ### Step 1: Identify the Epic **If epic ID provided:** Use it directly. Do NOT ask for confirmation. **If no epic ID:** Discover it: ```bash bd list --type epic --status open 2>/dev/null | head -5 ``` If bd not available, look for a plan: ```bash ls -lt .agents/plans/ 2>/dev/null | head -3 ``` If multiple epics found, ask user which one. ### Step 1a: Initialize Iteration Counter ```bash # Initialize crank tracking in epic notes bd update <epic-id> --append-notes "CRANK_START: iteration=0 at $(date -Iseconds)" 2>/dev/null ``` Track in memo