A Skill for Senior Development Directors. Triggered when a user claims a Kanban task and is ready to start development. This Skill manages worktrees via the Code Kanban API, provides isolated development sandboxes, and automatically updates the task status upon completion.
主导从 Kanban 任务到代码交付的完整闭环。利用隔离的工作区环境,安全进行并发开发。
# 设置 API 地址 (默认 3007 端口)
export KANBAN_URL="${KANBAN_URL:-http://127.0.0.1:3007}"
API="${KANBAN_URL}/api/v1"
/kanban-implement <task-id> # 实现指定任务
/kanban-implement <task-id> --no-worktree # 不创建 worktree (在当前分支开发)
/kanban-implement <task-id> --dry-run # 只展示计划,不执行
# 获取任务详情
curl -s "${API}/tasks/${TASK_ID}"
解析任务信息:
通过 Code Kanban API 创建独立 Worktree:
# 创建 worktree
curl -X POST "${API}/projects/${PROJECT_ID}/worktrees/create" \
-H "Content-Type: application/json" \
-d '{
"branchName": "task/${TASK_ID}",
"baseBranch": "main"
}'
# 绑定到任务
curl -X PUT "${API}/tasks/${TASK_ID}/bind-worktree" \
-H "Content-Type: application/json" \
-d '{"worktreeId": "${WORKTREE_ID}"}'
# 更新任务状态为进行中
curl -X PUT "${API}/tasks/${TASK_ID}/update" \
-H "Content-Type: application/json" \
-d '{"status": "in_progress"}'
命名规范:task/<task-id> 或 fix/<task-id>-<short-desc>
解析验收标准
## 验收标准 部分实现功能
CLAUDE.md 规范质量验证
npm run test:agents 或项目配置的测试命令# 在 Worktree 中提交
curl -X POST "${API}/worktrees/${WORKTREE_ID}/commit" \
-H "Content-Type: application/json" \
-d '{"message": "fix: implement ${TASK_TITLE}"}'
# 合并到主分支
curl -X POST "${API}/worktrees/${WORKTREE_ID}/merge" \
-H "Content-Type: application/json" \
-d '{"targetBranch": "main"}'
# 标记任务完成
curl -X PUT "${API}/tasks/${TASK_ID}/update" \
-H "Content-Type: application/json" \
-d '{"status": "done"}'
# 添加完成评论 (可选)
curl -X POST "${API}/tasks/${TASK_ID}/comments/create" \
-H "Content-Type: application/json" \
-d '{
"content": "## 完成报告\n\n- 变更文件: ...\n- 测试结果: PASS\n- 提交: ..."
}'
| 检查项 | 说明 | |--------|------| | AC 闭环 | 是否逐一核对并完成了所有验收标准? | | 环境纯净 | 是否在独立的分支和工作区中完成? | | 测试通过 | 是否运行了相关测试并全部通过? | | 最小变更 | 是否只修改了必要的代码? |
从任务描述中自动提取验收标准:
## 验收标准
- [ ] 条件 1
- [ ] 条件 2
- [ ] 测试覆盖 >= 90%
正则模式:
## 验收标准 或 ## Acceptance Criteria- \[ \] (.+) → 未完成项- \[x\] (.+) → 已完成项in_progressblockedGET ${API}/tasks/{taskId}
POST ${API}/projects/{projectId}/worktrees/create
{
"branchName": "task/xxx",
"baseBranch": "main"
}
PUT ${API}/tasks/{taskId}/bind-worktree
{
"worktreeId": "xxx"
}
PUT ${API}/tasks/{taskId}/update
{
"status": "in_progress" | "done" | "blocked"
}
POST ${API}/worktrees/{worktreeId}/commit
{
"message": "commit message"
}
POST ${API}/worktrees/{worktreeId}/merge
{
"targetBranch": "main"
}
当用户调用此 skill 时:
TASK=$(curl -s "${API}/tasks/${TASK_ID}")
展示任务摘要:标题、描述、验收标准、依赖。
如果不是 --no-worktree 模式:
curl -X PUT "${API}/tasks/${TASK_ID}/update" \
-H "Content-Type: application/json" \
-d '{"status": "in_progress"}'
根据任务描述和验收标准进行开发。
运行项目测试命令,确保通过。
使用 Git 提交代码,遵循 Conventional Commits。
curl -X PUT "${API}/tasks/${TASK_ID}/update" \
-H "Content-Type: application/json" \
-d '{"status": "done"}'
输出完成报告:变更文件、测试结果、提交信息。
| 特性 | gh-issue-implement | kanban-implement | |------|-------------------|------------------| | 数据源 | GitHub Issues | Code Kanban API | | Worktree | scripts/worktree_manager.js | Kanban API | | 交付物 | Pull Request | Git Commit | | 可见性 | 公开 | 私有 | | 状态管理 | GitHub Labels | Kanban Status |
fix(agents): implement X [task-id]Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer