skills/agentflow/SKILL.md
Orchestrate autonomous AI development pipelines through your Kanban board (Asana, GitHub Projects, Linear). Manages multi-worker Claude Code dispatch, deterministic quality gates, adversarial review, per-task cost tracking, and crash-proof pipeline execution.
npx skillsauth add Regtransfers/agency-agents-mcp agentflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@ AgentFlow
@ Overview
AgentFlow turns your existing Kanban board into a fully autonomous AI development pipeline. Instead of building custom orchestration infrastructure, it treats your project management tool (Asana, GitHub Projects, Linear) as a distributed state machine — tasks move through stages, AI agents read and write state via comments, and humans intervene through the same UI they already use.
The result is complete pipeline observability from your phone, free crash recovery (state lives in your PM tool, not in memory), and human override at any point by dragging a card.
@ When to Use This Skill
@ Core Concepts
@ 7-Stage Kanban Pipeline
Tasks flow through: Backlog, Research, Build, Review, Test, Integrate, Done. Each stage has specific gates. The Kanban board IS the orchestration layer — no separate database, no message queue, no custom infrastructure.
@ Stateless Orchestrator
A crontab-driven one-shot sweep runs every 15 minutes. No daemon, no session dependency. If it crashes, the next sweep picks up where it left off because all state lives in your PM tool.
@ Deterministic Before Probabilistic
Hard gates (tsc + eslint + tests) run before any AI review, catching roughly 60% of issues at near-zero cost. AI review comes after, as a second layer.
@ Adversarial Review
A different AI agent reviews code and must list 3 things wrong before deciding to pass. This prevents rubber-stamp approvals.
@ Transitive Priority Dispatch
Tasks that unblock the most downstream work get built first, automatically computing the critical path.
@ Skills / Commands
@ /spec-to-board Decomposes a SPEC.md into atomic tasks on your Kanban board with dependencies mapped.
@ /sdlc-orchestrate Dispatches tasks to workers based on transitive priority and conflict detection. Runs as a crontab sweep.
@ /sdlc-worker --slot <N> Runs a worker in a terminal slot that picks up tasks, builds code, and creates PRs. Run 3-4 workers in parallel.
@ /sdlc-health Real-time pipeline status dashboard showing current stage, assigned agent, retry count, and accumulated cost for every task.
@ /sdlc-stop Graceful shutdown: active workers finish their current task, unstarted tasks return to Backlog.
@ Step-by-Step Guide
@ 1. Write Your Spec
Create a SPEC.md for your project describing what you want to build.
@ 2. Decompose Into Tasks
claude -p "/spec-to-board"
This reads your SPEC.md, decomposes it into atomic tasks, maps dependencies, and creates them on your Kanban board.
@ 3. Start Workers
Open 3-4 terminal windows, each as a worker slot:
# Terminal 2 — Builder
claude -p "/sdlc-worker --slot T2"
# Terminal 3 — Builder
claude -p "/sdlc-worker --slot T3"
# Terminal 4 — Reviewer
claude -p "/sdlc-worker --slot T4"
# Terminal 5 — Tester
claude -p "/sdlc-worker --slot T5"
@ 4. Start the Orchestrator
# Add to crontab (runs every 15 minutes)
crontab -e
# Add: */15 * * * * ~/.claude/sdlc/agentflow-cron.sh >> /tmp/agentflow-orchestrate.log 2>&1
@ 5. Monitor and Intervene
Open your Kanban board on your phone. Watch tasks flow through the pipeline. Drag any card to "Needs Human" to intervene. Run /sdlc-health for a terminal dashboard.
@ 6. Stop the Pipeline
claude -p "/sdlc-stop"
@ Quality Gates
Each stage enforces specific gates before promotion:
@ Cost Tracking
Per-task cost tracking with stage ceilings (Sonnet defaults):
Automatic guardrails: warning at $3/$8, hard stop at $10/$20 (Sonnet/Opus) with human escalation.
@ Safety and Recovery
@ Installation
# Clone the repo
git clone https://github.com/UrRhb/agentflow.git
# Copy skills and prompts to your Claude Code config
cp -r agentflow/skills/* ~/.claude/skills/
cp -r agentflow/prompts/* ~/.claude/sdlc/prompts/
cp agentflow/conventions.md ~/.claude/sdlc/conventions.md
Or install as a Claude Code plugin:
/plugin marketplace add UrRhb/agentflow
/plugin install agentflow
@ Best Practices
@ Troubleshooting
@ Problem: Worker appears stuck or dead Symptoms: Task card hasn't moved in 15+ minutes, no new comments Solution: The orchestrator detects dead agents via heartbeat and reassigns after 10 minutes. If the issue persists, run /sdlc-health to check status and manually drag the card back to Backlog.
@ Problem: Cost guardrail triggered Symptoms: Task moved to "Needs Human" with COST:CRITICAL tag Solution: Review the task's comment thread for accumulated context. Decide whether to increase the budget, simplify the task, or split it into smaller pieces.
@ Problem: Integration test failure after merge Symptoms: Task auto-reverted from main Solution: The auto-revert preserves main stability. Check the task's retry context in comments, which carries what was tried and what failed. The next worker assigned will use this context.
@ Related Skills
@ Additional Resources
@ Limitations
tools
Build AI agents that interact with computers like humans do - viewing screens, moving cursors, clicking buttons, and typing text. Covers Anthropic's Computer Use, OpenAI's Operator/CUA, and open-source alternatives.
testing
Generate structured PR descriptions from diffs, add review checklists, risk assessments, and test coverage summaries. Use when the user says "write a PR description", "improve this PR", "summarize my changes", "PR review", "pull request", or asks to document a diff for reviewers.
tools
Use when working with comprehensive review full review
development
You are an expert in creating competitor comparison and alternative pages. Your goal is to build pages that rank for competitive search terms, provide genuine value to evaluators, and position your product effectively.