Back to Skills

oo-component-documentation

Create or update standardized object-oriented component documentation using a shared template plus mode-specific guidance for new and existing docs.

37,206stars4,668forksUpdated 7/30/2026

Security Assessment

Safe(98/100)
Security Score98/100

About oo-component-documentation

This skill generates or updates standardized documentation for object-oriented software components. It solves the problem of inconsistent, drifting, or missing component docs by pairing a shared documentation template with mode-specific guidance, producing structured technical documentation grounded strictly in the actual implementation rather than invented behavior.

The skill first determines its mode: update mode when the user points to an existing Markdown documentation file, and create mode when they point to source code or a component path (with rules for handling both, and inferring mode from the path type when ambiguous). It aligns output to established standards — the C4 Model documentation levels, the Arc42 architecture template, IEEE 1016 Software Design Description, and Agile Documentation principles — targeting developers and maintainers. Shared analysis guidance directs the agent to examine class structures, inheritance, composition, interfaces, design patterns, public APIs, method parameters and return values, async behavior, exceptions, lifecycle, and quality attributes like performance, security, and maintainability. It ships a canonical documentation-template.md scaffold (component overview, architecture with Mermaid diagrams, interface tables, and more) plus create-mode and update-mode reference files, and includes language-specific optimizations for C#/.NET, Java, TypeScript/JavaScript, and Python, along with explicit error handling for missing paths, absent sources, and non-standard patterns.

It targets developers, tech leads, and maintainers who need to produce or refresh component-level documentation that stays faithful to code, with a strong emphasis on documenting gaps and assumptions explicitly instead of guessing.

FAQ

How does it decide between creating and updating docs?

Update mode is used when you provide an existing documentation Markdown file or docs path; create mode when you provide source code or a component path. If both are given, the existing doc is the output target and the code is the source of truth; ambiguous requests are inferred from the path type.

What documentation standards does it follow?

The C4 Model levels (Context, Containers, Components, Code), the Arc42 template, IEEE 1016 Software Design Description, and Agile Documentation principles, targeting developers and maintainers as the primary audience.

Which languages are supported?

It includes language-specific optimizations for C#/.NET, Java (Spring, annotations), TypeScript/JavaScript, and Python, covering their respective patterns like dependency injection, async, types, and packaging.

Does it invent behavior it can't see?

No. It keeps documentation grounded in the implementation, includes only what the code, structure, config, or stated assumptions support, and explicitly documents limitations or gaps when source coverage is incomplete.

What does the output look like?

Markdown built from a canonical template with a clear heading hierarchy, tables, code blocks, and Mermaid diagrams for architecture relationships, covering purpose, architecture, interfaces, implementation, usage, and quality attributes.

All Files

4 files
SKILL.md5.3 KB
View
assets/documentation-template.md2.8 KB
View
references/create-mode.md1.9 KB
View
references/update-mode.md2.0 KB
View

Install oo-component-documentation

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill