/repo-documentation:oo-component-documentationfrom repo-documentation
Creates or updates standardized object-oriented component documentation from source code or existing Markdown, with create/update modes, C4 diagrams, and explicit gap reporting.
Ships in repo-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze object-oriented source code or an existing component document, choose create or update mode, then produce Markdown documentation grounded in the implementation with interfaces, dependencies, diagrams, examples, quality attributes, and explicit gaps.
assets/documentation-template.md as the canonical section checklist and baseline structure.references/create-mode.md for new documentation and references/update-mode.md for revising existing documentation.assets/documentation-template.md and use it as the shared scaffold.references/create-mode.md or references/update-mode.md based on the selected mode.| Evidence | Mode | Output target |
|---|---|---|
| User provides an existing Markdown documentation file, docs path, or asks to refresh/revise docs | Update mode | The existing documentation file. |
| User provides a source file, component folder, class, or asks to generate docs from code | Create mode | A new Markdown document following the template. |
| User provides both code and existing documentation | Update mode | Existing documentation is the target; current source code is the source of truth. |
| Request is ambiguous | Infer from path type | Existing .md means update mode; source/component path means create mode. |
| ID | Standard | Apply as |
|---|---|---|
| DOC-001 | C4 Model | Document Context, Containers, Components, and Code at the level supported by the input. |
| DOC-002 | Arc42 | Cover architecture decisions, building blocks, runtime view, quality attributes, and risks without padding. |
| DOC-003 | IEEE 1016 Software Design Description | Make design entities, interfaces, data, and rationale explicit. |
| DOC-004 | Agile Documentation | Keep just enough documentation that adds value to developers and maintainers. |
| DOC-005 | Developer-maintainer audience | Prefer implementation-grounded API, dependency, and maintenance detail over marketing prose. |
| ID | Inspect | Capture |
|---|---|---|
| ANA-001 | Component boundary | Whether the input is a folder, file, package, class, or documentation target. |
| ANA-002 | Class structures | Inheritance, composition, interfaces, abstract classes, and concrete implementations. |
| ANA-003 | Design patterns | Architectural decisions, dependency inversion, factories, adapters, observers, strategies, or custom patterns. |
| ANA-004 | Public APIs | Interfaces, methods, constructors, events, properties, usage patterns, and integration points. |
| ANA-005 | Method contracts | Parameters, return values, async behavior, exceptions, lifecycle, disposal, and concurrency. |
| ANA-006 | Quality attributes | Performance, security, reliability, maintainability, extensibility, and testability characteristics. |
| ANA-007 | Data flow | Collaboration patterns, input/output ownership, state transitions, and surrounding components. |
| ANA-008 | Evidence discipline | Ground every claim in code, project structure, configuration, tests, or clearly stated assumptions. |
| ID | Language | Emphasize |
|---|---|---|
| LNG-001 | C#/.NET | async/await, dependency injection, configuration, disposal, options patterns. |
| LNG-002 | Java | Spring framework, annotations, exception handling, packaging, dependency injection. |
| LNG-003 | TypeScript/JavaScript | modules, async patterns, types, npm dependencies, runtime boundaries. |
| LNG-004 | Python | packages, virtual environments, type hints, testing, dependency management. |
Keep mode-specific create/update rules separate. For TypeScript/JavaScript and TypeScript/JavaScript** legacy wording, inspect module boundaries, runtime boundaries, and async/await behavior. If the code uses a non-standard architecture, describe it directly rather than forcing a standard label.
| ID | Condition | Response |
|---|---|---|
| ERR-001 | Path does not exist | Explain the expected path and whether a source path or documentation file is needed. |
| ERR-002 | No relevant source files found | Document the gap and suggest likely locations to inspect next. |
| ERR-003 | Documentation target cannot be inferred | State the ambiguity and ask for the missing path only when inference is impossible. |
| ERR-004 | Non-standard architecture | Document the custom approach instead of forcing a generic pattern. |
| ERR-005 | Incomplete source access | Continue with available evidence and mark unsupported sections clearly. |
| Resource | Use when | Purpose |
|---|---|---|
assets/documentation-template.md | Every create or update task | Canonical section checklist and baseline Markdown structure. |
references/create-mode.md | Creating new documentation from source | Mode-specific rules for source-driven documentation. |
references/update-mode.md | Updating existing documentation | Mode-specific rules for preserving, correcting, and refreshing existing docs. |
## OO component documentation result
**Status:** created | updated | partial | blocked
**Mode:** create | update
**Source:** `<source file or folder>`
**Target:** `<documentation file>`
### Coverage
| Area | Evidence | Notes |
| --- | --- | --- |
| Component boundary | `<files/classes inspected>` | <summary> |
| Public APIs | `<interfaces/methods>` | <summary> |
| Dependencies | `<dependencies/config>` | <summary> |
| Quality attributes | `<evidence>` | <summary> |
### Gaps
- <unsupported section, missing source, or none>
assets/documentation-template.md was used as the section checklist.references/create-mode.md or references/update-mode.md, was followed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin repo-documentation15 skills in this plugin
/add-educational-commentsAdd educational comments to existing code files while preserving encoding, line endings, indentation, syntax, and build correctness. Use this skill when the user asks to annotate a file for learning, add teaching comments, explain code inline, adjust comment detail or repetitiveness, or use Line Number Referencing./comment-code-generate-a-tutorialTransform a Python script into a polished beginner-friendly project by refactoring code, adding instructional comments, and generating a complete README.md tutorial. Use this skill when asked to explain, comment, clean up, teach, or turn a Python script into a tutorial project./convert-plaintext-to-mdConvert plaintext or generic text documentation into well-structured Markdown while preserving source content and applying explicit instructions, documented options, or a converted guide file. Use when asked to convert a file to Markdown, finalize Markdown formatting, apply header patterns, use a guide document, or target GitHub, StackOverflow, VS Code, GitLab, or CommonMark rendering./create-agentsmdCreate a high-quality AGENTS.md file for a repository by inspecting project structure, workflows, commands, tests, and conventions. Use this skill when the user asks to create, update, or improve AGENTS.md, add coding-agent instructions, document repo setup for agents, or follow the agents.md format./create-llmsCreate a new repository-root llms.txt file from repository structure and documentation according to the llms.txt specification. Use when users ask to create llms.txt, generate LLM navigation, document repository structure for LLMs, or add an llms.txt compliant with https://llmstxt.org/./create-readmeCreate or improve a concise, appealing, project-specific README.md with a clear overview, setup, usage, and practical examples. Use this skill when the user asks to generate, refresh, polish, rewrite, or make a repository README more useful for GitHub readers.Other plugins' skills for the same job