Code Documentation
Generates clear, concise code documentation from existing code, adhering to common standards and improving readability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add aj-geddes-code-documentation npx -- -y @trustedskills/aj-geddes-code-documentation
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"aj-geddes-code-documentation": {
"command": "npx",
"args": [
"-y",
"@trustedskills/aj-geddes-code-documentation"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill instructs AI agents to generate clear, structured documentation for codebases, functions, or specific logic blocks. It transforms raw source code into readable explanations that highlight purpose, inputs, outputs, and usage patterns.
When to use it
- You need to onboard new developers to an existing project without reading every line of code manually.
- You want to create API reference guides or function signatures for a library you are building.
- You need to explain complex algorithms or legacy systems to stakeholders who lack technical backgrounds.
- You are preparing code for open-source publication and require standard README or docstring formats.
Key capabilities
- Analyzes source code files to extract logic and dependencies.
- Generates human-readable summaries of function behavior and parameters.
- Produces structured documentation suitable for Markdown, JSDoc, or Python docstrings.
- Identifies edge cases and potential usage scenarios within the provided code context.
Example prompts
- "Analyze this Python script and write a comprehensive README explaining its main features and how to run it."
- "Generate detailed JSDoc comments for every function in this JavaScript module, including parameter descriptions and return values."
- "Explain the logic behind this specific algorithm in plain English, focusing on how data flows through the system."
Tips & gotchas
Ensure you provide the full relevant code context or a representative sample; fragmented snippets may lead to incomplete explanations. While the skill excels at summarizing existing logic, it cannot infer undocumented business rules that are not explicitly visible in the code structure.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.