AI SDLC Kit
Reference

Templates Reference

All templates in the AI SDLC Kit β€” what they are, when they are used, and their structure.

Templates live in .github/templates/. They are used by agents as structural guides when generating artefacts. Agents do not copy templates verbatim β€” they use them as section schemas and fill them with content derived from upstream artefacts.


idea.template.md

Used by: 🧭 Discovery (via /discovery-refine)
Produces: doc-specs/idea.md

SectionPurpose
ProblemThe core problem the idea addresses
Target usersWho needs this
Key scenariosThe most important things users need to do
Success criteriaHow we know this works
Out of scopeWhat is explicitly not included
ConstraintsKnown limitations or fixed decisions
ContextBackground, origin, or related context
Open questionsAmbiguities that must be resolved before moving forward

non-technical-spec.template.md

Used by: πŸ—‚οΈ PM (via /discovery-spec)
Produces: doc-specs/non-technical-spec.md

SectionPurpose
PersonasWho uses this and what they need
User journeysStep-by-step flows for each persona
Functional scenariosConcrete use cases with happy paths and edge cases
Business rulesConstraints and policies that govern behavior
Acceptance criteriaTestable conditions for each scenario
Open questionsItems requiring business validation before PRD

PRD.template.md

Used by: πŸ§‘β€πŸ’Ό Tech Lead (via /discovery-prd) and πŸ“ Planner (via /task-prd)
Produces: doc-specs/PRD.md

SectionPurpose
OverviewExecutive summary of what is being built
ObjectivesWhat success looks like
Scope β€” includedWhat is in this delivery
Scope β€” excludedWhat is explicitly not in this delivery
AssumptionsThings treated as true without verification
Functional requirementsNumbered list of required behaviors
Non-functional requirementsPerformance, security, accessibility, etc.
Acceptance criteriaConditions that must be true for sign-off
Open questionsItems that must be resolved before implementation

technical-spec.template.md

Used by: πŸ—οΈ Architect (via /discovery-tech-spec)
Produces: doc-specs/technical-spec.md

SectionPurpose
Architecture overviewHow the system is structured
Architecture decisionsKey decisions with rationale (ADR format)
ComponentsModules, services, and their responsibilities
Contracts and interfacesAPIs, data schemas, events
Data flowsHow data moves through the system
Persistence strategyStorage choices and migrations
Auth and securityAuthentication, authorization, data protection
Testing strategyUnit, integration, end-to-end approach
RisksTechnical risks with mitigation notes
Open questionsUnresolved technical decisions

epics.template.md

Used by: πŸ—οΈ Architect (via /discovery-epics)
Produces: doc-specs/epics.md

SectionPurpose
Epic listOrdered table: N, title, description, dependencies
Sequencing rationaleWhy this order β€” what drives the dependency graph
Branch namingConvention: feat/E<NN>-<slug>

epic-N.template.md

Used by: πŸ—οΈ Architect (via /epic-init)
Produces: doc-specs/<N>-epic/epic-N.md

SectionPurpose
Epic overviewWhat this epic achieves in the larger project
Scope β€” includedWhat this epic delivers
Scope β€” excludedWhat is deferred to future epics
Technical dependenciesPrior epics or infrastructure that must exist
Completion criteriaObservable signals the epic is done

spec-epic-N.template.md

Used by: πŸ—οΈ Architect (via /epic-init)
Produces: doc-specs/<N>-epic/spec-epic-N.md

The most critical template in the kit β€” this document gates implementation.

SectionPurpose
Technical contextArchitecture decisions from CONTEXT.md relevant to this epic
Implementation scopeWhat is in and out
Affected filesExplicit list: create / modify / delete
Data model changesSchema changes, migrations
Implementation strategyStep-by-step plan with no ambiguous decisions
Test strategyScenarios to cover and how to test them
Technical acceptance criteriaβœ… Checklist the Implementer must complete
Risks and open questionsBlockers to flag before starting

decisions-log.template.md

Used by: πŸ—οΈ Architect (created empty via /epic-init); updated by πŸ› οΈ Implementer
Produces: doc-specs/<N>-epic/decisions-log.md

Each entry follows the ADR (Architectural Decision Record) format:

FieldDescription
DateWhen the decision was taken
DecisionWhat was decided
ContextWhat situation made this decision necessary
AlternativesOther options that were considered
ConsequencesWhat this decision implies for future epics

Entries are never deleted β€” only appended or amended.


ops-epic-N.template.md

Used by: πŸš€ Ops (via /epic-close)
Produces: doc-specs/<N>-epic/ops-epic-N.md

SectionPurpose
Deploy preparationEnv vars, infra deps, migration sequence, feature flags, rollback plan
Breaking changesImpact on other services or future epics
ObservabilityLogs, metrics, and alerts to configure
Production validationHow to confirm the epic works in production
Anomaly patternsWhat distinguishes normal from abnormal for these features
Technical debtDebt registered for future epics
Feedback for future epicsLearnings, risks, and suggested adjustments to epics.md

CONTEXT.template.md

Used by: πŸ—οΈ Architect (initial creation via /discovery-tech-spec; updated via /context-sync)
Produces: doc-specs/CONTEXT.md

SectionPurpose
Project overviewWhat this project is, at a glance
Architecture decisionsCumulative ADRs from all epics
Completed epicsSummary of each merged and deployed epic
Technical debtRegistered debt across all epics
Active risksRisks surfaced by Ops that haven't been resolved
Test strategyProject-wide testing conventions
Development conventionsPatterns and constraints all agents must follow

AGENTS.base.md

Used by: πŸ“ Planner (via /agents-init)
Produces: AGENTS.md at the project root

A skeleton for the project-level AGENTS.md file. Contains:

SectionPurpose
PurposeWhat this project does
Global behaviorConventions all agents must follow in this codebase
LimitsWhat agents must never do
Specialized filesLinks to additional agent guidance

Used only once per project to establish baseline Copilot guidance for the codebase.


spec.template.md

Used by: πŸ“ Planner (via /task-spec) β€” Flow B only
Produces: doc-specs/spec.md

SectionPurpose
ContextWhy this task is needed
Technical objectiveWhat the implementation must achieve
Implementation scopeFiles and components to change
Architecture impactEffect on existing systems
Component listAffected modules and services
Functional flowStep-by-step expected behavior
Technical rulesImplementation constraints
Implementation strategyApproach and sequencing
Test strategyHow to validate correctness
Technical acceptance criteriaTestable conditions
Risks and open questionsBlockers and uncertainties