Api docs

From omnigent-ai/omnigent · View interactive version

Api docs is an AI agent skill from the GitHub repository omnigent-ai/omnigent. Document a module or public API surface (functions, classes, CLI commands, endpoints) from the code itself. Use when the user asks for API reference, to document a module, or to write usage docs for a public interface.

How to use this skill

Skill file

api-docs — document a public API surface from the code

Produce reference docs that match the code exactly, derived from the source, not

from assumptions about what the API "probably" does.

Read the surface

Identify the public surface to document (a module, class, CLI command group, or

set of endpoints). Then have the researcher read it carefully:

entry points and report each one's real signature, parameters, defaults,

return shape, and raised errors — with file:line evidence.

values) over prose descriptions. Public vs. private follows the project's

convention (e.g. a leading underscore, or an __all__ / export list).

Structure

For each entry point:

### <name>(<signature>)

<one-line summary of what it does>

Parameters

Returns — <type>: <meaning>

Raises — <Error>: <when>

Example

```

<minimal, runnable usage>

```

Write the entries

sections.

in the signature.

documented signature.

the contract, not a code tour.

Verify

Signatures, defaults, and error types drift fastest, so route the finished

reference through the reviewer (purpose: review) to confirm every signature

and default matches the current code.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.