File contents AI 编程协作模式
适用场景
把“需求分析 → 编码实现 → 自动测试 → Bug 修复”串成一条流水线。;- 适合先做可运行版本,再逐步加自动测试和自动修复。
功能说明
AI 编程协作模式
由 OpenClaw 负责规划与调度,让 Claude Code 负责编码、测试与修复。
这个案例能帮你做什么
把“需求分析 → 编码实现 → 自动测试 → Bug 修复”串成一条流水线。
适合先做可运行版本,再逐步加自动测试和自动修复。
对个人开发者最直接的收益是减少重复样板开发和基础排障时间。
你需要的 Skills(按类型)
类型
Skill / 工具
用途
来源
外部(需安装)
@anthropic-ai/claude-cli
Claude Code 执行编码任务
npm
外部(需安装)
coding-agent
OpenClaw 编程代理能力
clawhub install coding-agent
内置
OpenClaw 调度能力
任务拆解、流程编排、结果汇总
OpenClaw Built-in
快速体验版(先感受效果)
先跑一个小任务(不直接改生产项目):
你是我的 OpenClaw 开发助手。
请调用 Claude Code 完成一个最小 React + TypeScript 待办应用,要求:
1. 支持添加、删除、完成任务。
2. 数据持久化到 localStorage。
3. 输出运行命令与项目结构。
4. 先给可运行版本,再给可选优化项。
稳定自动版(可长期运行)
1) 安装与配置
npm install -g @anthropic-ai/claude-cli
export ANTHROPIC_API_KEY="your-api-key"
clawhub install coding-agent
openclaw config set coding.tool "claude-code"
2) Coding Agent 关键参数
clawhub install coding-agent
openclaw config set coding.tool "claude-code"
openclaw config set coding.model "claude-3-5-sonnet"
openclaw config set coding.api-key "YOUR_ANTHROPIC_API_KEY"
openclaw config set coding.workspace "~/projects"
openclaw config set coding.auto-test true
openclaw config set coding.auto-fix true
3) 自动测试与修复提示词
你是我的 OpenClaw 开发助手。
请用 Claude Code 开发“用户管理系统”,并按以下流程执行:
1. 后端开发。
2. 前端开发。
3. 自动测试并列出失败项。
4. 自动修复失败项。
5. 执行回归测试直到全部通过。
输出要求:
- 每个阶段都给出状态(进行中 / 完成)
- 对每个修复项写明“问题原因 + 修复动作”
- 最后输出通过/失败统计
成功标准
能稳定完成“生成代码 → 测试 → 修复 → 回归”闭环。
修复说明清晰,可人工复核。
关键配置(模型、工作目录、自动测试开关)可复用。
源文件
来源:awesome-openclaw-zh 原始文件:ai-coding-collaboration.md
1 --- 2 name: ai-coding-collaboration 3 description: AI 编程协作模式 4 --- 5 6 # AI 编程协作模式 7 8 ## 适用场景 9 - 把“需求分析 → 编码实现 → 自动测试 → Bug 修复”串成一条流水线。;- 适合先做可运行版本,再逐步加自动测试和自动修复。 10 11 ## 功能说明 12 # AI 编程协作模式 13 14 > 由 OpenClaw 负责规划与调度,让 Claude Code 负责编码、测试与修复。 15 16 ## 这个案例能帮你做什么 17 18 - 把“需求分析 → 编码实现 → 自动测试 → Bug 修复”串成一条流水线。 19 - 适合先做可运行版本,再逐步加自动测试和自动修复。 20 - 对个人开发者最直接的收益是减少重复样板开发和基础排障时间。 21 22 ## 你需要的 Skills(按类型) 23 24 | 类型 | Skill / 工具 | 用途 | 来源 | 25 |---|---|---|---| 26 | 外部(需安装) | `@anthropic-ai/claude-cli` | Claude Code 执行编码任务 | npm | 27 | 外部(需安装) | `coding-agent` | OpenClaw 编程代理能力 | `clawhub install coding-agent` | 28 | 内置 | OpenClaw 调度能力 | 任务拆解、流程编排、结果汇总 | OpenClaw Built-in | 29 30 ## 快速体验版(先感受效果) 31 32 先跑一个小任务(不直接改生产项目): 33 34 ```text 35 你是我的 OpenClaw 开发助手。 36 请调用 Claude Code 完成一个最小 React + TypeScript 待办应用,要求: 37 1. 支持添加、删除、完成任务。 38 2. 数据持久化到 localStorage。 39 3. 输出运行命令与项目结构。 40 4. 先给可运行版本,再给可选优化项。 41 ``` 42 43 ## 稳定自动版(可长期运行) 44 45 ### 1) 安装与配置 46 47 ```bash 48 npm install -g @anthropic-ai/claude-cli 49 export ANTHROPIC_API_KEY="your-api-key" 50 clawhub install coding-agent 51 openclaw config set coding.tool "claude-code" 52 ``` 53 54 ### 2) Coding Agent 关键参数 55 56 ```bash 57 clawhub install coding-agent 58 openclaw config set coding.tool "claude-code" 59 openclaw config set coding.model "claude-3-5-sonnet" 60 openclaw config set coding.api-key "YOUR_ANTHROPIC_API_KEY" 61 openclaw config set coding.workspace "~/projects" 62 openclaw config set coding.auto-test true 63 openclaw config set coding.auto-fix true 64 ``` 65 66 ### 3) 自动测试与修复提示词 67 68 ```text 69 你是我的 OpenClaw 开发助手。 70 请用 Claude Code 开发“用户管理系统”,并按以下流程执行: 71 1. 后端开发。 72 2. 前端开发。 73 3. 自动测试并列出失败项。 74 4. 自动修复失败项。 75 5. 执行回归测试直到全部通过。 76 77 输出要求: 78 - 每个阶段都给出状态(进行中 / 完成) 79 - 对每个修复项写明“问题原因 + 修复动作” 80 - 最后输出通过/失败统计 81 ``` 82 83 ## 成功标准 84 - 能稳定完成“生成代码 → 测试 → 修复 → 回归”闭环。 85 - 修复说明清晰,可人工复核。 86 - 关键配置(模型、工作目录、自动测试开关)可复用。 87 88 ## 源文件 89 来源:awesome-openclaw-zh 90 原始文件:ai-coding-collaboration.md
YangYuChen-Work/awesome-ai-skills/tree/main/基础设施/ai-coding-collaboration commit bf52daf5c8
Frequently asked questions How do I install the AI Coding Collaboration skill? Run npx skillmds@latest add yangyuchen-work/ai-coding-collaboration in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the AI Coding Collaboration skill do? AI 编程协作模式 It is listed under Coding & Dev Tools on SkillMD.
Is AI Coding Collaboration safe to use? This skill has not completed SkillMD's automated safety review yet. Capability flags: reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with AI Coding Collaboration? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is AI Coding Collaboration free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published AI Coding Collaboration? YangYuChen-Work (@yangyuchen-work) published this skill. Their other Agent Skills are listed on their SkillMD profile.