api-docs
What it does
This skill reads the public functions and classes in your code and writes or fills in their documentation comments. It is for developers who want their code to be easy for others to use.
When to use it
- ✓When a project has public functions that have no documentation.
- ✓When you need an OpenAPI description for web endpoints.
- ✓When you want the documentation comments to match the current code.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-docs/skills/api-docs/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Add missing documentation to the public functions in my project and create an API spec for my endpoints.”
5 new skills a week. 1 minute to read.
How it works
The skill finds all public exports, reads any existing comments and adds the missing ones, with parameters, return values, errors and examples. For web endpoints, it can also create an OpenAPI 3.0 description.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Generate API documentation from TypeScript/JavaScript source:
- Scan exports: Find all public functions, classes, and interfaces
- Extract JSDoc: Parse
@param,@returns,@throws,@exampleannotations - Generate missing docs: Add JSDoc for undocumented public APIs
- OpenAPI spec: For HTTP endpoints, generate OpenAPI 3.0 definitions
Dispatch via MCP: mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch({ trigger: "document", context: "api" })
Conventions:
- Every public export must have a JSDoc comment
- Include
@paramwith type and description - Include
@returnswith type and description - Include
@throwsfor known error conditions - Include
@examplefor non-obvious usage
FAQ
What does the skill add to each function?
It adds notes on parameters, return values, known errors and examples, where those apply.
What is OpenAPI?
It is a standard format that describes web endpoints so that other tools and people can read them.
Does it need a special setup?
It sends the documentation task to the Ruflo worker system, so Ruflo should be set up first.
Details
Original description by the author
Generate API documentation from source code with JSDoc and OpenAPI support
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1619
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.