ALWAYS open and follow {cypilot_path}/.core/requirements/code-checklist.md FIRST
Artifact: Code Implementation (Cypilot SDLC) Version: 1.0 Purpose: Kit-specific checks that require Cypilot SDLC artifacts (PRD/DESIGN/DECOMPOSITION/FEATURE/ADR) and/or Cypilot traceability.
Before running the SDLC-specific checks:
- Determine traceability mode from
artifacts.tomlfor the relevant system/artifact:FULLvsDOCS-ONLY - If
FULL: identify the design source(s) to trace (Feature design is preferred) - If
DOCS-ONLY: skip traceability requirements and validate semantics against provided design sources
These checks are Cypilot SDLC-specific because they require Cypilot artifacts (Feature design, Overall Design, ADRs, PRD/DESIGN coverage) and/or Cypilot markers.
Severity: HIGH
- Resolve Feature design via
@cpt-*markers using thecypilot where-definedorcypilot where-usedskill - If no
@cpt-*markers exist, ask the user to provide the Feature design location before proceeding - If the user is unsure, search the repository for candidate feature designs and present options for user selection
- Resolve Overall Design by following references from the Feature design (or ask the user for the design path)
Severity: HIGH
- Confirm code behavior aligns with the Feature Overview, Purpose, and key assumptions
- Verify all referenced actors are represented by actual interfaces, entrypoints, or roles in code
- Ensure referenced ADRs and related specs do not conflict with current implementation choices
Severity: HIGH
- Verify each implemented flow follows the ordered steps, triggers, and outcomes in Actor Flows
- Confirm conditionals, branching, and return paths match the flow logic
- Validate all flow steps marked with IDs are implemented and traceable
Severity: HIGH
- Validate algorithm steps match the Feature design algorithms (inputs, rules, outputs)
- Ensure data transformations and calculations match the described business rules
- Confirm loop/iteration behavior and validation rules align with algorithm steps
Severity: HIGH
- Confirm state transitions match the Feature design state machine
- Verify triggers and guards for transitions match defined conditions
- Ensure invalid transitions are prevented or handled explicitly
Severity: HIGH
- Verify each requirement in Definition of Done is implemented and testable
- Confirm implementation details (API, DB, domain entities) match the requirement section
- Validate requirement mappings to flows and algorithms are satisfied
- Ensure PRD coverage (FR/NFR) is preserved in implementation outcomes
- Ensure Design coverage (principles, constraints, components, sequences, db tables) is satisfied
Severity: HIGH
- Confirm architecture vision and system boundaries are respected
- Validate architecture drivers (FR/NFR) are still satisfied by implementation
- Verify ADR decisions are reflected in code choices or explicitly overridden
- Confirm principles and constraints are enforced in implementation
- Validate domain model entities and invariants are respected by code
- Confirm component responsibilities, boundaries, and dependencies match the component model
- Validate API contracts and integration boundaries are honored
- Verify interactions and sequences are implemented as described
- Ensure database schemas, constraints, and access patterns align with design
- Confirm topology and tech stack choices are not contradicted
- Document any deviation with a rationale and approval
Use {cypilot_path}/.core/requirements/code-checklist.md for all generic code quality checks.