mcaf-feature-spec
Create or update a feature spec under `docs/Features/` using `docs/templates/Feature-Template.md`: business rules, user flows, system behaviour, Mermaid diagram(s), verification plan, and Definition o
Files3
View on GitHubSKILL.mdskills/mcaf-feature-spec/SKILL.md
GitHubMCAF: Feature Spec
Read root/local AGENTS.md, the architecture map, current implementation and callers, contracts, tests, and the user's accepted outcome.
Workflow
- Define scope, actors, permissions, boundaries, assumptions, and every required success, failure, and edge variant. Separate open decisions from accepted requirements.
- Apply
MCAF-ARCH-001: select one canonical slice name and map backend, frontend, contracts, tests, infrastructure, and docs inside this repository. RecordN/Awith a reason for an inapplicable surface. - Apply
MCAF-REQ-001: give requirements stableREQ-*IDs, type, priority, rationale, and measurable pass/fail conditions. Map each toAC-*and meaningful automated tests or explicit exceptions with manual evidence. - Link required ADRs or explain why existing architecture/contracts suffice. User approval is required before material architecture, serialization, contract, data, security, dependency, or deployment changes are implemented.
- For non-trivial delegated work, define the
MCAF-AI-001task graph with roles/model tiers, disjoint ownership, dependencies, artifacts, verification, explicit completion states, and join conditions. - Plan complete code, tests, wiring, and docs, followed by self-review, fixes, formatting, and one verification phase. Every check must prove a requirement or answer a specific risk.
- Keep the requirement → acceptance → ADR → task → test → evidence matrix current. Do not mark
Verifieduntil every accepted variant and required gate is complete.
Deliver docs/Features/<SliceName>.md with at least one rendered Mermaid flow diagram. It must be implementable without hidden assumptions or rereading the conversation.
References
- For the policy contract: requirements and ADR traceability.
- When scaffolding a spec: feature template.