vendor/skills/skilltrust-curated/codex-workflows/documentation-criteria/SKILL.md
Use when creating or reviewing PRDs, ADRs, design docs, UI specs, or work plans and a documentation template or document-type decision is needed.
npx skillsauth add yangshu2087/Codex documentation-criteriaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Condition | Required Documents | Creation Order | |-----------|-------------------|----------------| | New Feature Addition (backend) | PRD -> [ADR] -> Design Doc -> Work Plan | After PRD approval | | New Feature Addition (frontend/fullstack) | PRD -> UI Spec -> [ADR] -> Design Doc -> Work Plan | UI Spec before Design Doc | | ADR Conditions Met (see below) | ADR -> Design Doc -> Work Plan | Start immediately | | 6+ Files | ADR -> Design Doc -> Work Plan (REQUIRED) | Start immediately | | 3-5 Files | Design Doc -> Work Plan (REQUIRED) | Start immediately | | 1-2 Files | None | Direct implementation |
ENFORCEMENT: EVALUATE file count and ADR conditions BEFORE starting implementation
Purpose: Define business requirements and user value
Scope: Business requirements, user value, success metrics, user stories, MoSCoW prioritization, MVP/Future phase separation, user journey diagram, scope boundary diagram, and acceptance criteria with sequential IDs (for example AC-001, AC-002, continuing across all requirements in the document) only. Technical implementation details belong in Design Doc, technical decision rationale in ADR, and implementation phases or task breakdown belong in Work Plan.
Purpose: Record technical decision rationale and background Scope: Decision, rationale, option comparison (minimum 3 options), architecture impact, and principled implementation guidance only. Implementation procedures and code examples belong in Design Doc, while schedule and resource assignments belong in Work Plan.
Purpose: Define UI structure, screen transitions, component decomposition, and interaction design Scope: Screen list and transitions, component state x display matrix, component decomposition, interaction definitions, AC traceability, existing component reuse map, visual acceptance criteria, and accessibility requirements only. Technical implementation and API contracts belong in Design Doc, test implementation belongs in generated test skeletons, and schedule belongs in Work Plan.
Purpose: Define technical implementation methods in detail Scope: Existing codebase analysis, technical approach, dependencies and constraints, interface and contract definitions, data flow, acceptance criteria, change impact map, code inspection evidence, and verification strategy only. Technology selection rationale belongs in ADR, schedule and assignments belong in Work Plan, and detailed test strategy or case selection belongs in generated test skeletons.
Required Structural Elements:
N/A with rationale
Low-risk: changes affecting 1-2 files with no external contract, integration, or data-flow changes
Self-evident: internal-only refactoring with identical observable inputs and outputsPurpose: Implementation task management and progress tracking Scope: Task breakdown, dependencies, schedule estimates, test skeleton file paths, Verification Strategy summaries from each Design Doc, Design-to-Plan Traceability mapping for implementation-relevant technical requirements, final Quality Assurance phase, and progress tracking only. Technical rationale belongs in ADR and design details belong in Design Doc.
Phase Division Criteria:
When Vertical Slice is selected:
When Horizontal Slice is selected:
When Hybrid is selected:
STEP 1: Problem Analysis — Change scale assessment, ADR condition check STEP 2: ADR Option Consideration (ADR only) — Compare 3+ options, specify trade-offs STEP 3: Creation — Use templates, include measurable conditions STEP 4: Approval — "Accepted" after review enables implementation
ENFORCEMENT: Implementation CANNOT begin without approved documents for the relevant scale
| Document | Path | Naming Convention |
|----------|------|------------------|
| PRD | docs/prd/ | [feature-name]-prd.md |
| ADR | docs/adr/ | ADR-[4-digits]-[title].md |
| UI Spec | docs/ui-spec/ | [feature-name]-ui-spec.md |
| Design Doc | docs/design/ | [feature-name]-design.md |
| Work Plan | docs/plans/ | YYYYMMDD-{type}-{description}.md |
| Task File | docs/plans/tasks/ | {plan-name}-task-{number}.md |
Proposed -> Accepted -> Deprecated/Superseded/Rejected
| Document | Required Diagrams | Purpose | |----------|------------------|---------| | PRD | User journey, Scope boundary | Clarify user experience and scope | | ADR | Option comparison (when needed) | Visualize trade-offs | | UI Spec | Screen transition, Component tree | Clarify screen flow and structure | | Design Doc | Architecture, Data flow | Understand technical structure | | Work Plan | Phase structure, Task dependency | Clarify implementation order |
development
Use when explicitly reviewing, generating, refactoring, or migrating Terraform/OpenTofu IaC and checking failure modes such as identity churn, secrets, blast radius, CI drift, or compliance gates.
development
Use when the user explicitly mentions Google Stitch and wants a structured Stitch-ready UI prompt or prompt refinement from rough product/design ideas.
development
Use when the user explicitly mentions Google Stitch and asks to convert Stitch designs into Vite, CRA, or generic React components.
development
Use when the user explicitly mentions Google Stitch and asks to convert Stitch designs into Next.js App Router components.