Summary
Use when 你需要把选中的模块(优先 P0)做成 `.aidlc/project/components/{module}.md` 的单页模块 SSOT,并在同一页内建立 API/Data 契约的权威入口、不变量摘要、证据入口与结构化缺口(Evidence Gaps),以满足 Discover 的 DoD 门禁。
zixun-github/ai-dlc · Archived
Use when 你需要把选中的模块(优?
npx skills add zixun-github/ai-dlc --skill project-discover-modules-contracts
Use when 你需要把选中的模块(优先 P0)做成 `.aidlc/project/components/{module}.md` 的单页模块 SSOT,并在同一页内建立 API/Data 契约的权威入口、不变量摘要、证据入口与结构化缺口(Evidence Gaps),以满足 Discover 的 DoD 门禁。
This repository is archived — consider an actively maintained alternative.
Use when executing implementation plans with independent tasks in the current session
5 installsUse when 需要在 dlc-dev 的产品需求 Spec 流程执行 R2,将 requirements/solution.md 转写为可交付、…
5 installsUse when 在 dlc-dev 的 spec 分支上需要完成 R1(raw→solution)的需求澄?
5 installsUse when 需要在 Spec 级设计阶段执行 D1 research(产出 `{FEATURE_DIR}/design/research.md`),或…
5 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Architecture standard for building robust, type-safe TypeScript services using the "Spec and Ha…
13 installsUse when documenting an HTTP API, message payloads, queue contracts, DTOs, file formats, or web…
5.1K installsSet up a Solidity smart contract project with OpenZeppelin Contracts.
500 installsDevelop secure smart contracts using OpenZeppelin Contracts libraries. Use when users need to i…
476 installsParallel Agent Type Contracts
472 installsUpgrade Solidity smart contracts using OpenZeppelin proxy patterns.
417 installsOther skills from zixun-github/ai-dlc · top by installs.
npx skills add zixun-github/ai-dlc
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
master
Files included with this skill beyond the listing page.
SKILL.md
6,122 B
SUMMARY.md
327 B
模块页是 Discover 的“权威入口”。它的目标不是写全细节,而是让 AI/人能在需要时 快速判断边界与不变量,并且能沿着证据链定位到代码/契约/测试/CI/ops。
开始时宣布:「我正在使用 project-discover-modules-contracts 技能为模块建立单页 SSOT(含契约段落与证据链)。」
- .aidlc/project/components/{module}.md
- ## TL;DR - ## API Contract - ## Data Contract - ## Evidence(证据入口) - ## Evidence Gaps(缺口清单)
- 禁止 .aidlc/project/contracts/**
- 所有缺口只写到 ## Evidence Gaps(缺口清单)(不允许散落“待补/未发现/TODO”)
- 在 API Contract / Data Contract / Evidence 等正文里,禁止写“待补齐后填写/待确认/未发现/以后再补”等占位句。 - 如果缺证据或缺结论:只允许写入 ## Evidence Gaps(缺口清单),并保持正文段落简短、可追溯。
---
module: <module-short-name>
priority: P0|P1|P2
change_frequency: high|medium|low
last_verified_at: <YYYY-MM-DD>
source_files:
- <path/to/key/file1>
- <path/to/key/file2>
---
提示:
changefrequency可用 git log 的经验判断或简单统计;sourcefiles只选“最能代表模块边界/契约/状态机”的关键源文件。
# <模块中文名>(<module>)
## TL;DR
<3–5 句话:做什么、边界、关键不变量、最关键的证据入口>
## 模块定位
- In:
- Out:
## Owner
- 团队/负责人/值班入口:
## 入口
- 代码入口:
- 运行入口(如有):../ops/...
## 协作场景(1–2 个)
- 谁调用谁 + 关键边界(细节时序下沉到 spec)
## State Machines & Domain Events
- 状态机摘要:
- 领域事件摘要:
## API Contract
- 权威入口(必须可定位):
- 不变量摘要(3–7 条):
- 证据入口(最小粒度):
## Data Contract
- 数据主责(Ownership):
- 核心对象与主键:
- 权威入口(必须可定位):
- 不变量摘要(3–7 条):
- 证据入口(最小粒度):
## Evidence(证据入口)
- Code:
- Tests:
- CI:
- Ops:
## Evidence Gaps(缺口清单)
- 缺口:
- 期望补齐到的粒度:
- 候选证据位置:
- 影响:
## API Contract 最小要求(P0)- OpenAPI/Proto/Schema 的源文件路径或生成物路径 - 若有生成/校验命令或 CI job,写入口(不写长说明)
- 例如:鉴权方式、幂等语义、版本策略、错误码族、审计要求、超时/重试策略
- 至少 N 个关键 handler/router/controller 文件路径 - 至少 1 个代表性测试入口(没有就进入 Evidence Gaps) - 至少 1 个 CI job/命令入口(能证明“有没有跑测试/有没有做契约校验”)
## Data Contract 最小要求(P0)- 主写/只读/同步来源(边界明确)
- 对象名 + 主键/唯一标识 + 生命周期一句话
- migrations/DDL/Schema/ORM model 的证据入口
- 例如:唯一性约束、状态口径、关键枚举、不可变字段、对账口径入口
- 关键 repository/mapper/service 路径 - 测试/CI 证据入口(无则进 Evidence Gaps)
任何“找不到/不确定/待补”都必须按这个结构写,避免缺口散落导致永远补不齐。
特别提醒: 如果你暂时无法给出“3–7 条不变量摘要”,不要在正文里写“待补齐后填写”。
正确做法:在 Evidence Gaps 里新增缺口条目(例如“缺口:未提取 API 不变量摘要”),并写清候选证据位置与影响。
该模块此时不得在索引中打勾。
## Evidence Gaps(缺口清单)
- 缺口:未发现 OpenAPI/Proto 权威入口(无法确认接口字段与错误码族)
- 期望补齐到的粒度:定位到具体 schema 文件路径或生成 job 名
- 候选证据位置:`docs/`、`api/`、`openapi/`、CI workflow 中的 build-docs job
- 影响:需求设计与实现阶段会猜接口契约,容易破坏兼容性与回归成本高