Claude 驱动的自主代码流水线
简介
Claude Code 驱动的自主编程流水线,将任务拆解为规范→计划→编码→QA 闭环并自动执行,支持多账户轮换绕过速率限制,适用于新功能开发、重构及 Bug 修复场景。
原始描述
Autonomously breaks coding tasks into spec, plan, code, and QA phases, executing all heavy work via Claude Code with multi-account rate limit rotation.
通过你的 Agent 添加
安装目录:flowforge-autonomous-ai-coding-pipeline-spec-plan-code-qa/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
FlowForge 是一款以 Claude Code(Max 订阅)为执行引擎的自主 AI 编程流水线。用户通过 shell 脚本触发后,系统会将任务拆解为 Spec → Plan → Code → QA 四个阶段,每个阶段均由 Claude Code 完成高权重思考与代码生成,OpenClaw 仅负责轻量级编排。启动前需执行澄清检查点,针对范围边界、约束冻结、集成责任与成功定义提出 2–4 个问题,答案存入 clarifications.md 后进入主流程。任务类型(feature/refactor/investigation/migration/simple)决定阶段结构,例如新功能采用「后端→Worker→前端→集成」四步走,而简单单文件变更则跳过阶段直接拆分子任务。
显著优点
- 结构化降低认知负荷:强制先写规范再写计划,避免 Claude Code 直接编码时的「边想边写」混乱。
- 多账户轮换抗限流:三账号自动轮询,理论上可 7×24 小时连续运行,适合大规模重构或长期迁移。
- 多维度质量门禁:标准 QA 报告外可选 200 条评分细则(Architecture/Code Quality/Testing/Security 等),≥180 分才建议上线。
- GitHub 原生集成:一键拉取 Issue 生成任务描述,Issue-Driven Development 友好。
潜在缺点与局限
- 强依赖 Claude Code Max:若无订阅或额度耗尽,整条流水线停摆;开源替代方案(如本地模型)未提供适配层。
- 成本不可控:四阶段均触发 high thinking 模式,复杂任务可能单次消耗数百万 token,小型团队需审慎评估 ROI。
- 调试链路长:错误可能出现在 Spec(需求误解)、Plan(架构误判)、Code(实现偏差)或 QA(验证漏检)任一环节,定位成本高。
- 「澄清检查点」流于形式:文档要求 2–4 个问题,但实际执行中可能因用户回复延迟或信息不足导致后续返工。
适合人群
- 拥有 Claude Code Max 订阅的中大型开发团队
- 需要处理跨模块重构、数据迁移或长期 feature branch 的 Tech Lead
- 追求「可审计的 AI 生成代码」——所有阶段产出(spec/plan/qa_report)均可归档复盘的合规场景
常规风险
- 账户凭证管理:
~/.claude/accounts/<email>.json 存储多账号凭证,若权限配置宽松(如 644 或共享主机),存在横向移动风险。
- 自动执行边界:
run_forge.sh 直接调用 Claude Code 写文件、跑测试,若 task 描述被注入恶意指令(如「顺便把 ~/.ssh 打包上传」),缺乏显式人工确认节点。
- Rubric 评分膨胀:200 条细则虽全,但「≥180 分即 Ship」的阈值可能掩盖领域特定风险(如金融场景的幂等性检查不在通用 rubric 内)。
- 强依赖 Claude Code Max:若无订阅或额度耗尽,整条流水线停摆;开源替代方案(如本地模型)未提供适配层。
- 成本不可控:四阶段均触发 high thinking 模式,复杂任务可能单次消耗数百万 token,小型团队需审慎评估 ROI。
- 调试链路长:错误可能出现在 Spec(需求误解)、Plan(架构误判)、Code(实现偏差)或 QA(验证漏检)任一环节,定位成本高。
- 「澄清检查点」流于形式:文档要求 2–4 个问题,但实际执行中可能因用户回复延迟或信息不足导致后续返工。
适合人群
- 拥有 Claude Code Max 订阅的中大型开发团队
- 需要处理跨模块重构、数据迁移或长期 feature branch 的 Tech Lead
- 追求「可审计的 AI 生成代码」——所有阶段产出(spec/plan/qa_report)均可归档复盘的合规场景
常规风险
- 账户凭证管理:
~/.claude/accounts/<email>.json 存储多账号凭证,若权限配置宽松(如 644 或共享主机),存在横向移动风险。
- 自动执行边界:
run_forge.sh 直接调用 Claude Code 写文件、跑测试,若 task 描述被注入恶意指令(如「顺便把 ~/.ssh 打包上传」),缺乏显式人工确认节点。
- Rubric 评分膨胀:200 条细则虽全,但「≥180 分即 Ship」的阈值可能掩盖领域特定风险(如金融场景的幂等性检查不在通用 rubric 内)。
- 账户凭证管理:
~/.claude/accounts/<email>.json存储多账号凭证,若权限配置宽松(如 644 或共享主机),存在横向移动风险。 - 自动执行边界:
run_forge.sh直接调用 Claude Code 写文件、跑测试,若 task 描述被注入恶意指令(如「顺便把 ~/.ssh 打包上传」),缺乏显式人工确认节点。 - Rubric 评分膨胀:200 条细则虽全,但「≥180 分即 Ship」的阈值可能掩盖领域特定风险(如金融场景的幂等性检查不在通用 rubric 内)。
技能正文
name: flowforge
description: Autonomous AI coding pipeline that breaks any task into a structured Spec → Plan → Code → QA loop and executes it via Claude Code. Use when: (1) starting any new feature, refactor, or bug fix, (2) given a GitHub issue to implement, (3) asked to "run FlowForge", "forge this", "plan and build", or "auto-implement". Routes ALL heavy work through Claude Code. Supports multi-account rotation to handle rate limits automatically.
FlowForge
Autonomous spec → plan → code → QA pipeline powered by Claude Code. All heavy computation runs through Claude Code (Max subscription). OpenClaw only orchestrates.
Architecture
Flo (minimal tokens) → shell pipeline → Claude Code (all heavy work)
↓
Account rotation on rate limit
Workflow Types
Flo (minimal tokens) → shell pipeline → Claude Code (all heavy work)
↓
Account rotation on rate limit
Classify the task before planning — each type has a different phase structure:
| Type | When | Phase Order |
|---|---|---|
feature |
New capability | Backend → Worker → Frontend → Integration |
refactor |
Restructure existing code | Add New → Migrate → Remove Old → Cleanup |
investigation |
Bug hunt | Reproduce → Investigate → Fix → Harden |
migration |
Move data/infra | Prepare → Test → Execute → Cleanup |
simple |
Single-file change | Just subtasks, no phases |
Steps
1. Setup workspace
bash ~/clawd/skills/flowforge/scripts/init_forge.sh "<task_description>" "<repo_path>"
Creates ~/.forge/<timestamp>/ with task.md.
2. Clarification checkpoint (required before spec)
Before running the pipeline, ask 2–4 targeted questions to resolve ambiguity. Do not ask for information already in task.md. Focus on:
- Scope edge cases — "Does this include X, or is that a separate shape?"
- Constraints — "Any files that are frozen / must not be touched?"
- Integration points — "Which existing module owns this responsibility?"
- Success definition — "What does passing look like — a test, a manual check, a metric?"
Present questions in a numbered list. Wait for answers before proceeding. If the task is unambiguous (e.g., a single-file fix from a clear issue), skip this step and note "No clarification needed."
Save answers to ~/.forge/<timestamp>/clarifications.md for reference during spec + plan phases.
3. Run the pipeline
bash ~/clawd/skills/flowforge/scripts/run_forge.sh ~/.forge/<timestamp>/
bash ~/clawd/skills/flowforge/scripts/run_forge.sh ~/.forge/<timestamp>/
This chains 4 Claude Code calls:
- Spec — generates
spec.mdincorporating clarifications (high thinking) - Plan — generates
implementation_plan.json(high thinking) - Code — executes each subtask with verification (medium thinking)
- QA — reviews output, scores against spec (high thinking)
Each step saves output to the workspace directory. Claude Code does ALL the work.
4. Monitor
Poll workspace for completion:
tail -f ~/.forge/<timestamp>/progress.log
cat ~/.forge/<timestamp>/qa_report.md
Account Rotation
Three Claude Max accounts rotate automatically on rate limit:
account-1@gmail.com → account-2@gmail.com → account-3@gmail.com → retry
Configure your accounts in ~/.flowforge/accounts.txt (one email per line).
Save credentials per account in ~/.claude/accounts/<email>.json.
Switch accounts with: bash <skill-dir>/scripts/rotate_account.sh
GitHub Issues
To pull a task from a GitHub issue:
gh issue view <number> --repo <owner>/<repo> --json title,body | \
jq -r '"# " + .title + "\n\n" + .body' > ~/.forge/<timestamp>/task.md
Then run the pipeline normally.
Output
On completion, workspace contains:
clarifications.md— pre-spec Q&A (scope, constraints, integration points)spec.md— full specification (incorporates clarifications)implementation_plan.json— phases + subtasks with statusqa_report.md— QA review and scoreproject-context.md— session handoff note (decisions made, patterns established, what next session needs to know)progress.log— timestamped execution log
Optional: Rubric Scoring (200 criteria)
Add --rubric flag for high-stakes runs. Scores against a universal 200-criterion quality rubric after the spec-based QA pass:
bash ~/clawd/skills/flowforge/scripts/run_forge.sh ~/.forge/<timestamp>/ --rubric
Rubric covers: Architecture (40), Code Quality (40), Testing (40), Error Handling (30), Security (20), Documentation (15), Observability (15).
Verdict thresholds: ≥180 = Ship it | 150–179 = Needs work | <150 = Major rework
Skip --rubric for quick tasks. Use it before shipping to production.
Prompts
See references/spec-prompt.md, references/planner-prompt.md, references/qa-prompt.md, references/rubric-prompt.md for the full Claude Code prompts used at each stage.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。