agentleFS
Casper-MarsCasper-Mars/dsh-agent-dev/skills/dev-implementation-plan/SKILL.md

dev-implementation-plan

Skill0 starsChanged 5 days agoApache-2.0View on GitHub

编码前把任务拆成可执行的小步计划:改哪些文件、接口怎么变、先写什么测试、每步怎么验证。只要用户提到实现计划、编码方案、开工前拆分、任务落地步骤,就使用本技能。不用于需求拆解、技术选型或验收结论。

The file

Files
SKILL.md

实现计划

实现计划不是任务清单,是让另一个人能按步骤做出来的最小指令集。

Iron Law

没有验证方式的步骤,不算步骤。

什么时候用 / 不用

  • 用:接到编码任务后、改动跨多个文件、需要 TDD、需要并行分工。
  • 不用:需求拆解、技术方案设计、验收报告。

流程

  1. 对齐输入:AC、方案、当前代码状态、约束(版本、目录、禁止改动)。
  2. 定文件边界:新建 / 修改哪些文件,各自职责一句话。
  3. 定接口:函数签名、入参出参、错误码;先定接口再写实现。
  4. 拆小步:每步一个动作 + 一个可检查结果。默认:失败测试 → 运行确认失败 → 最小实现 → 运行通过 → 提交。
  5. 标风险:不确定的库行为、并发、迁移、兼容性,标出来并给验证方式。
  6. 写计划并执行:计划与现实不符时改计划并说明,不静默偏离。

门禁

#门禁通过线不过怎么办
1AC 对齐每条 AC 有对应步骤补
2文件边界每个文件职责一句话重写
3接口明确签名 / 类型 / 错误码补
4步骤可验证每步有命令或检查点重写
5风险有验证每个风险有验证方式补
6范围受控不包含无关重构删除

输出契约

目标:<一句话>
AC 映射:AC1 → 步骤 2/3;AC2 → 步骤 4
文件:<路径> — <职责>
接口:<签名>
步骤:
1. <动作> → 验证:<命令 / 预期>
2. ...
风险:<风险> → 验证方式
不做什么:<边界>

反合理化

借口现实
边写边想边写边想会把返工留给测试
计划太细浪费时间细到可验证,不是细到代码
先写实现再补测试测试会变成实现的复述
这个文件顺手改一下顺手改是范围失控的起点
接口以后再定接口不定,前后端都在猜

红旗

  • 步骤没有验证方式。
  • 计划里出现「重构一下」「顺便优化」。
  • 先写实现后补测试。
  • 接口靠口头约定。
  • 执行偏离计划但不更新计划。

交接

  • 需求不清:回 Leader。
  • 方案不清:回 architect-tech-spec。
  • 执行:Developer;验收:Tester。

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.