api-docs

api-docs is a skill for Claude Code, Codex from saolalab/clawforce. It costs 20 tokens per session (595 once invoked), scanned A, original, Apache-2.0.

Guidance for writing API documentation: descriptions of software endpoints, which are URLs that applications use to exchange data.

In plain words
What is it for?
Use it when documenting API routes or integrations, including HTTP methods, parameters, request bodies, response formats, and OpenAPI naming.
Why use it?
It provides a consistent structure for documenting requests, authentication, responses, errors, and examples so developers can use an API correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when documenting API routes or integrations, including HTTP methods, parameters, request bodies, response formats, and OpenAPI naming.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saolalab/clawforce/api-docs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add saolalab/clawforce --skill api-docs
Clone the repo
git clone --depth 1 https://github.com/saolalab/clawforce

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/saolalab/clawforce/api-docs/github.svg)](https://agentmods.dev/skills/saolalab/clawforce/api-docs)
Your own site
<a href="https://agentmods.dev/skills/saolalab/clawforce/api-docs"><img src="https://agentmods.dev/badge/skills/saolalab/clawforce/api-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/saolalab/clawforce/api-docs"><img src="https://agentmods.dev/badge/skills/saolalab/clawforce/api-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00595
Opus 5.5 $0.00008 $0.00238
Sonnet 5.5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00060

Measured 3mo ago against content hash 95eea7a90759, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-docs scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://api.example.com/users \
marketplace/roles/technical-writer/workspace/skills/api-docs/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Documentation

Endpoint Documentation Template

## [Method] /path/to/endpoint

[Brief description of what this endpoint does]

### Authentication
Requires Bearer token in Authorization header.

### Request

#### Headers
| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token |

#### Path Parameters
| Parameter | Type | Description |
|-----------|------|-------------|
| id | string | Resource ID |

#### Query Parameters
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| limit | integer | 20 | Max results |

#### Request Body
```json
{
  "name": "string",
  "email": "string"
}

Response

Success (200)
{
  "id": "123",
  "name": "Example",
  "created_at": "2024-01-01T00:00:00Z"
}
Error (400)
{
  "error": "validation_error",
  "message": "Email is required"
}

Example

curl -X POST https://api.example.com/users \
  -H "Authorization: Bearer token" \
  -H "Content-Type: application/json" \
  -d '{"name": "John", "email": "[email protected]"}'

## OpenAPI Best Practices

### Operation IDs
Use consistent, descriptive operation IDs:
- `createUser`, `getUser`, `updateUser`, `deleteUser`
- `listOrders`, `getOrderById`

### Descriptions
- Endpoint description: What it does
- Parameter descriptions: What each param controls
- Response descriptions: What each status means

### Examples
Include realistic examples for:
- Request bodies
- Responses
- Error cases

## Error Documentation

| Status | Meaning | When Used |
|--------|---------|-----------|
| 400 | Bad Request | Invalid input |
| 401 | Unauthorized | Missing/invalid auth |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource doesn't exist |
| 429 | Too Many Requests | Rate limited |
| 500 | Server Error | Internal error |

## SDK Documentation

### Quick Start
```markdown
## Installation

npm install @company/sdk

## Usage

import { Client } from '@company/sdk';

const client = new Client({ apiKey: 'your-key' });
const result = await client.resources.list();

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 124 lines · 20 tokens per session scan A 95eea7a90759

Subscribe to this mod's changes

api-docs is a skill published in the GitHub repository saolalab/clawforce (38 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 595 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

api-docs compared with skills from other repositories

api-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-docssaolalab/clawforceSkill387mo agoApache-2.0A20Claude Code, Codex
agenticmailInternLM/WildClawBenchSkill53715d agoMITA28Claude Code, Codex
agentic-paper-digest-skillInternLM/WildClawBenchSkill53715d agoMITA54Claude Code, Codex
ai-meeting-schedulingInternLM/WildClawBenchSkill53715d agoMITA0Claude Code, Codex
academic-literature-searchInternLM/WildClawBenchSkill53715d agoMITA0Claude Code, Codex
eachlabs-voice-audioInternLM/WildClawBenchSkill53715d agoMITA60Claude Code, Codex
03_task6InternLM/WildClawBenchSkill53715d agoMITA70Claude Code, Codex