Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
版本化开发流水线 —— 与 version-manager 和 project-manager 集成的完整开发流程
版本化开发流水线 —— 与 version-manager 和 project-manager 集成的完整开发流程
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
与 version-manager 和 project-manager 深度集成,提供标准化的开发流程。
dev-pipeline │ ├── calls ──► version-manager │ - version-check │ - version-prepare │ - version-validate │ - version-archive │ ├── calls ──► project-manager │ - project-update │ - project-changelog │ └── calls ──► Claude Opus 4.6 (via oracle) - analyze - write - review - fix
init → analyze → [pending_confirm] → confirm → write → review → (fix → review) → deploy → seal │ ↑ │ └──── version-prepare ──────┘ └──── version-archive project-update project-changelog
初始化新版本开发任务。 # 自动检测最新版本作为基础 dev-pipeline init v1.3.5 # 指定基础版本 dev-pipeline init v1.3.5 --from v1.3.4 执行: version-check <project> - 检查当前状态 version-prepare <project> <base-version> - 准备代码 project-update <project> --version <version> --status "🟢 迭代中" - 更新看板 创建版本目录结构和文档
dev-pipeline confirm # 确认方案,进入编码阶段 dev-pipeline revise "修改意见" # 根据反馈重新分析
编写代码 - 核心功能,必须严格规范返回格式。 dev-pipeline write # 写入当前任务 dev-pipeline write --task-id T001 # 写入指定任务 🎯 Opus Prompt 规范(关键!) 你是一个专业的高级软件工程师。请基于开发计划,编写高质量的代码。 当前任务:[TASK_ID] [TASK_NAME] ## 📁 文件输出格式(必须严格遵守) 对于每个需要创建的文件,必须按以下格式输出: ### FILE: [相对路径] **操作类型**: [create | overwrite | append] **描述**: [该文件的用途说明] ```[语言] [完整的文件代码内容]
操作类型: create 描述: Node.js 项目配置文件 { "name": "my-project", "version": "1.0.0", "dependencies": { "express": "^4.18.0" } }
操作类型: create 描述: Express 服务器入口 const express = require('express'); const app = express(); app.listen(3000, () => { console.log('Server running on port 3000'); });
每个文件必须以 ### FILE: 路径 开头 操作类型必须明确: create - 新建文件(文件不存在) overwrite - 覆盖文件(文件已存在,需要替换) append - 追加内容(在文件末尾添加) 代码块必须完整:包含所有必要的导入、配置、实现 路径使用相对路径:相对于项目根目录 不要省略任何文件:任务要求的所有文件都必须输出
总分 >= 7.0:✅ 通过 总分 < 7.0 或有 🔴 严重问题:❌ 不通过
[列出需要审查的文件路径和内容] #### 📥 解析逻辑 1. 提取评分表格,计算总分 2. 检查是否有 🔴 严重问题 3. 生成审查报告文件:`versions/vX.X.X/docs/REVIEW_TASK_[ID].md` 4. 更新任务状态: - 通过:`review_passed` - 不通过:`needs_fix` --- ### fix 修复代码问题。 ```bash dev-pipeline fix 🎯 Opus Prompt 规范 你是一个专业的高级软件工程师。请根据审查报告修复代码问题。 ## 审查报告 [REVIEW_TASK_XXX.md 内容] ## 📁 修复输出格式 与 `write` 命令相同,使用: ### FILE: [路径] **操作类型**: [overwrite | append] **修复说明**: [修复了什么问题] ```[语言] [修复后的代码]
必须解决所有 🔴 严重问题 尽可能解决 🟡 警告 保留原有代码结构,只做必要修改 每个修改都要有明确的修复说明 --- ### deploy [--force] 部署到生产环境。 ```bash dev-pipeline deploy 执行: version-validate <project> - 验证代码完整性 红线检查(文件大小差异>20%停止) 备份线上代码 部署 project-update <project> --status "🟢 已部署"
封版归档。 dev-pipeline seal 执行: version-archive <project> <version> - 归档全量代码 project-update <project> --version <version> --status "🟢 已封版" - 更新看板 project-changelog <project> release --version <version> - 标记发布 更新 .state.json
{ "version": "v1.3.5", "status": "writing", "current_task": "T001", "architecture_confirmed": true, "tasks": [...] } 状态说明可执行命令initialized刚初始化analyzepending_confirm分析完成,等待确认confirm, reviseconfirmed已确认writewriting编码中-written编码完成reviewreview_passed审查通过write(下一任务) / deployneeds_fix需要修复fixall_done所有任务完成deploydeployed已部署sealsealed已封版-
.dev-pipeline/config.json: { "project": { "name": "gemini-agent", "repo_path": "." }, "oracle": { "model": "claude-opus-4-6", "engine": "op46" }, "output": { "encoding": "utf-8", "lineEnding": "lf" } }
init 时必须 version-prepare - 确保代码来源正确 deploy 时必须 version-validate - 确保代码完整性 seal 时必须 version-archive - 确保全量归档 所有状态变更必须通过 project-update - 确保看板同步
为解决 main session token 累积问题,dev-pipeline 支持通过 sessions_spawn 在子 agent 中执行,main session 仅作为调度者。
Main Session (调度者) │ 发送任务上下文 ▼ sessions_spawn --task "dev-pipeline analyze" \ --agent-id skill-runner \ --mode run │ ▼ Skill Runner Agent (执行者) │ 执行 heavy-lifting 任务 │ 调用 Claude Opus、读写文件 │ ▼ 返回结构化结果 │ ▼ Main Session (接收摘要,决策下一步)
Main session 上下文干净:只接收结构化结果,不收代码原文 子 agent 即抛即用:执行完即销毁,token 不累积 长时间保持高效:避免 9w+ token 后的幻觉问题 并行潜力:可同时启动多个子 agent 处理不同任务
# 1. 初始化版本(轻量,可直接执行) dev-pipeline init v1.3.5 # 2. 架构分析(重型任务,交给子 agent) sessions_spawn \ --task "cd /path/to/project && dev-pipeline analyze" \ --agent-id skill-runner \ --mode run \ --run-timeout-seconds 350 # 子 agent 返回: # { # "status": "pending_confirm", # "action": "analyze", # "summary": "架构分析完成,生成 DEV_PLAN.md,包含 12 个任务", # "details": { "tasks_count": 12, "file": "versions/v1.3.5/docs/DEV_PLAN.md" } # } # [用户确认方案] # 3. 代码编写(重型任务,交给子 agent) sessions_spawn \ --task "cd /path/to/project && dev-pipeline confirm && dev-pipeline write" \ --agent-id skill-runner \ --mode run \ --run-timeout-seconds 600 # 4. 代码审查(重型任务,交给子 agent) sessions_spawn \ --task "cd /path/to/project && dev-pipeline review" \ --agent-id skill-runner \ --mode run \ --run-timeout-seconds 350 # 5. 部署(轻量,可直接执行) dev-pipeline deploy # 6. 封版(轻量,可直接执行) dev-pipeline seal
子 agent 必须返回 JSON 格式的执行结果: { "status": "success|error|pending_confirm|review_passed|needs_fix", "action": "analyze|write|review|fix|deploy|seal", "summary": "中文执行摘要(不超过 1000 字)", "details": { "files_created": ["path/to/file1.js", "path/to/file2.js"], "files_modified": [], "review_score": 8.5, "critical_issues": 0, "output_preview": "关键输出片段(不超过 500 字符)" }, "next_action": "需要 main session 决策的下一步", "logs": "/path/to/detailed.log" }
任务类型推荐执行方式原因initMain session轻量,需要确认项目根目录analyzeSub-agent调用 Opus,返回大量内容confirmMain session只是状态变更writeSub-agent调用 Opus,生成大量代码reviewSub-agent调用 Opus,分析大量代码fixSub-agent调用 Opus,修复代码deployMain session需要 SSH 权限,可能需确认sealMain session轻量状态变更
子 agent 需要预装: Python 3 + dev-pipeline CLI Node.js + npm(用于 Node 项目) 访问 project root 的权限 Claude API 环境变量
对于需要连续迭代的开发流程,可启动持久化子 agent: # 启动持久化 skill-runner sessions_spawn \ --label "dev-helper-v1.3.5" \ --agent-id skill-runner \ --mode session # 然后多次发送任务 sessions_send --label "dev-helper-v1.3.5" --message "执行 analyze" sessions_send --label "dev-helper-v1.3.5" --message "执行 write" # 完成后销毁 sessions_send --label "dev-helper-v1.3.5" --message "exit"
dev-pipeline init v1.3.5 # ... dev-pipeline analyze # ← token 累积点 dev-pipeline confirm dev-pipeline write # ← token 累积点 dev-pipeline review # ← token 累积点 dev-pipeline deploy dev-pipeline seal
# 轻量任务:Main session dev-pipeline init v1.3.5 # 重型任务:Sub-agent sessions_spawn --task "dev-pipeline analyze" --agent-id skill-runner --mode run # Main: 接收摘要,等待用户确认 sessions_spawn --task "dev-pipeline write" --agent-id skill-runner --mode run # Main: 接收文件列表 sessions_spawn --task "dev-pipeline review" --agent-id skill-runner --mode run # Main: 接收评分和审查结论 # 轻量任务:Main session dev-pipeline deploy dev-pipeline seal
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.