Skip to content
doc-maintainer logo

Doc Maintainer Skill

doc-maintainer

Maintains high-quality, concise, project-aligned documentation. Creates, updates, and validates README.md, CLAUDE.md, code comments, and other documentation. Activates after implementing features, when documentation is outdated, or when explicitly requested.

SKILL.md

Full skill instructions

Doc Maintainer Skill

Purpose

Maintain documentation that is concise, accurate, scannable, and perfectly aligned with project standards.

Activation Triggers

Proactive Activation

  • New features, packages, or significant code changes without documentation updates
  • Documentation files appear outdated or inconsistent with current code
  • Documentation exceeds recommended length limits (README.md > 150 lines)
  • Public functions/​types lack required doc comments (Go projects)
  • Documentation quality issues detected during code review

Manual Activation

  • User requests documentation creation/​update
  • User asks to verify documentation completeness
  • Before committing documentation changes

Core Documentation Domains

  1. Project Documentation (README.md, CLAUDE.md, SETUP.md)
  2. Code Documentation (inline comments, doc comments)
  3. Documentation Quality Assurance (consistency, accuracy, conciseness)

Fundamental Principles (from ~/​.claude/​CLAUDE.md)

README.md Standards

  • Conciseness: Target 150 lines maximum
  • Scannable structure: Clear sections with meaningful headings
  • No temporal information: Describe current state only, not history
  • No manual metrics: Use CI badges instead of hardcoded numbers
  • Avoid redundancy: Don't duplicate information available in code/​CI

Essential Sections:

  • Project overview
  • Technology stack (concise)
  • Development environment setup
  • Project structure
  • Key features (current state only)
  • Development commands
  • License information
  • Reference links

Prohibited Content:

  • Detailed technology stack explanations
  • Excessive project structure diagrams
  • Information about unused platforms
  • Change history (use Git instead)
  • Verbose explanations of self-evident information

CLAUDE.md Standards

  • Prescriptive tone: Use "should" not "has been done"
  • Generality: Describe ideal state, not current project-specific status
  • Separation of concerns: Development guidelines in CLAUDE.md, usage in README.md
  • Normative descriptions: Focus on what should be, not what is

Code Documentation Standards

For Go Projects
  • Public functions/​types: MUST have doc comments starting with function/​type name
  • Comment style: Clear, concise, describing what and why (not how)
  • Error messages: Lowercase start, no punctuation
  • Current state: Describe present behavior, not past changes
For TypeScript/​React Projects
  • JSDoc for public APIs: Especially for library-like modules
  • Complex logic: Explain non-obvious patterns
  • Type annotations: Let TypeScript types self-document when possible
  • Avoid obvious comments: Don't explain what code clearly shows

Documentation Workflow

Phase 1: Analyze Context

  1. Review existing patterns

    • Check project-specific CLAUDE.md
    • Identify target audience
    • Understand documentation conventions
  2. Assess current state

    • Read existing documentation
    • Identify gaps or inconsistencies
    • Check for outdated information

Phase 2: Verify Compliance

  1. Length limits

    • README.md: ≤ 150 lines
    • CLAUDE.md: Focus on principles, not exhaustive details
  2. Content quality

    • Remove temporal/​historical information
    • Replace hardcoded metrics with CI badges
    • Eliminate redundant information
  3. Markdown quality

    • Run mcp__ide__getDiagnostics to check errors
    • Follow markdownlint rules (~/​.markdownlint.jsonc)

Phase 3: Structure Optimization

  1. Organize logically

    • Most important information first
    • Clear, scannable headings
    • Appropriate formatting (code blocks, lists, emphasis)
  2. Internal consistency

    • Validate internal links
    • Ensure consistent terminology
    • Maintain uniform style

Phase 4: Quality Assurance

  1. Accuracy verification

    • Ensure documentation matches current codebase
    • Test code examples
    • Validate all references
  2. Consistency check

    • Compare with project conventions
    • Verify alignment with CLAUDE.md standards
    • Check language consistency

Code Documentation Validation

Coverage Check

  • Go: Verify all exported functions/​types have doc comments
  • TypeScript: Check public API documentation completeness
  • Identify missing documentation for complex logic

Quality Assessment

  • Comments explain "why" not "what" (code shows what)
  • Descriptions are clear and concise
  • Technical terms used accurately
  • Examples provided where helpful

Maintenance Flags

  • Identify outdated comments that don't match current code
  • Flag TODO/​FIXME comments that should be addressed
  • Detect redundant comments that add no value

Output Format

When providing recommendations:

  1. Specific issues: List exact problems with file/​line references
  2. Suggested improvements: Provide concrete, actionable changes
  3. Rationale: Explain why changes align with project standards
  4. Priority: Indicate severity (critical, important, nice-to-have)
  5. Examples: Show before/​after where helpful

Integration with Other Skills

  • code-reviewer: Flag documentation issues during code review
  • git-commit-assistant: Ensure documentation is updated before commit
  • knowledge-manager: Record documentation patterns and best practices

Maintenance

Update this Skill when:

  • Documentation standards evolve
  • New documentation types are introduced
  • Team feedback suggests improvements
  • New projects require different conventions

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View