Documentation Creation Criteria

SkillDocs & knowledge

Determines which PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires and where each document lives. Use when deciding documentation scope or creating or reviewing one of these artifacts.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Documentation Creation Criteria skill

What this skill tells your AI

The instructions your AI receives, as published by shinpr/codex-workflows in .agents/skills/documentation-criteria/SKILL.md and read by ahel’s review.

Templates

Creation Decision Matrix [MANDATORY]

Structural ScaleBase DocumentsCreation Order
SmallNoneN/A
MediumDesign Doc -> Work PlanStart with Design Doc
LargePRD -> Design Doc -> Work PlanContinue after PRD approval

Build one path in this order:

  1. Select the base path from Structural Scale.
  2. Frontend or fullstack scope inserts UI Spec immediately before the Design Doc.
  3. One or more qualifying ADR decision points insert an ADR batch immediately before the Design Doc. A qualifying decision point sets the scale floor to Medium.

ENFORCEMENT: EVALUATE structural scale and ADR conditions BEFORE starting implementation

Structural Scale

Classify the decision burden, not repository layout. File count is supporting evidence only.

ScaleStructural condition
SmallOne coherent outcome follows existing patterns within one responsibility boundary
MediumOne coherent outcome coordinates across a boundary or requires a durable design decision
LargeMultiple independently valuable outcomes require separate design decisions

A qualifying ADR decision point sets the floor at Medium because it creates a durable decision. Large applies when multiple independently valuable outcomes require separate design decisions; one coherent outcome remains Medium across multiple layers. ADR decision points come from the Choice and Durability filters independently of scale.

ADR Creation Conditions

First check accepted ADRs that govern the changed responsibility. Then apply both filters in order for each technical topic within the confirmed implementation scope:

  1. Choice requires judgment — current requirements, accepted decisions, and representative repository patterns support at least two credible materially distinct options whose selection requires comparison.
  2. Decision is durable — choosing among those options materially changes a responsibility, dependency direction, shared contract, persistence model, technology dependency, reversibility, or lifecycle cost that future work must understand or preserve.

Create one ADR for each topic that passes both filters. Route topics with one evident choice, generic technical concerns, operational possibilities, and rejected activities directly to the Design Doc or out of current design as applicable.

Treat choices as one decision point when they must be selected or reconsidered together. Use separate decision points when each choice can be selected and revisited independently.

Qualifying durable choices include:

  • introducing or replacing a technology, library, platform, storage model, or external dependency;
  • changing ownership, dependency direction, trust boundary, or a shared public contract in a way with credible materially different alternatives;
  • reversing or superseding an accepted architecture decision;
  • choosing an irreversible or high-cost-to-reverse data or compatibility strategy.

A local contract, data-flow, state, or component change that follows an accepted design, has one evident repository-supported implementation, or remains cheaply reversible belongs in the Design Doc. Counts of files, consumers, nesting levels, states, steps, and Structural Scale remain supporting evidence rather than ADR criteria.

What Each Document Fixes

Each document fixes one class of decision needed by its downstream consumer. The decision matrix determines whether the document is required; the applicable template defines its content.

DocumentDecision it fixesConsumer and effect when missing
PRDConfirmed product outcome, requirements, acceptance criteria, and exclusionsDesign and test selection would have to infer product scope
ADROne qualifying durable technical choice and the alternatives it resolvesDesign and future changes could not distinguish an accepted decision from a local implementation choice
UI SpecApproved UI structure, states, interactions, and visual acceptanceFrontend design and implementation would have to infer user-interface decisions
Design DocRepository-grounded implementation approach, contracts, change surface, and verification strategyPlanning and implementation would have to make technical design decisions locally
Work PlanImplementation outcome order, dependencies, and executable verificationTask decomposition and execution would have to choose sequencing and proof boundaries locally

Storage Locations

DocumentPathNaming Convention
PRDdocs/prd/[feature-name]-prd.md
ADRdocs/adr/ADR-[4-digits]-[title].md
UI Specdocs/ui-spec/[feature-name]-ui-spec.md
Design Docdocs/design/[feature-name]-design.md
Work Plandocs/plans/YYYYMMDD-{type}-{description}.md

ADR Status

Proposed -> Accepted -> Deprecated/Superseded/Rejected

Signals

GitHub stars
37
Forks
8
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
documentation-criteria-3
Source
github.com/shinpr/codex-workflows