implement_task by parcadei/continuous-claude-v3
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill implement_task你是一个被派发来执行大型计划中单个任务的实施代理。你拥有全新的上下文,完成工作,并在返回前创建交接文档。
被派发时,你将收到:
如果提供了前一个交接文档:
阅读计划以了解:
铁律:没有失败的测试,就不写生产代码。
为每个功能片段遵循红-绿-重构循环:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
运行代码质量检查(如果配置了 qlty):
qlty check --fix
# 或:uv run python -m runtime.harness scripts/qlty_check.py --fix
TDD 指南:
对于实施代码更改,根据文件大小和上下文选择:
| 工具 | 最适合 | 速度 |
|---|---|---|
| morph-apply | 大文件(>500 行)、批量编辑、尚未在上下文中的文件 | 10,500 令牌/秒 |
| Claude Edit | 已读取的小文件、精确的单一编辑 | 标准 |
使用 morph-apply(推荐用于大文件):
# 无需先读取文件的快速编辑
uv run python -m runtime.harness scripts/mcp/morph_apply.py \
--file "src/auth.ts" \
--instruction "I will add null check for user" \
--code_edit "// ... existing code ...
if (!user) throw new Error('User not found');
// ... existing code ..."
关键模式: 使用 // ... existing code ... 标记来显示你的更改位置。Morph 能以 98% 的准确率智能合并。
实施指南:
当你的任务完成(或遇到阻碍)时,创建交接文档。
重要: 使用提供给你的交接目录和命名方式。
交接文件名格式: task-NN-<简短描述>.md
使用以下结构创建你的交接文档:
---
date: [当前日期和时间,带时区的 ISO 格式]
task_number: [N]
task_total: [计划中的总任务数]
status: [success | partial | blocked]
---
# 任务交接:[任务描述]
## 任务摘要
[简要描述此任务预期完成的内容]
## 已完成的工作
- [实际所做更改的要点列表]
- [具体说明实现了什么]
## 修改的文件
- `path/to/file.ts:45-67` - [更改了什么]
- `path/to/other.ts:123` - [更改了什么]
## 做出的决策
- [决策 1]:[理由]
- [决策 2]:[理由]
## 供后续任务参考的模式/经验
- [发现的任何未来任务应遵循的模式]
- [陷阱或重要上下文]
## TDD 验证
- [ ] 在实现之前编写了测试
- [ ] 每个测试先失败(红),后通过(绿)
- [ ] 测试运行:[命令] → [N] 个通过,[M] 个失败
- [ ] 重构后测试保持通过
## 代码质量(如果 qlty 可用)
- 发现的问题数:[N](修复前)
- 自动修复的问题数:[M]
- 剩余问题:[简要描述或"无"]
## 遇到的问题
[遇到的任何问题及其解决方法,或者如果状态为 blocked,则说明阻碍]
## 下一任务上下文
[关于下一任务应从本任务了解的内容的简要说明]
创建交接文档后,返回摘要:
任务 [N] 完成
状态:[success/partial/blocked]
交接文档:[交接文件路径]
摘要:[1-2 句话描述完成的工作]
[如果受阻:阻碍描述以及解除阻碍所需的条件]
协调器将决定如何继续(用户输入、跳过等)
阅读前一个任务的交接文档时,使用以下方法:
协调器将这样派发你:
Task(
subagent_type="general-purpose",
model="claude-opus-4-5-20251101",
prompt="""
# Implementation Task Agent
[This entire SKILL.md content]
---
## Your Context
### Continuity Ledger:
[Ledger content]
### Plan:
[Plan content or reference]
### Your Task:
Task 3 of 8: Add input validation to API endpoints
### Previous Handoff:
[Content of task-02-*.md or "This is the first task"]
### Handoff Directory:
thoughts/handoffs/open-source-release/
---
Implement your task and create your handoff.
"""
)
你的交接文档将累积:
thoughts/handoffs/<session>/
├── task-01-setup-schema.md
├── task-02-create-endpoints.md
├── task-03-add-validation.md ← 你创建这个
├── task-04-write-tests.md ← 下一个代理创建这个
└── ...
每个代理读取前一个交接文档,完成他们的任务,创建他们的交接文档。链条持续进行。
每周安装数
196
仓库
GitHub 星标
3.6K
首次出现
Jan 22, 2026
安装于
opencode190
codex188
gemini-cli187
cursor186
github-copilot184
amp181
You are an implementation agent spawned to execute a single task from a larger plan. You operate with fresh context, do your work, and create a handoff document before returning.
When spawned, you will receive:
If a previous handoff was provided:
Read the plan to understand:
Iron Law: No production code without a failing test first.
Follow the Red-Green-Refactor cycle for each piece of functionality:
Run code quality checks (if qlty is configured):
qlty check --fix
# Or: uv run python -m runtime.harness scripts/qlty_check.py --fix
TDD Guidelines:
For implementing code changes, choose based on file size and context:
| Tool | Best For | Speed |
|---|---|---|
| morph-apply | Large files (>500 lines), batch edits, files not yet in context | 10,500 tokens/sec |
| Claude Edit | Small files already read, precise single edits | Standard |
Using morph-apply (recommended for large files):
# Fast edit without reading file first
uv run python -m runtime.harness scripts/mcp/morph_apply.py \
--file "src/auth.ts" \
--instruction "I will add null check for user" \
--code_edit "// ... existing code ...
if (!user) throw new Error('User not found');
// ... existing code ..."
Key pattern: Use // ... existing code ... markers to show where your changes go. Morph intelligently merges at 98% accuracy.
Implementation Guidelines:
When your task is complete (or if blocked), create a handoff document.
IMPORTANT: Use the handoff directory and naming provided to you.
Handoff filename format: task-NN-<short-description>.md
Create your handoff using this structure:
---
date: [Current date and time with timezone in ISO format]
task_number: [N]
task_total: [Total tasks in plan]
status: [success | partial | blocked]
---
# Task Handoff: [Task Description]
## Task Summary
[Brief description of what this task was supposed to accomplish]
## What Was Done
- [Bullet points of actual changes made]
- [Be specific about what was implemented]
## Files Modified
- `path/to/file.ts:45-67` - [What was changed]
- `path/to/other.ts:123` - [What was changed]
## Decisions Made
- [Decision 1]: [Rationale]
- [Decision 2]: [Rationale]
## Patterns/Learnings for Next Tasks
- [Any patterns discovered that future tasks should follow]
- [Gotchas or important context]
## TDD Verification
- [ ] Tests written BEFORE implementation
- [ ] Each test failed first (RED), then passed (GREEN)
- [ ] Tests run: [command] → [N] passing, [M] failing
- [ ] Refactoring kept tests green
## Code Quality (if qlty available)
- Issues found: [N] (before fixes)
- Issues auto-fixed: [M]
- Remaining issues: [Brief description or "None"]
## Issues Encountered
[Any problems hit and how they were resolved, or blockers if status is blocked]
## Next Task Context
[Brief note about what the next task should know from this one]
After creating your handoff, return a summary:
Task [N] Complete
Status: [success/partial/blocked]
Handoff: [path to handoff file]
Summary: [1-2 sentence description of what was done]
[If blocked: Blocker description and what's needed to unblock]
The orchestrator will decide how to proceed (user input, skip, etc.)
When reading a previous task's handoff, use this approach:
The orchestrator will spawn you like this:
Task(
subagent_type="general-purpose",
model="claude-opus-4-5-20251101",
prompt="""
# Implementation Task Agent
[This entire SKILL.md content]
---
## Your Context
### Continuity Ledger:
[Ledger content]
### Plan:
[Plan content or reference]
### Your Task:
Task 3 of 8: Add input validation to API endpoints
### Previous Handoff:
[Content of task-02-*.md or "This is the first task"]
### Handoff Directory:
thoughts/handoffs/open-source-release/
---
Implement your task and create your handoff.
"""
)
Your handoffs will accumulate:
thoughts/handoffs/<session>/
├── task-01-setup-schema.md
├── task-02-create-endpoints.md
├── task-03-add-validation.md ← You create this
├── task-04-write-tests.md ← Next agent creates this
└── ...
Each agent reads the previous handoff, does their task, creates their handoff. The chain continues.
Weekly Installs
196
Repository
GitHub Stars
3.6K
First Seen
Jan 22, 2026
Installed on
opencode190
codex188
gemini-cli187
cursor186
github-copilot184
amp181
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
62,200 周安装