resumable-implementation-contracts
它能做什么
这个工具可以为耗时较长的编程项目制定详细的计划。它会清晰地记录进度和决策,确保即使中途被打断,也能准确地从上次停下的地方继续工作。
适用场景
- ✓需要分多个步骤或分几天完成的项目。
- ✓关键在于必须清楚知道工作停在了哪里时。
- ✓需要用证据证明进度的项目。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/resumable-implementation-contracts/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为电商网站项目创建一份实现合同,把任务拆分开,并定义如何判断每个部分是否完成。”
每周 5 个新技能,1 分钟读完。
工作原理
它会把工作整理成带有唯一编号的清晰任务。它使用记录文件来跟踪进度、已做出的决策,以及证明每个步骤已成功完成的证据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Resumable Implementation Contracts
Overview
Turn a large, mostly defined implementation request into a repository contract that a fresh agent can read, update, verify, and resume without reconstructing the project from chat history. Keep stable intent separate from mutable execution state, and require evidence before any task is called complete.
This is a tool-neutral document pattern. It does not depend on, replace, or configure any agent platform's built-in goal, task, plan, or project feature.
This skill fills the layer between planning and execution. It does not replace product discovery, detailed technical design, project-wide state governance, or retrospective auditing.
When to Use This Skill
Use it when work:
- spans multiple sessions, agents, branches, or context windows;
- has dependencies or acceptance criteria that must survive interruption;
- needs an exact resume point rather than a narrative handoff;
- can appear complete before runtime, artifact, UI, or test evidence exists;
- must preserve partial work and unrelated repository changes.
Skip it for a small task that can be completed and verified in one session. If requirements are still unsettled, resolve them before freezing the implementation contract.
Reuse Existing Project Documents
Inspect the repository before creating files. Reuse equivalent documents and the project's established names when their ownership is clear. For substantial multi-session work, the minimum logical document set is:
| Document | Owns | Must not become |
|---|---|---|
IMPLEMENTATION_CONTRACT.md |
stable intent, scope, tasks, acceptance, definition of done | a live activity log |
TASKS.md |
current task/subtask status, dependencies, evidence links | a second copy of the contract |
CHECKPOINT.md |
authoritative current position and exact next action | a vague progress summary |
DECISIONS.md |
material decisions, alternatives, and reasons | a transcript |
VALIDATION.md |
checks actually run, results, evidence, and unresolved gates | a list of planned tests |
These may live together under docs/<contract-slug>/ or follow an existing
repo layout. An existing GOAL.md, specification, or execution brief may own
the contract role; do not rename it or create parallel files solely to match
this skill.
Define Document Authority
- Current owner instructions and applicable repository instructions govern authorization and scope.
IMPLEMENTATION_CONTRACT.md, or its existing repository equivalent, owns the implementation contract. Do not silently change it to fit the current code.- The working tree, branch, commit, produced artifacts, and executed checks are truth for implementation state.
- The tracker files summarize that state; they do not override contrary evidence on disk.
When documents and reality disagree, reconcile status from evidence while preserving the contract's intent. Escalate any conflict that would materially change scope, behavior, or acceptance.
Write a Self-Contained Contract
A new agent should be able to understand the work from the contract without the original conversation. Include only what is needed to execute correctly:
- objective and observable outcomes;
- current baseline and important constraints;
- in-scope work, exclusions, and authorization boundaries;
- operating rules, including interruption and validation policy;
- tasks with stable IDs, dependencies, acceptance, and breakpoints;
- final definition of done and handoff requirements.
Use stable task and subtask IDs such as T03 and T03.2. Never renumber them
after execution starts; add new IDs or mark obsolete work explicitly.
Each task should use this compact form:
### T03 - <observable task outcome>
- [ ] T03.1 <first implementation slice>
- [ ] T03.2 <second implementation slice>
Dependencies: T01
Acceptance:
- <observable behavior or artifact>
- <required focused check and evidence>
Breakpoint:
- Update TASKS.md, VALIDATION.md, and CHECKPOINT.md after the accepted slice.
Write acceptance in pass/fail terms. File creation, code presence, or an agent's completion claim is not acceptance unless that is genuinely the whole requirement.
Read Before Acting
At the start of a session or after interruption, read in this order:
- applicable repository instructions;
- the implementation contract;
TASKS.md,CHECKPOINT.md,DECISIONS.md, andVALIDATION.md;
…
常见问题
什么是“实现合同”?
这是一类描述编程项目的文档,详细说明需要完成什么、如何验证是否完成,以及工作被打断后如何继续。
为什么要使用“稳定的任务 ID”?
这样每项工作都有一个固定且不会改变的名称,便于跟踪和引用,即使项目隔了很长时间才恢复,也依然方便。
这里的“证据”指什么?
指具体的证明材料,比如代码、测试结果或截图,用来表明某个任务确实按计划完成了。
详情
作者的原始描述
Create repository-based execution contracts for multi-session implementation work, with stable task IDs, evidence, checkpoints, and exact resume state.
热度
- GitHub 星标
- 48k
- 排名
- #5624
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。