Agent Skills: EasyPlatform Business Feature Documentation

[Docs] Generate enterprise module documentation with 26-section structure and folder hierarchy. Use for module docs, enterprise features, detailed specs in docs/business-features/{Module}/. Includes README, INDEX, API-REFERENCE, detailed-features/. Triggers on "module docs", "enterprise feature docs", "business module", "26-section docs", "detailed feature specs". For single-file quick docs, use feature-docs instead.

UncategorizedID: duc01226/easyplatform/business-feature-docs

Install this agent skill to your local

pnpm dlx add-skill https://github.com/duc01226/EasyPlatform/tree/HEAD/.claude/skills/business-feature-docs

Skill Files

Browse the full folder contents for business-feature-docs.

Download Skill

Loading file tree…

.claude/skills/business-feature-docs/SKILL.md

Skill Metadata

Name
business-feature-docs
Description
"[Docs] Generate enterprise module documentation with 26-section structure and folder hierarchy. Use for module docs, enterprise features, detailed specs in docs/business-features/{Module}/. Includes README, INDEX, API-REFERENCE, detailed-features/. Triggers on "module docs", "enterprise feature docs", "business module", "26-section docs", "detailed feature specs". For single-file quick docs, use feature-docs instead."

EasyPlatform Business Feature Documentation

Generate comprehensive business feature documentation following the GOLD STANDARD template.

Summary

Goal: Generate 26-section enterprise module documentation with code evidence and BDD test cases.

| Step | Action | Key Notes | |------|--------|-----------| | 1 | Module detection | Identify target module, read existing docs and master index | | 2 | Codebase analysis | Gather evidence from entities, commands, queries, controllers, frontend | | 3 | Documentation generation | All 26 mandatory sections, FR-{MOD}-XX requirements, TC-{MOD}-XXX test cases | | 4 | AI companion generation | ~300 lines compressed version in .ai.md file | | 5 | Master index update | Update docs/BUSINESS-FEATURES.md |

Key Principles:

  • Every test case MUST have verifiable code evidence (FilePath:LineNumber)
  • Never assume behavior without reading actual source code
  • Must read 6 reference files before starting (templates, examples, anti-hallucination protocol)

⚠️ MUST READ References

IMPORTANT: You MUST read these reference files for complete protocol. Do NOT skip.

  • ⚠️ MUST READ .claude/skills/shared/business-docs-26-sections.md — 26-section template structure
  • ⚠️ MUST READ .claude/skills/shared/bdd-gherkin-templates.md — BDD/Gherkin scenario templates
  • ⚠️ MUST READ .claude/skills/shared/anti-hallucination-protocol.md — validation checkpoints, confidence levels
  • ⚠️ MUST READ docs/features/README.ExampleFeature1.md — gold standard example
  • ⚠️ MUST READ docs/templates/detailed-feature-docs-template.md — full template
  • ⚠️ MUST READ docs/templates/detailed-feature-docs-template.ai.md — AI companion template

[CRITICAL] MANDATORY CODE EVIDENCE RULE

EVERY test case MUST have verifiable code evidence. This is non-negotiable.

Evidence Format

**Evidence**: `{RelativeFilePath}:{LineNumber}` or `{RelativeFilePath}:{StartLine}-{EndLine}`

Valid vs Invalid Evidence

| Valid | Invalid | | -------------------------------- | ------------------------------------ | | ErrorMessage.cs:83 | {FilePath}:{LineRange} (template) | | Handler.cs:42-52 | SomeFile.cs (no line) | | interviews.service.ts:115-118 | "Based on CQRS pattern" (vague) |


Phase 1: Module Detection & Context Gathering

Step 1.1: Identify Target Module

  1. User explicitly specifies module name
  2. Feature name/domain implies module
  3. Search codebase for feature-related entities/commands

Step 1.2: Read Existing Documentation

1. Read docs/BUSINESS-FEATURES.md (master index)
2. Read docs/business-features/{Module}/INDEX.md (if exists)
3. Read docs/business-features/{Module}/README.md (if exists)
4. Identify what already exists vs what needs creation/update

Step 1.3: Codebase Analysis

Gather evidence from source code:

  • Entities: src/Backend/*.Domain/Entities/
  • Commands: src/Backend/*.Application/UseCaseCommands/
  • Queries: src/Backend/*.Application/UseCaseQueries/
  • Controllers: src/Backend/*.Api/Controllers/
  • Frontend: src/Frontend/apps/ or src/Frontend/libs/apps-domains/

Phase 2: Documentation Generation

⚠️ MUST READ .claude/skills/shared/business-docs-26-sections.md for the full 26-section structure, format templates, and quality checklist.

Key requirements:

  • All 26 mandatory sections in correct order
  • Quick Navigation by Role table
  • FR-{MOD}-XX format for business requirements
  • TC-{MOD}-XXX format with GIVEN/WHEN/THEN for test cases
  • Evidence with {FilePath}:{LineRange} format

Phase 2.5: AI Companion Generation

Output: docs/business-features/{Module}/detailed-features/README.{Feature}.ai.md

10 sections (~300 lines): Context, File Locations, Domain Model, API Contracts, Business Rules, Patterns, Integration, Security, Test Scenarios, Quick Reference.

Compression rules: Tables over prose, paths over descriptions, signatures over examples, decisions over explanations.

Phase 3: Master Index Update

After creating/updating module docs, update docs/BUSINESS-FEATURES.md:

  1. Read current content
  2. Verify module is listed
  3. Add link if missing

Anti-Hallucination Protocol

  • Every feature claim MUST have code reference with file path and line numbers
  • Read actual source files before documenting
  • Never assume behavior without code evidence
  • Checkpoint: "Have I read the actual code? Are my references accurate?"

Quality Checklist

  • [ ] All 26 mandatory sections present in correct order
  • [ ] Quick Navigation by Role included
  • [ ] Test cases use TC-{MOD}-XXX with GIVEN/WHEN/THEN
  • [ ] All code references verified with actual files
  • [ ] Master index (BUSINESS-FEATURES.md) updated
  • [ ] AI companion file created (<= 300 lines)

IMPORTANT Task Planning Notes

  • Always plan and break many small todo tasks
  • Always add a final review todo task to review the works done at the end to find any fix or enhancement needed