Skip to content
Skillpedia
Documentation81k · #1619

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.md

Copy 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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-docs/skills/api-docs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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:

  1. Scan exports: Find all public functions, classes, and interfaces
  2. Extract JSDoc: Parse @param, @returns, @throws, @example annotations
  3. Generate missing docs: Add JSDoc for undocumented public APIs
  4. 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 @param with type and description
  • Include @returns with type and description
  • Include @throws for known error conditions
  • Include @example for 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills