Loading...
Loading...
Use when you need to turn selected modules (P0 priority first) into single-page module SSOT at the path `.aisdlc/project/components/{module}.md`, and build authoritative entries for API/Data contracts, invariant summaries, evidence entries and structured Evidence Gaps in the same page to meet the DoD gate requirements of Discover.
npx skill4agent add zixun-github/aisdlc project-discover-modules-contracts.aisdlc/project/components/{module}.md## TL;DR## API Contract## Data Contract## Evidence## Evidence Gaps.aisdlc/project/contracts/**## Evidence GapsAPI ContractData ContractEvidence## 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>
---Tip:can be judged by git log experience or simple statistics;change_frequencyonly select key source files that "best represent module boundaries/contracts/state machines".source_files
# <Chinese module name>(<module>)
## TL;DR
<3–5 sentences: what it does, boundaries, key invariants, most critical evidence entry>
## Module Positioning
- In:
- Out:
## Owner
- Team/responsible person/on-call entry:
## Entries
- Code entry:
- Runtime entry (if any):../ops/...
## Collaboration Scenarios (1–2)
- Who calls whom + key boundaries (detailed timelines are下沉 to spec)
## State Machines & Domain Events
- State machine summary:
- Domain event summary:
## API Contract
- Authoritative entry (must be locatable):
- Invariant summary (3–7 items):
- Evidence entry (minimum granularity):
## Data Contract
- Data Ownership:
- Core objects and primary keys:
- Authoritative entry (must be locatable):
- Invariant summary (3–7 items):
- Evidence entry (minimum granularity):
## Evidence
- Code:
- Tests:
- CI:
- Ops:
## Evidence Gaps
- Gap:
- Expected granularity after filling:
- Candidate evidence location:
- Impact:## API Contract## Data ContractAny "undiscovered/uncertain/to be filled" must be written according to this structure, to avoid scattered gaps that can never be filled.Special reminder: If you can not provide "3–7 invariant summaries" for the time being, do not write "to be filled later" in the main text. Correct practice: Add a new gap entry in Evidence Gaps (e.g. "Gap: API invariant summary not extracted"), and clearly state the candidate evidence location and impact. This module cannot be checked in the index at this time.
## Evidence Gaps
- Gap: No OpenAPI/Proto authoritative entry found (unable to confirm interface fields and error code family)
- Expected granularity after filling: Locate specific schema file path or generation job name
- Candidate evidence location: `docs/`, `api/`, `openapi/`, build-docs job in CI workflow
- Impact: Interface contracts will be guessed during requirement design and implementation stages, which is easy to damage compatibility and lead to high regression cost