mcpbeat Sign in

Documentation Criteria Skill for Claude

Documentation creation criteria including PRD, ADR, Design Doc, and Work Plan requirements with templates. Use when creating or reviewing technical documents, or determining which documents are required.

17k tokens
context cost
the whole folder, loaded on every use
7
files
instructions only
0
copies elsewhere
how many repositories repackaged it
664
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/shinpr/claude-code-workflows --skill documentation-criteria

The instruction itself

22 sections, as written by the author

Documentation Creation Criteria

Templates

  • prd-template.md - Product Requirements Document template
  • adr-template.md - Architecture Decision Record template
  • ui-spec-template.md - UI Specification template (frontend/fullstack features)
  • design-template.md - Technical Design Document template
  • plan-template.md - Work Plan template
  • task-template.md - Task file template for implementation tasks

Creation Decision Matrix

| 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 if conditions apply] → Design Doc → Work Plan (Design Doc + Work Plan required) | Start immediately |

| 3-5 Files | Design Doc → Work Plan (Required) | Start immediately |

| 1-2 Files | None | Direct implementation |

Structural Escalation

File count measures size, not structural impact, so a two-file change can still carry architecture-level consequences.

When any ADR Creation Condition below applies, the scale is Medium at minimum (Design Doc + Work Plan required) regardless of file count. Escalation only raises a level; a file count that already reaches Medium or Large stands.

ADR Creation Conditions (Required if Any Apply)

1. Contract System Changes

  • Adding nested contracts with 3+ levels: Contract A { Contract B { Contract C { field: T } } }
  • Rationale: Deep nesting has high complexity and wide impact scope
  • Changing/deleting contracts used in 3+ locations
  • Rationale: Multiple location impacts require careful consideration
  • Contract responsibility changes (e.g., DTO→Entity, Request→Domain)
  • Rationale: Conceptual model changes affect design philosophy

2. Data Flow Changes

  • Storage location changes (DB→File, Memory→Cache)
  • Processing order changes with 3+ steps
  • Example: "Input→Validation→Save" to "Input→Save→Async Validation"
  • Data passing method changes (parameter passing→shared state, direct reference→event-based communication)

3. Architecture Changes

  • Layer addition, responsibility changes, component relocation

4. External Dependency Changes

  • Library/framework/external API introduction or replacement

5. Complex Implementation Logic (Regardless of Scale)

  • Managing 3+ states
  • Coordinating 5+ asynchronous processes

Detailed Document Definitions

PRD (Product Requirements Document)

Purpose: Define business requirements and user value

Includes:

  • Business requirements and user value
  • Success metrics and KPIs (each metric specifies a numeric target and measurement method)
  • User stories and use cases
  • Converged MVP requirements
  • Acceptance criteria with sequential IDs (AC-001, AC-002, ...) for downstream traceability
  • Future and Out of Scope capabilities with reasons
  • User journey diagram (required)
  • Scope boundary diagram (required)

Scope: Business requirements, user value, success metrics, user stories, and prioritization only. Implementation details belong in Design Doc, technical selection rationale in ADR, phases and task breakdown in Work Plan.

ADR (Architecture Decision Record)

Purpose: Record technical decision rationale and background

Includes:

  • Decision (what was selected)
  • Rationale (why that selection was made)
  • Option comparison (minimum 3 options) and trade-offs
  • Architecture impact
  • Principled implementation guidelines (e.g., "Use dependency injection")

Scope: Decision, rationale, option comparison, architecture impact, and principled guidelines only. Implementation procedures and code examples belong in Design Doc, schedule and resource assignments in Work Plan.

UI Specification

Purpose: Define UI structure, screen transitions, component decomposition, and interaction design for frontend features

Includes:

  • Screen list and transition conditions
  • Component decomposition with state x display matrix (default/loading/empty/error/partial)
  • Interaction definitions linked to PRD acceptance criteria (EARS format)
  • Prototype management (code-based prototypes as attachments, not source of truth)
  • AC traceability from PRD to screens/components
  • Existing component reuse map and design tokens
  • Visual acceptance criteria (golden states, layout constraints)
  • Accessibility requirements (keyboard, screen reader, contrast)

Scope: Screen structure, transitions, component decomposition, interaction design, and visual acceptance criteria only. Technical implementation and API contracts belong in Design Doc, test implementation in test skeleton generation output, schedule in Work Plan.

Required Structural Elements:

  • At least one component with state x display matrix and interaction table
  • AC traceability table mapping PRD ACs to screens/states
  • Screen list with transition conditions
  • Existing component reuse map (reuse/extend/new decisions)

Prototype Code Handling:

  • Prototype code provided by user is placed in docs/ui-spec/assets/{feature-name}/
  • Prototype is an attachment to UI Spec, never the source of truth
  • UI Spec + Design Doc are the canonical specifications

Design Document

Purpose: Define technical implementation methods in detail

Includes:

  • Existing codebase analysis (required)
  • Implementation path mapping (both existing and new)
  • Integration point clarification (connection points with existing code even for new implementations)
  • Technical implementation approach (vertical/horizontal/hybrid)
  • Technical dependencies and implementation constraints (required implementation order)
  • Interface and contract definitions
  • Data flow and component design
  • Acceptance criteria (each criterion specifies a verifiable condition with pass/fail threshold)
  • Change impact map (clearly specify direct impact/indirect impact/no ripple effect)
  • Complete enumeration of integration points
  • Data contract clarification
  • Agreement checklist (agreements with stakeholders)
  • Code inspection evidence (inspected files/functions during investigation)
  • Field propagation map (when fields cross component boundaries)
  • Data representation decision (when introducing new structures)
  • Applicable standards (explicit/implicit classification)
  • Prerequisite ADRs (including common ADRs)
  • Verification Strategy (required)
  • Correctness proof method (what "correct" means for this change, how it's verified, when)
  • Early verification point (first target to prove the approach works, success criteria, failure response)

Required Structural Elements:

Change Impact Map:
  Change Target: [Component/Feature]
  Direct Impact: [Files/Functions]
  Indirect Impact: [Data format/Processing time]
  No Ripple Effect: [Unaffected features]

Interface Change Matrix:
  Existing: [Function/method/operation name]
  New: [Function/method/operation name]
  Conversion Required: [Yes/No]
  Compatibility Method: [Approach]

Scope: Technical implementation methods, interfaces, data flow, acceptance criteria, and verification strategy only. Technology selection rationale belongs in ADR, schedule and assignments in Work Plan.

Work Plan

Purpose: Implementation task management and progress tracking

Includes:

  • Task breakdown and dependencies (maximum 2 levels)
  • Schedule and duration estimates
  • Include test skeleton file paths produced for this work plan (integration and E2E)
  • Verification Strategy summary (extracted from Design Doc)
  • Final Quality Assurance Phase (required)
  • Progress records (checkbox format)

Scope: Task breakdown, dependencies, schedule, verification strategy summary, and progress tracking only. Technical rationale belongs in ADR, design details in Design Doc.

Phase Division Criteria (adapt to implementation approach from Design Doc):

When Vertical Slice selected:

  • Each phase = one value unit (feature, component, or migration target)
  • Each phase includes its own implementation + verification per Verification Strategy

When Horizontal Slice selected:

  • Phase 1: Foundation Implementation - Contract definitions, interfaces/signatures, test preparation
  • Phase 2: Core Feature Implementation - Business logic, unit tests
  • Phase 3: Integration Implementation - External connections, presentation layer

When Hybrid selected:

  • Combine vertical and horizontal as defined in Design Doc implementation approach

All approaches: Final phase is always Quality Assurance (acceptance criteria achievement, all tests passing, quality checks). Each phase's verification method follows Verification Strategy from Design Doc.

Three Elements of Task Completion Definition:

  • Implementation Complete: Code is functional
  • Quality Complete: Tests, static checks, linting pass
  • Integration Complete: Verified connection with other components

Creation Process

  • Problem Analysis: Change scale assessment, ADR condition check
  • Identify explicit and implicit project standards before investigation
  • ADR Option Consideration (ADR only): Compare 3+ options, specify trade-offs
  • Creation: Use templates, include measurable conditions
  • Approval: "Accepted" after review enables implementation

Storage Locations

| Document | Path | Naming Convention | Template |

|----------|------|------------------|----------|

| PRD | docs/prd/ | feature-name]-prd.md | [prd-template.md |

| ADR | docs/adr/ | ADR-4-digits]-[title].md | [adr-template.md |

| UI Spec | docs/ui-spec/ | feature-name]-ui-spec.md | [ui-spec-template.md |

| UI Spec Assets | docs/ui-spec/assets/{feature-name}/ | Prototype code files | - |

| Design Doc | docs/design/ | feature-name]-design.md | [design-template.md |

| Work Plan | docs/plans/ | YYYYMMDD-{type}-{description}.md | plan-template.md |

| Task File | docs/plans/tasks/ | {plan-name}-task-{number}.md | task-template.md |

*Note: Work plans are excluded by .gitignore

ADR Status

ProposedAcceptedDeprecated/Superseded/Rejected

AI Automation Rules

  • 6+ files: Suggest ADR creation
  • Contract/data flow change detected: ADR mandatory
  • Check existing ADRs before implementation

Diagram Requirements

Required diagrams for each document (using mermaid notation):

| Document | Required Diagrams | Purpose |

|----------|------------------|---------|

| PRD | User journey diagram, Scope boundary diagram | Clarify user experience and scope |

| ADR | Option comparison diagram (when needed) | Visualize trade-offs |

| UI Spec | Screen transition diagram, Component tree diagram | Clarify screen flow and component structure |

| Design Doc | Architecture diagram, Data flow diagram | Understand technical structure |

| Work Plan | Phase structure diagram, Task dependency diagram | Clarify implementation order |

Common ADR Relationships

  • At creation: Identify common technical areas (logging, error handling, async processing, etc.), reference existing common ADRs
  • When missing: Consider creating necessary common ADRs
  • Design Doc: Specify common ADRs in "Prerequisite ADRs" section
  • Compliance check: Verify design aligns with common ADR decisions

Other skills for the same job

different authors, same section of the catalogue
DOCX
by anthropics
vendor ×16

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

7k tokens
PDF
by anthropics
vendor ×16

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

13k tokens scripts
PPTX
by JayZeeDesign
×15

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

308k tokens scripts
Canvas Design
by anthropics
vendor ×13

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

1388k tokens
PDF
by anthropics
vendor ×10

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

15k tokens scripts
DOCX
by w95
×6

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

5k tokens
PPTX
by w95
×4

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.

2k tokens
Obsidian Markdown
by ZhanlinCui
×3

Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

3k tokens

How to use it

Copy the folder

Take shinpr/documentation-criteria from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.