Skill站外收录 @skilllib/skill-2014279402706644994
work-on-issue
启动 GitHub问题的专注开发流程,自动解析需求、创建隔离工作树、生成测试待办事项,并立即进入测试驱动开发循环,确保每次修改都以可验证的测试为前提。
开发运维 AI 技能
Skills.MD
# /work-on-issue
Start focused work on a GitHub issue using TDD workflow.
## EXECUTE THESE STEPS NOW
When this skill is invoked, you MUST execute these steps immediately. Do NOT just describe what will happen - actually do it.
### Step 1: Parse Issue Number
Extract the issue number from `$ARGUMENTS`:
- Remove `#` prefix if present
- The issue number is: **$ARGUMENTS**
### Step 2: Spawn Issue Worker Agent
Use the Task tool to spawn the issue-worker agent:
```
Task tool:
subagent_type: issue-worker
prompt: "Read GitHub issue #<NUMBER> and extract:
1. Goal - what the user wants to achieve
2. Acceptance criteria - specific testable requirements
3. Edge cases and constraints
4. Suggested PR split if complex"
```
Wait for the agent to return requirements.
### Step 3: Create Worktree
After receiving requirements, run this command:
```bash
.claude/scripts/worktree-create.sh issue-<NUMBER>-<short-description>
```
Where `<short-description>` is 2-3 words from the goal (e.g., `add-mcp-tools`).
### Step 4: Change to Worktree
The worktree is created at `.worktrees/issue-<NUMBER>-<short-description>/`.
Note: You are now in TDD mode. Direct code edits will be blocked.
### Step 5: Create Todos
Use TodoWrite to create a todo for EACH acceptance criterion:
```
TodoWrite:
todos:
- content: "Test: <acceptance criterion 1>"
status: pending
activeForm: "Testing <criterion 1>"
- content: "Test: <acceptance criterion 2>"
status: pending
activeForm: "Testing <criterion 2>"
...
```
### Step 6: Begin TDD Cycle
Immediately invoke `/write-tests` for the first todo.
DO NOT stop and wait for user input. Start the TDD cycle now.
---
## When to Use
- Starting work on a GitHub issue
- You want TDD enforcement (worktree mode)
- You want isolated work (no branch switching)
## When NOT to Use
- Quick exploration (just stay in main repo)
- Already in a worktree for this issue
- Issue doesn't exist in GitHub
## Workflow Overview
```
/work-on-issue #42
↓
Step 1: Parse "42" from arguments
↓
Step 2: Spawn issue-worker → get requirements
↓
Step 3: Create worktree issue-42-<name>
↓
Step 4: Now in TDD mode
↓
Step 5: Create todos from acceptance criteria
↓
Step 6: Invoke /write-tests → begin TDD cycle
```
## Important
This skill runs in the MAIN conversation context (not forked) because it needs to:
1. Spawn the issue-worker agent and receive its results
2. Run worktree-create.sh script
3. Create todos that persist in the conversation
4. Invoke /write-tests to continue the workflow
The issue-worker agent runs in a forked context and returns requirements.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「work-on-issue」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次