Skip to content
feature-docs logo

Feature Documentation Generation & Verification

feature-docs

Generate single-file feature documentation with verified test cases. Use for quick feature docs, feature README, any project (not enterprise modules). Outputs single markdown file with code evidence. Triggers on "quick feature docs", "feature readme", "single file docs", "verified documentation"....

SKILL.md

Full skill instructions

<!-- SYNC: Source of truth is docs/​templates/​skills/​feature-docs/​SKILL.md --> <!-- Keep in sync with .github/​skills/​feature-docs/​SKILL.md -->

Feature Documentation Generation & Verification

Generate comprehensive feature documentation following the GOLD STANDARD template pattern.

GOLD STANDARD Reference: docs/​features/​README.ExampleFeature1.md (Example App) Template File: docs/​templates/​detailed-feature-docs-template.md


MANDATORY 26-SECTION STRUCTURE

All feature documentation MUST follow this section order:

#SectionStakeholder Focus
1Executive SummaryPO, BA
2Business ValuePO, BA
3Business RequirementsPO, BA
4Business RulesBA, Dev
5Process FlowsBA, Dev, Architect
6Design ReferenceBA, UX, Dev
7System DesignDev, Architect
8ArchitectureDev, Architect
9Domain ModelDev, Architect
10API ReferenceDev, Architect
11Frontend ComponentsDev
12Backend ControllersDev
13Cross-Service IntegrationDev, Architect
14Security ArchitectureDev, Architect
15Performance ConsiderationsDev, Architect, DevOps
16Implementation GuideDev
17Test SpecificationsQA
18Test Data RequirementsQA
19Edge Cases CatalogQA, Dev
20Regression ImpactQA
21TroubleshootingDev, QA, DevOps
22Operational RunbookDevOps
23Roadmap and DependenciesPO, BA
24Related DocumentationAll
25GlossaryPO, BA
26Version HistoryAll

Phase 1: Feature Analysis

Build knowledge model in .ai/​workspace/​analysis/[feature-name].md.

Discovery Areas

  1. Domain Entity Discovery: Entities, value objects, enums
  2. Workflow Discovery: Commands, Queries, Event Handlers, Background Jobs
  3. API Discovery: Controllers, endpoints, DTOs
  4. Frontend Discovery: Components, Services, Stores
  5. Cross-Service Discovery: Message Bus messages, producers, consumers

Phase 2: Documentation Generation

Generate at docs/​business-features/​{Module}/​detailed-features/​README.{FeatureName}.md.

Key Format Examples

Business Requirements (FR-XX):

#### FR-{MOD}-01: {Requirement Title}

| Aspect          | Details                                 |
| --------------- | --------------------------------------- |
| **Description** | {What this requirement enables}         |
| **Scope**       | {Who can use / affected entities}       |
| **Evidence**    | `{FilePath}:{LineRange}`                |

User Stories (US-XX):

#### US-{MOD}-01: {Story Title}

**As a** {role}
**I want** {goal/​desire}
**So that** {benefit/​value}

**Acceptance Criteria**:
- [ ] AC-01: {Criterion with evidence reference}
- [ ] AC-02: {Criterion with evidence reference}

**Related Requirements**: FR-{MOD}-01, FR-{MOD}-02
**Evidence**: `{FilePath}:{LineRange}`

Test Summary Table (MANDATORY):

| Category               | P0 (Critical) | P1 (High) | P2 (Medium) | P3 (Low) | Total |
| ---------------------- | :-----------: | :-------: | :---------: | :------: | :---: |
| {Category1}            | {N}           | {N}       | {N}         | {N}      | {N}   |
| **Total**              | **{N}**       | **{N}**   | **{N}**     | **{N}**  | **{N}**|

Test Case Format (TC-XX):

#### TC-{MOD}-001: {Test Name} [P0]

**Acceptance Criteria**:
- ✅ {Passing criteria 1}
- ✅ {Passing criteria 2}

**GIVEN** {initial context}
**WHEN** {action performed}
**THEN** {expected outcome}

**Edge Cases**:
- ❌ {Invalid scenario} → {Expected error/​behavior}

**Evidence**: `{FilePath}:{LineRange}`

Troubleshooting Format:

#### {Issue Title}

**Symptoms**: {Observable problem}

**Causes**:
1. {Cause 1}
2. {Cause 2}

**Resolution**:
- {Step 1}
- {Step 2}

Permission Matrix:

| Role | View | Create | Edit | Delete | Special |
|------|:----:|:------:|:----:|:------:|---------|
| Admin | ✅ | ✅ | ✅ | ✅ | Full access |

Phase 2.5: AI Companion Generation

Generate AI-agent optimized companion file alongside the comprehensive documentation.

Output: docs/​business-features/​{Module}/​detailed-features/​README.{FeatureName}.ai.md Template: docs/​templates/​detailed-feature-docs-template.ai.md

AI Companion Structure (10 Sections, ~260 lines)

SectionContentSource from Full Doc
ContextPurpose, entities, serviceExecutive Summary
File LocationsExact paths to all key filesImplementation Guide
Domain ModelProperties, expressionsDomain Model
API ContractsEndpoints, request/​response shapesAPI Reference
Business RulesValidation, state transitionsBusiness Rules
PatternsRequired ✅ / Anti-patterns ❌Architecture
IntegrationEvents, dependenciesCross-Service Integration
SecurityAuthorization matrixSecurity Architecture
Test ScenariosKey GIVEN/​WHEN/​THEN casesTest Specifications
Quick ReferenceDecision tree, code snippetsImplementation Guide

Compression Rules

  1. Tables over prose - Convert paragraphs to table rows
  2. Paths over descriptions - File:Line over "located in..."
  3. Signatures over examples - { id: string } → { entity: Dto } over full code
  4. Decisions over explanations - What to do, not why

AI Companion Quality Check

  • File size ≤300 lines
  • All file paths are exact and current
  • API contracts include request/​response shapes
  • Business rules have evidence references
  • Patterns section has ✅/❌ markers
  • Evidence chain preserved from full doc

Phase 3: Verification (2-Pass System)

First Pass

For EACH code reference:

  • Read actual source file at referenced lines
  • Compare character-by-character
  • Verify line numbers are accurate
  • Log mismatches and correct immediately

Second Pass

  • Random sampling (10 code references)
  • Cross-reference and TOC verification
  • Completeness check

CRITICAL: If Second Pass finds MORE THAN 5 issues, HALT and re-run Phase 3.


Anti-Hallucination Protocols

EVIDENCE_CHAIN_VALIDATION

Before claiming any relationship:

  • "I believe X calls Y because..." → show actual code
  • "This follows pattern Z because..." → cite specific examples

DOCUMENTATION_ACCURACY_CHECKPOINT

Before writing any documentation:

  • "Have I read the actual code that implements this?"
  • "Are my line number references accurate and current?"
  • "Can I provide a code snippet as evidence?"

Evidence Verification Protocol (QC)

Verification Summary Table

| Category | Total Claims | Verified | Stale | Missing | Last Verified |
|----------|-------------|----------|-------|---------|---------------|
| Business Requirements | {N} | {N} | {N} | {N} | {Date} |
| Test Specifications | {N} | {N} | {N} | {N} | {Date} |
| **Total** | **{N}** | **{N}** | **{N}** | **{N}** | |

Status Markers

  • ✅ Verified - Line numbers match actual source
  • ⚠️ Stale - Line numbers shifted, content still exists
  • ❌ Missing - Referenced code no longer exists

Quality Checklist

  • All 26 mandatory sections present in correct order
  • Quick Navigation by Role included
  • Executive Summary with key capabilities
  • Business Value with ROI analysis
  • User Stories with acceptance criteria (US-XX format)
  • Business Requirements use FR-{MOD}-XX format
  • Business Rules with state transitions
  • Process Flows with diagrams
  • System Design with technical decisions log
  • Security Architecture with authorization matrix
  • Performance Considerations with targets
  • Implementation Guide with code examples
  • Test Summary table with P0-P3 counts
  • Test Data Requirements and fixtures
  • Edge Cases Catalog (validation, business, concurrency)
  • Regression Impact analysis
  • Test cases use TC-{MOD}-XXX format with GIVEN/​WHEN/​THEN
  • Acceptance criteria use ✅/❌ markers
  • Troubleshooting uses Symptoms/​Causes/​Resolution format
  • Operational Runbook with deployment checklist
  • Roadmap and Dependencies
  • Evidence Verification Protocol with audit trail
  • Glossary for non-technical stakeholders
  • Version History table at end
  • All code references verified with actual files

AI Companion Checklist

  • AI companion file created at README.{FeatureName}.ai.md
  • AI companion ≤300 lines
  • File locations section complete with exact paths
  • API contracts include request/​response shapes
  • All evidence references preserved from full doc
  • Patterns section has required (✅) and anti-patterns (❌)

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View