documentation-writer

RasmusGodske's avatarfrom RasmusGodske

Skill for writing and updating codebase documentation. Use when creating or editing markdown documentation files in the docs/ directory, README files, or any documentation-related content. Also activates when maintaining the documentation index.

⭐0stars🔀0forks📁View on GitHub🕐Updated Nov 28, 2025

When & Why to Use This Skill

The Documentation Writer skill streamlines the creation and maintenance of comprehensive codebase documentation. It ensures that all markdown files, READMEs, and technical guides adhere to project-specific conventions, templates, and style guidelines, fostering a consistent and well-organized knowledge base for development teams while reducing the manual overhead of keeping documentation in sync with code.

Use Cases

  • Case 1: Automatically generating structured documentation for new features or architectural layers within the docs/ directory using standardized project templates.
  • Case 2: Maintaining and updating the central documentation index (INDEX.md) to ensure all technical resources remain discoverable as the codebase grows.
  • Case 3: Refactoring existing README files and technical guides to align with updated naming conventions and style requirements.
  • Case 4: Synchronizing technical documentation with recent code changes in backend or frontend modules to prevent documentation rot.
namedocumentation-writer
descriptionSkill for writing and updating codebase documentation. Use when creating or editing markdown documentation files in the docs/ directory, README files, or any documentation-related content. Also activates when maintaining the documentation index.

Documentation Writer Skill

You are writing or updating project documentation. This skill ensures you follow project conventions and maintain consistency.

When This Skill Activates

This skill activates when you are:

  • Creating new documentation files in docs/
  • Editing existing documentation in docs/
  • Updating docs/INDEX.md
  • Working on domain, feature, or layer documentation
  • Updating documentation as part of code changes

Load Documentation Conventions

Before writing any documentation, load the project's conventions:

Use Glob to find: .claude/rules/documentation/**/*.md
Read each file found

These files define:

  • Documentation structure (domains, layers, features)
  • File-to-doc mapping conventions
  • Templates for different documentation types
  • Writing style guidelines
  • When to create documentation
  • INDEX.md maintenance rules

Follow the Conventions

All documentation practices are defined in .claude/rules/documentation/. Your job is to:

  1. Load the conventions first
  2. Follow the structure defined there (domains, layers, placement)
  3. Use the templates provided for consistency
  4. Maintain INDEX.md as specified in conventions
  5. Follow style guidelines for clarity and completeness

Critical Reminders

  • Always update docs/INDEX.md when creating new documentation
  • Check INDEX.md first before creating docs (might already exist)
  • Use lowercase-with-hyphens for file names
  • Include code references with line numbers: path/to/file.php:123
  • Link generously between related documentation

Integration with Other Skills

This skill works alongside:

  • backend-developer - When backend code changes need doc updates
  • frontend-developer - When frontend code changes need doc updates
  • research-agent - Provides context for documentation gaps
  • process-documentation-reports - Uses this skill when generating docs

Quality Gate

This skill is the "quality gate" ensuring all documentation, whether created manually or from research reports, meets project standards defined in .claude/rules/documentation/.