← 返回 Skills 市场
cloudyli

需求迭代工作流

作者 cloudyli · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
113
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install iterate-planning
功能描述
基于 Ralph Loops 三阶段工作流理念,适配 OpenClaw 架构。 需求迭代工作流:需求讨论 → 计划拆解 → 迭代执行。 触发条件:用户说"讨论需求"、"开始计划"、"迭代执行"、"需求访谈
使用说明 (SKILL.md)

需求迭代工作流 (Iterate Planning)

基于 Ralph Loops 三阶段工作流,适配 OpenClaw 原生实现。

核心哲学

Human roles shift from "telling the agent what to do" to "engineering conditions where good outcomes emerge naturally through iteration."

三个原则:

  • Context is scarce — 保持每次迭代精简
  • Plans are disposable — 漂移的计划重新生成比修复更划算
  • Backpressure beats direction — 工程化环境让错误的输出自动被拒绝

三阶段工作流

┌─────────────────────────────────────────────────────────────────────┐
│ Phase 1: 需求访谈                                                      │
│ 结构化对话 → 识别JTBD → 拆分Topics → 产出 specs/*.md                    │
├─────────────────────────────────────────────────────────────────────┤
│ Phase 2: 计划                                                          │
│ Gap分析(specs vs code) → 产出 IMPLEMENTATION_PLAN.md                  │
├─────────────────────────────────────────────────────────────────────┤
│ Phase 3: 迭代执行                                                      │
│ 每次一个任务 → 全新上下文 → 验证 → 提交 → 下一任务                        │
└─────────────────────────────────────────────────────────────────────┘

Phase 1: 需求访谈

目标:在动手写代码之前,真正理解要做什么。

触发:用户说"讨论需求"、"需求访谈"、"帮我理清需求"

流程

  1. 使用 templates/requirements-interview.md 模板进行结构化访谈
  2. 识别 JTBD(Jobs to Be Done)— 用户真正要解决的Outcome,不是功能列表
  3. 把 JTBD 拆分成 Topics of Concern(每个 topic 一个独立维度)
  4. 用"一个句子,不带and"测试 — 能说出来的是一个topic,说不出来的是多个
  5. 每个 Topic 写一份 specs/topic-xxx.md

完成标志

  • 每个 Topic 都有 specs/*.md
  • 每个 spec 包含:需求描述、验收标准、边界情况

交付物

project/
└── specs/
    ├── topic-a.md
    ├── topic-b.md
    └── ...

Phase 2: 计划

目标:生成可执行的任务清单,不写代码。

触发:需求完备后,用户说"开始计划"、"可以拆任务了"

流程

  1. 读取 specs/*.md 所有需求
  2. 如有现有代码,研究 codebase
  3. 对比 specs vs code(Gap Analysis)
  4. 生成 IMPLEMENTATION_PLAN.md(带优先级的任务列表)

模板templates/planning-prompt.md

完成标志

  • IMPLEMENTATION_PLAN.md 存在
  • 每个任务有优先级标注
  • 任务列表完整覆盖所有 specs

交付物

project/
├── specs/
├── IMPLEMENTATION_PLAN.md
└── ...

Phase 3: 迭代执行

目标:每次做一个任务,全新上下文,保持 agent 在"聪明区域"。

触发:计划完备后,用户说"开始执行"、"迭代构建"

核心洞察

  • 一次一任务 — 保持上下文精简,agent 保持高效
  • 全新上下文 — 每次迭代从头开始,之前的错误不累积
  • 验证 + 提交 — 每个任务完成后必须验证才能提交

流程

  1. 读取 IMPLEMENTATION_PLAN.md
  2. 选最高优先级任务
  3. 研究 codebase(不要假设未实现)
  4. 执行任务
  5. 运行验证(backpressure)
  6. 更新 plan(标记完成)
  7. 提交 commit
  8. 循环直到 plan 完成

模板templates/build-prompt.md

完成标志

  • IMPLEMENTATION_PLAN.md 所有任务标记 done
  • 每次迭代有对应 commit

触发词指南

用户说 Agent 动作
"讨论需求"、"需求访谈" 启动 Phase 1 需求访谈
"开始计划"、"可以拆任务了" 启动 Phase 2 计划生成
"开始执行"、"迭代构建" 启动 Phase 3 迭代执行
"Ralph Loop"、"迭代" 询问用户要哪个 phase

文件结构

iterate-planning/
├── SKILL.md                    # 本文件
├── AGENTS.md                   # 操作员指南
└── templates/
    ├── requirements-interview.md  # 需求访谈模板
    ├── planning-prompt.md          # 计划生成提示词
    └── build-prompt.md            # 构建执行提示词

为什么有效

问题 解法
需求不清晰就动手 Phase 1 强制结构化访谈
计划赶不上变化 Plans are disposable — 重新生成比修复更划算
上下文膨胀导致幻觉 一次一任务,全新上下文
错误累积难以追溯 每次验证 + 提交,自然 checkpoint
安全使用建议
这个技能只是模板和运行指令:它会读取你的 specs、检查/修改代码库、运行测试/构建命令并创建 git 提交——这些行为与其描述一致,但会对本地仓库产生写入和提交行为。安装前请考虑: - 在安全或隔离的工作区(分支或临时克隆)上先试用,避免意外提交到主分支。 - 确保 .gitignore 与提交策略正确配置,避免 `git add .` 暂存不希望提交的文件。 - 如果你不希望 agent 自动提交或执行命令,要求人工确认(例如把提交步骤设为手动审批)。 - 注意验证命令(npm/pytest/go/make)会执行项目脚本,确保这些脚本安全并不会做出危险的副作用。 总体来看,这个技能内部一致、无明显恶意或不相称的权限请求;如果你担心自动化修改仓库,采取上面建议的防护措施即可。
功能分析
Type: OpenClaw Skill Name: iterate-planning Version: 1.0.0 The 'iterate-planning' skill bundle implements a structured three-phase software development workflow (Interview, Planning, and Execution) based on the Ralph Loops philosophy. The instructions in SKILL.md and AGENTS.md guide the agent to create requirement specifications, implementation plans, and perform iterative code changes with verification and git commits. While the templates (e.g., build-prompt.md) instruct the agent to execute shell commands for testing and building, these actions are strictly aligned with the stated purpose of a coding assistant and do not exhibit signs of data exfiltration, persistence, or malicious intent.
能力评估
Purpose & Capability
技能名和描述(需求访谈、计划拆解、迭代执行)与实际要求和指令一致。没有要求与功能无关的环境变量、二进制或外部服务。
Instruction Scope
SKILL.md 和模板明确指示 agent 读取 specs/*.md、研究 codebase、修改文件、运行本地验证命令(npm run build, pytest, go test, make test 等)并执行 git add/commit。所有这些都在工作流预期范围内,但会改变工作区并运行测试命令,用户应注意这些副作用(会写入磁盘、修改仓库)。
Install Mechanism
无安装脚本、无二进制下载、无代码文件可执行。仅为 instruction-only 模板,风险低。
Credentials
不要求任何环境变量、密钥或配置路径;没有不成比例的凭据访问请求。
Persistence & Privilege
技能未设置 always:true(默认 false)。disable-model-invocation 为 false(允许模型按需调用,这是平台默认),所以技能能够在被触发时执行其修改工作区的指令。结合会自动创建 git commit 的行为,用户应留意自动化权限和审批流程。
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install iterate-planning
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /iterate-planning 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of iterate-planning, a workflow skill based on Ralph Loops’ three-phase model and tailored for OpenClaw. - Introduces a three-phase iterative workflow: structured requirements interview, planning (gap analysis), and single-task iterative execution. - Defines clear triggers and templates for each phase, improving teamwork and agent autonomy. - Enforces concise context, disposable plans, and backpressure-driven validation to promote robust outcomes. - Outlines file structure and completion criteria for each step to ensure clarity and accountability.
元数据
Slug iterate-planning
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

需求迭代工作流 是什么?

基于 Ralph Loops 三阶段工作流理念,适配 OpenClaw 架构。 需求迭代工作流:需求讨论 → 计划拆解 → 迭代执行。 触发条件:用户说"讨论需求"、"开始计划"、"迭代执行"、"需求访谈. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。

如何安装 需求迭代工作流?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install iterate-planning」即可一键安装,无需额外配置。

需求迭代工作流 是免费的吗?

是的,需求迭代工作流 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

需求迭代工作流 支持哪些平台?

需求迭代工作流 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 需求迭代工作流?

由 cloudyli(@cloudyli)开发并维护,当前版本 v1.0.0。

💬 留言讨论