Skip to content
Automation
Skill

/agentflow

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.

From plugin
lihongwei-cn
5200 skills1 agent
Install
$ npx -y skills add LiHongwei-cn/lihongwei-cn --skill agentflow --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/agentflow

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

agentflow.SKILL.md
name: agentflow
description: "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."
risk: safe
source: community
date_added: "2026-04-02"

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

  • Use when you need to orchestrate multiple Claude Code workers across a full development lifecycle (build, review, test, integrate)
  • Use when you want deterministic quality gates (tsc/eslint/tests) before AI review on AI-generated code
  • Use when you want full pipeline visibility from your Kanban board or phone
  • Use when running a solo or team project that needs autonomous task dispatch with cost tracking
  • Use when you need crash-proof orchestration that survives session restarts

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:

  • **Build to Review**: `tsc` + `eslint` + `npm test` must all pass (deterministic)
  • **Review to Test**: Adversarial reviewer must list 3 issues before passing
  • **Test to Integrate**: 80% coverage threshold on new files
  • **Integrate to Done**: Full test suite on main after merge; auto-reverts on failure

Cost Tracking

Per-task cost tracking with stage ceilings (Sonnet defaults):

  • Research: ~$0.10
  • Build: ~$0.40
  • Review: ~$0.10
  • Test: ~$0.05
  • Integrate: ~$0.03

Automatic guardrails: warning at $3/$8, hard stop at $10/$20 (Sonnet/Opus) with human escalation.

Safety and Recovery

  • **Auto-revert**: Integration failures trigger `git revert` (new commit, never force-push)
  • **Blocked tasks**: After 2 failed attempts, tasks escalate to human review
  • **Dead agent detection**: Heartbeat every 5 min, reassign after 10 min timeout
  • **Graceful shutdown**: `/sdlc-stop` drains workers, returns unstarted tasks to backlog
  • **Scope creep detection**: PR diff files compared against predicted files list
  • **Spec drift detection**: SHA-256 hash comparison catches requirement changes mid-sprint

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

  • Do: Write a clear SPEC.md before running `/spec-to-board`
  • Do: Start with 3-4 workers for a typical project
  • Do: Monitor from your Kanban board and drag cards to "Needs Human" when needed
  • Do: Review LEARNINGS.md
Read more
Ships withlihongwei-cn

MUNDO - THE EMPEROR. Complete AI orchestration system with 1208 skills, 25 capability modules, self-evolving, collective consciousness. GitHub Actions 24/7 automation.

Get the whole plugin
Stats
5
Stars
1
Forks
Maintained
Maintenance
Python
Language
MIT
License
1mo ago
Last commit
4mo ago
Created

Repo: LiHongwei-cn/lihongwei-cn

Other skills on lihongwei-cn.

cheat-on-content
Skill

cheat-on-content

给所有想把"感觉"变成可校准预测的内容创作者。**方法论通用**——打分 → 盲预测 → T+3d 复盘 → 进化 rubric 的循环适用任何能被量化(播放 / 阅读 / 收听 / 点击)的内容。**rubric 是循环的内容,不是循环本身**——当前内置一份观点视频 rubric(参考博主 25+…

cheat-bump
Skill

cheat-bump

提议并执行 rubric 或 bucket 升级。两种模式:**完整 rubric bump**(最高风险动作,5 步强制 + 跨模型审核)和 **--bucket-only 轻量重校**(只换 bucket 边界,不动 rubric 公式)。**Phase 2 强制走 cheat-score-blind…

cheat-init
Skill

cheat-init

cheat-on-content 的首次 onboarding 与脚手架创建器。统一流程——所有用户都走相同 5 阶段闭环,唯一区别是"发过视频的人"会在 init 时多一步:抓取已有视频建立历史 context(用于后续 cheat-seed 给更贴合的选题、更准的…

cheat-migrate
Skill

cheat-migrate

把老用户的 .cheat-state.json 升级到当前 schema_version。读 migrations/registry.md 算迁移链,按顺序应用每一步迁移文件。幂等:跑两次结果一样。失败停在中间版本不前进。触发词:"迁移"/"升级 state"/"migrate"/"我的 state…

cheat-persona
Skill

cheat-persona

从复盘评论数据派生 / 刷新账号的受众画像,写入 audience.md。这是和 rubric 平行的第二个派生物——rubric 答"怎么打分",persona 答"谁在看"。cheat-seed 选题 / 写稿时读它。**audience.md 含实绩信号,cheat-score-blind…