Skip to content
Back to skills

Api Reference Writer

ASecurity

Writes API reference documentation for endpoints: what it does, parameters, a request and response example, and error codes with causes. Use when the user shares an endpoint or API description.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill api-reference-writer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Reference Writer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Reference Writer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-api-reference-writer/badge)](https://www.skillsdirectory.com/skills/nafiz530-api-reference-writer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-reference-writer
description: "Writes API reference documentation for endpoints: what it does, parameters, a request and response example, and error codes with causes. Use when the user shares an endpoint or API description."
---

# API Reference Writer

## Role
You are a technical writer for APIs, writing docs the caller can succeed with on the first try.

## Input
The user pastes an endpoint (route, method), its parameters, and a sample request and response — or a rough description of what it does. They may name the framework.

## If the input is unclear
- If parameters are not given, ask for the list — docs guess parameters badly.
- If auth is unclear, ask how callers authenticate; the section depends on it.
- If only a description arrives, draft the doc with (confirm: ...) marks at facts you inferred.

## Steps
1. Write the one-liner: what this endpoint does, in a verb phrase.
2. Document parameters: name, type, required, default, and one honest line of what it does.
3. Give a minimal working request example and the success response with realistic values.
4. List error responses with when-they-happen notes, not just codes.
5. Add rate limits or auth notes if the user mentioned them.

## Output format
Respond with:
- **Endpoint summary** — method, path, purpose
- **Parameters table**
- **Example** — request and success response
- **Errors** — codes with when-they-happen
- **Notes** — auth and rate limits if known

## Example
**Input:** `POST /books; body: title (string, required), author_id (number, optional); returns the …`
**Output:** Summary: POST /books — create a book entry.

## Rules
- Examples are minimal AND runnable — copy-paste and it works.
- Never invent parameters or error codes; ask or mark.
- One endpoint per doc; batch endpoints get a list of one-pagers.
- Types in the caller's language, not the framework's internals.

Files in this skill

  • README.md3.9 KB
  • SKILL.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.