plan-task
Skill87 starsChanged 18 days agoMITView on GitHub
为任务设计技术方案和实施计划。 当需求已明确、需要在编码前形成技术方案时使用。 仅当对话包含可解析的任务引用时才可自动调用本技能。
12 other projects use a version of this.
Adopted by
Most recently taken up by
- etr/groundworktheir own version, first seen Nov 8, 2026
- rumotion/ai-agent-project-templatetheir own version, first seen Nov 1, 2026
- griffinhilly/claude-code-synthesistheir own version, first seen Nov 1, 2026
- anaidenko/claude-notify-resumetheir own version, first seen Oct 15, 2026
- Yesterday-AI/ytstacktheir own version, first seen Oct 13, 2026
- jezweb/vite-flare-startertheir own version, first seen Oct 9, 2026
Used with
Projects with it also use ship, handoff and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- ModelEngine-Group/fit-framework★ 2.1ksame name
- mattolson/agent-sandbox★ 212same name
- griffinhilly/claude-code-synthesis★ 67same name
- jezweb/vite-flare-starter★ 49same name
- etr/groundwork★ 45same name
- LevNas/ccmemo★ 4same name
- Yesterday-AI/ytstack★ 2same name
- anaidenko/claude-notify-resume★ 1same name
- NAVNAV221/ai-native-codebase★ 1same name
- rumotion/ai-agent-project-template★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-taskSkill
- archive-tasksSkill
- block-taskSkill
- cancel-taskSkill
- check-taskSkill
- close-codescanSkill
- close-dependabotSkill
- code-taskSkill
- commitSkill
- complete-manual-validationSkill
- complete-taskSkill
- create-prSkill
- create-release-noteSkill
- create-taskSkill
- entropy-checkSkill
- import-codescanSkill
- import-dependabotSkill
- import-issueSkill
- init-labelsSkill
- init-milestonesSkill
- post-releaseSkill
- refine-titleSkill
- releaseSkill
- restore-taskSkill
- review-analysisSkill
- review-codeSkill
- review-planSkill
- review-prSkill
- run-manual-validationSkill
- test-integrationSkill
- testSkill
- update-agent-infraSkill
- upgrade-dependencySkill
- watch-prSkill
The file
Files
设计技术方案
--agent取值见.agents/rules/task-management.md「合作者 token 规范」。
生命周期事件必须携带显式触发信息:普通技能调用使用 model;仅用户明确要求时使用 human。{request-id} 是本任务与本轮产物的稳定单行标识,{reason-code} 使用 user-request、new-requirement 或 upstream-fact-doubt;started 与 completed 使用同一组值。
行为边界 / 关键规则
路径与返工
本阶段只消费核心从最新有效分析产物解析出的规范路径事实;未被所选路径包含的阶段不得创建产物。同阶段完成一次修订—复审后再次收到 Changes Requested 时,必须在下一执行产物前提交绑定 finding、来源 SHA 和稳定任务事实摘要的返工分类;轮次或文件名变化不是新证据。
持久化报告证据
生成方案报告时,先读取 .agents/rules/evidence-reporting.md。状态核对和验证记录命令、目标范围、状态/结构化结果、实际结果和未覆盖部分;失败、阻塞或争议才附决定性原文摘录。
- 涉及候选资格或
HD-N判断时,先读取.agents/rules/decision-qualification.md,基于 task.md 规范化约束/候选完成资格审计,并在方案产物记录三张资格审计决策表和资格快照;不得把来源不明或未确认约束自动升级为排除条件 - 本技能仅产出技术方案文档(
plan.md或plan-r{N}.md)—— 不修改任何业务代码 - 生成会同步到 Issue 的任务或生命周期 Markdown 前,先读取
.agents/rules/sync-content-generation.md并遵循其中的生成端约束;同步端不解析或改写正文 - 完整路径进入方案审查;标准路径完成方案后可直接进入实现阶段
- 方案涉及兼容、迁移、旧格式或旧入口时,先读取
.agents/rules/compatibility-policy.md;未通过准入门槛时不得设计 adapter、shim、双写或并行状态机 - 执行本技能后,你必须立即更新 task.md 中的任务状态
版本戳规则:创建或更新 task.md frontmatter 时,先读取 .agents/rules/version-stamp.md,并写入或刷新 agent_infra_version。
第 0 步:状态核对(执行前硬约束)
在加载 workflow / skill / rules 指令之后、做任何任务状态判断或用户可见结论之前,必须先执行状态核对。指令类文件读取不算对外动作或结论。
运行以下命令,并在本轮产物的 ## 状态核对 段记录任务/产物范围、关键结果和未覆盖部分;正常成功不粘贴完整目录清单或 task.md 尾部。失败、阻塞、身份不一致或争议时,附决定性原文行:
agent-infra-internal task-snapshot {task-id} --format text状态核对完成前,禁止任何关于外部状态的断言(例如“代码没变”“测试已通过”“没有其他引用”),包括思考阶段。本门禁只提供结构下限;逐条证据配对和真实性仍需按报告模板与审查要求核对。
任务上下文解析
入口可省略 task ref;显式 task scope 仅接受
--task <ref>或-t <ref>,不再解释位置 task ref。保留其余业务操作数后调用agent-infra-internal task-context resolve {task-scope};{task-scope}为空或 task flag 之一。只读取结构化结果的taskId,后续把{task-id}绑定为完整TASK-YYYYMMDD-HHMMSS。解析失败时透传非零退出码,不自行扫描任务。
解析任务引用,并确认任务位于本技能支持的状态或目录且存在
task.md;无法定位时按未找到任务处理并停止。
步骤开始:声明 started 事件
确认前置条件和轮次后、本轮第一个产出动作之前执行:
agent-infra-internal task-event {task-id} plan.started --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code}执行步骤
1. 验证前置条件
检查必要文件:
<task-workspace>/active/{task-id}/task.md- 任务文件- 至少一个分析产物:
analysis.md或analysis-r{N}.md
注意:{task-id} 格式为 TASK-{yyyyMMdd-HHmmss},例如 TASK-20260306-143022
如果任一文件缺失,提示用户先完成前置步骤。
2. 解析方案上下文
运行 agent-infra-internal task-artifact {task-id} inspect --family plan。仅当结果为 ready 时继续。若 selection.disposition 为 reuse,复用 selection.artifact,不得执行 started、init 或写入新产物,并直接进入完成校验与下一步提示。其他状态从 inputs 取得最新 {analysis-artifact},从 next.round / next.name 取得 {plan-round} / {plan-artifact};不得自行扫描轮次或拼装文件名。随后执行 started 事件并复核返回身份。
3. 阅读需求分析
读取步骤 2 核心返回的最新 {analysis-artifact},
以理解:
- 需求及其背景
- 相关文件和代码结构
- 影响范围和依赖关系
- 已识别的技术风险
- 工作量和复杂度评估
Round ≥ 2:响应上一轮审查(仅当存在审查产物时):若任务目录存在 review-plan.md / review-plan-r{N}.md,读取最高轮次的审查报告;在本轮方案产物中新增 ## 对上一轮审查的响应 段,对每条发现先 Read/Grep 核实,再按 .agents/rules/review-handshake.md 的四态(accepted / adjusted / refuted / cannot-judge)处置——每态都要附相称证据,不默认顺从;随后逐条调用 agent-infra-internal task-ledger {task-id} finding-respond --id {ledger-id} --round {plan-round} --status {四态} --evidence {相称证据}。未决分歧写入 ## 未决问题。Round 1 无审查,跳过本段。
4. 理解问题
- 阅读分析中识别的相关源码文件
- 理解当前架构和模式
- 识别明确约束(包括有证据且已获准的兼容性、性能等),不自行推导兼容承诺
- 考虑边界情况和错误场景
5. 设计技术方案
设计方案前先读取 .agents/rules/strategy-pattern.md,识别各实现共用的流程及平台、客户端、协议、工作流、业务规则或算法方面的差异;优先让主流程依赖接口,并通过策略实现承载差异,避免为每条链路增加专用分支。
仅当方案阶段实际判断候选资格、约束依赖或人工裁决资格时,才按 .agents/rules/decision-qualification.md 复核规范化约束和候选,并在方案产物记录完整资格审计;否则省略整个审计段。来源不明或未人工确认的约束不得自动排除候选。
遵循 .agents/workflows/feature-development.yaml 中的 technical-design 步骤:
必要任务:
- 定义技术方法和理由
- 考虑备选方案并说明权衡
- 按顺序详细列出实施步骤
- 列出所有需要创建/修改的文件
- 定义验证策略(测试、手动检查)
- 评估方案的影响和风险
遇到本轮新增的关键设计决策时,按 .agents/rules/no-mid-flow-questions.md 判据,先调用 agent-infra-internal task-ledger {task-id} decision-next-id 取得 HD-N,按 .agents/rules/human-decision-context.md 写入方案产物的 ## 人工裁决待办 段 ### HD-N:<标题> [needs-human-decision],再调用 decision-upsert --id {HD-N} --stage plan --artifact {plan-artifact};普通未决问题仍写 ## 未决问题。
设计原则:
- 架构合理性:选择结构正确的方案,改动大小不是首要依据。不要为了减少 diff 而在不合理的结构上叠加
- 策略模式:明确各实现共用的流程和不同的行为;主流程依赖接口,不依赖具体实现;策略在统一位置选择和装配
- 简洁性:在架构合理的前提下,优先选择最简方案;行为稳定且没有明确替代实现时,不机械增加策略接口
- 一致性:遵循现有代码模式和规范
- 可测试性:设计易于测试的方案
- 可逆性:优先选择易于回退的变更
6. 输出计划文档
在首次写入本轮 {plan-artifact} 前,先创建受控报告骨架:
agent-infra-internal task-artifact {task-id} init --family plan --artifact {plan-artifact}骨架只包含身份元数据、稳定 section marker 和必需标题;必须填入真实方案内容后才能通过完成门禁。finalizer 返回结构错误时,直接修正正式产物后重跑 task-artifact {task-id} finalize-local --family plan --artifact {plan-artifact};当前结构、资格和摘要事实是唯一门禁。
创建 <task-workspace>/active/{task-id}/{plan-artifact}。
7. 更新任务状态
更新 <task-workspace>/active/{task-id}/task.md:
- 仅更新工作量、审查响应等本技能拥有的业务内容;产物链接、阶段与完成日志由 completed 事件统一登记
- 在追加工作流 Activity Log 条目之前,基于技术方案(实施步骤数、涉及文件、测试矩阵范围、集成面)重估
effort。若重估值与task.md当前值不一致:- 用新值覆盖 frontmatter 的
effort字段 - 在本轮方案产物
{plan-artifact}中追加## 工作量重估段,记录一条:effort {old} → {new} (rationale: {基于本轮方案的简短依据})若重估值与当前值一致,跳过:不写入## 工作量重估段。后续 Flow A 同步会读取可能更新过的 frontmatter,并自动把新值同步到 Issue。
- 用新值覆盖 frontmatter 的
- 完成本地产物后,先执行本地完成前门禁:
agent-infra-internal task-artifact {task-id} finalize-local --family plan --artifact {plan-artifact}status=passed:保存本次返回的artifactSha256和semanticDigest;finalizer 已记录对应的一次性本地 provenance intent。status=failed:直接修正正式产物并完整重跑 finalizer;若仍失败且诊断未解决,继续下一轮。- 当前正式产物发生外部变化、无法安全修复、诊断或指纹重复、无进展,或达到共享规则的编辑上限时停止,不发布 completed 事件。
- 使用同一次
status=passed返回的摘要执行agent-infra-internal task-event {task-id} plan.completed --agent {standard-agent-token} --initiator {trigger-initiator} --request-id {request-id} --reason-code {reason-code} --artifact {plan-artifact} --artifact-sha256 {artifact-sha256} --semantic-digest {semantic-digest},由核心登记链接、阶段、代理、时间、版本和 Activity Log。
如果 task.md 中存在有效的 platform_issue_identity,执行以下同步操作(任一失败则跳过并继续):
- 调用
agent-infra-internal platform-issue sync {task-id} --agent {standard-agent-token} --status pending-design-work --fields - 调用
agent-infra-internal platform-comment sync {task-id} --kind task --agent {standard-agent-token} - 调用
agent-infra-internal platform-comment sync {task-id} --kind artifact --artifact {plan-artifact} --agent {standard-agent-token}
8. 完成校验
运行完成校验,确认任务产物和同步状态符合规范:
agent-infra-internal task-verify {task-id} plan.completed --artifact {plan-artifact} --format text处理结果:
- 退出码 0(全部通过)-> 继续到「告知用户」步骤
- 退出码 1(校验失败)-> 根据输出修复问题后重新运行校验
- 退出码 2(阻塞)-> 保留阻塞状态并读取当次摘要;只继续与该校验无依赖的本地工作,不得宣称阶段完成,也不得仅凭退出码归因为网络故障。仅在缺少用户专属事实/授权或无法安全恢复时请求用户动作。
按 .agents/rules/validation-output.md 展示当次校验摘要;没有当次校验输出,不得声明完成。
9. 告知用户
仅在校验通过后执行本步骤。
渲染下一步前先读取
.agents/rules/next-step-output.md,仅为已选场景调用统一 helper,并将 stdout 填入{next-step-commands}。
输出格式:
按分析中的规范路径选择一条命令生成 {next-step-commands}:
- 标准路径:
agent-infra-internal agent-client next-steps --skill code-task --task-ref {task-ref} - 完整路径:
agent-infra-internal agent-client next-steps --skill review-plan --task-ref {task-ref}
任务 {task-id} 技术方案完成。
方案概要:
- 轮次:Round {plan-round}
- 方法:{简要描述}
- 需修改文件:{数量}
- 需新建文件:{数量}
- 预估复杂度:{评估}
产出文件:
- 技术方案:<task-workspace>/active/{task-id}/{plan-artifact}
下一步 - 按所选路径继续:
{next-step-commands}完成检查清单
- 阅读并理解了需求分析
- 考虑了备选方案
- 创建了计划文档
<task-workspace>/active/{task-id}/{plan-artifact} - 更新了 task.md 中的
current_step为 technical-design - 更新了 task.md 中的
updated_at为当前时间 - 在 task.md 中记录了
{plan-artifact}为已完成产物 - 在工作流进度中标记了 technical-design 为已完成
- 追加了 Activity Log 条目到 task.md
- 已按所选路径选择代码实现或方案审查
- 已通过统一 helper 渲染已选场景的下一步命令
停止
完成检查清单后,立即停止。 完整路径在此进入方案审查;标准路径直接进入代码实现。
注意事项
- 前置条件:必须已完成至少一轮需求分析(
analysis.md或analysis-r{N}.md存在) - 后续阶段:标准路径进入代码实现,完整路径进入方案审查
- 计划质量:计划应足够具体,使另一个 AI 代理无需额外上下文即可实现
- 版本化规则:首轮方案使用
plan.md;后续修订使用plan-r{N}.md
错误处理
- 任务未找到:提示 "Task {task-id} not found, please check the task ID"
- 缺少分析:提示 "Analysis not found, please run the analyze-task skill first"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

