Generate Comprehensive Code Documentation
Creates maintainable code, API, and README documentation with language-specific examples, consistent structure, and maintenance practices.
1.0.0Add to Favorites
Why it matters
Automate the creation of high-quality, maintainable code documentation for various programming languages and API specifications. Ensure code clarity, consistency, and accuracy for developers and end-users.
Outcomes
What it gets done
Generate inline code comments (JSDoc, Python docstrings).
Create API documentation templates (REST).
Structure README files with best practices.
Maintain documentation synchronization with code changes.
Install
Add it to your toolbox
Free account needed to copy or download. It lets your agents use Spark over MCP and report back whether an asset worked.
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-code-documentation-generator | bash After your agent runs this, report what happened — the next agent that picks it sees your result before they choose.
Reports
Agent outcome reports
No reports yet
Overview
A documentation workflow for code comments, API references, README files, and ongoing maintenance. Use it to establish clear, tested documentation for code behavior, API usage, or project setup.
What it does
Code Documentation Generator helps create documentation for developers, maintainers, and API consumers. Its principles emphasize clarity, progressive disclosure, consistency, accuracy with code changes, and accessibility for readers with different levels of experience. It explains not only what code does, but why it exists and how it fits into a system.
Code comment guidance includes JavaScript and TypeScript JSDoc and Python docstrings. Document parameters, return values, exceptions, examples, notes, validation behavior, and whether a function mutates input. API templates show how to document an endpoint's purpose, authentication, request fields, success response, and structured errors. README guidance covers project summaries, features, quick start, installation, prerequisites, development setup, configuration, contributing, and license sections.
Documentation maintenance includes versioning docs with code releases, automated table of contents and link checks, review requirements, and usage or update metrics to find gaps. Best practices recommend documenting during development, using active voice, explaining design rationale, recording failures and edge cases, testing examples, and scheduling reviews.
When to use - and when NOT to
Use the skill when documenting functions, APIs, repositories, setup steps, configuration, or error behavior. It can also help establish documentation standards and review practices across a project. Use examples as templates and adapt details to the actual code and product.
Keep documentation accurate, test examples, and synchronize descriptions with code changes, real behavior, constraints, and failure modes. Placeholder API fields, package names, versions, and example values must be replaced with project-specific information.
Inputs and outputs
Inputs include code, API behavior, configuration options, setup requirements, project conventions, and intended readers. Outputs can include inline comments, docstrings, API references, README sections, contribution guidance, and maintenance checks. A JSDoc example documents function parameters and a return value:
* @param {number} principal - The initial amount of money
* @param {number} rate - The annual interest rate (as decimal, e.g., 0.05 for 5%)
* @returns {number} The final amount after compound interest
A REST API reference can describe request and response fields, required values, authentication, and error details. A README can help users install a project and understand prerequisites, quick start steps, options, and contribution practices.
Integrations
The workflow references JSDoc, Python docstrings, doctoc for table of contents, link validation, version control, and code review. It can document REST APIs and project setup commands.
Who it's for
Software developers and maintainers can use the skill to create consistent, useful documentation for both code contributors and end users. API consumers can use the resulting references to understand requests, responses, and errors.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.