datawhalechina/easy-data-x-ai/api-doc-writing

Claude Code and agent skill by datawhalechina/easy-data-x-ai

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Write clear and consistent API documentation following team standards. Use when creating or editing REST API reference docs.

Install

npx vskill@latest install datawhalechina/easy-data-x-ai/api-doc-writing

SKILL.md

The same SKILL.md was published earlier as datawhalechina/easy-data-x-ai/api-doc-writing.

API Documentation Writing Skill

Guidelines for writing REST API reference documentation.

When to use

Use this skill when:

  • Writing new API endpoint documentation
  • Editing existing API reference pages
  • Reviewing API docs for consistency

Document structure

Standard sections
  1. Overview - Brief description of the endpoint purpose
  2. Request - HTTP method, URL, headers, and body parameters
  3. Response - Status codes and response body schema
  4. Examples - Request/response examples with curl commands
  5. Errors - Common error codes and troubleshooting

Formatting rules

Endpoint naming
  • Use lowercase with hyphens for URL paths
  • Use nouns for resources, not verbs
  • Version prefix required: /v1/users, not /users
Parameter tables
  • Every parameter must have: name, type, required, description
  • Use string, integer, boolean, array, object for types
  • Mark optional parameters explicitly
Examples section
  • Include at least one success and one error example
  • Use curl commands for request examples
  • Show full JSON response bodies

Best practices

  • Start each endpoint doc with a one-sentence summary
  • Document rate limits and authentication requirements upfront
  • Keep examples realistic but anonymized (no real API keys)
  • Link to related endpoints for discoverability

Example

Request:

bash
curl -X GET "https://api.example.com/v1/users/123" \
-H "Authorization: Bearer <token>"

Response:

json
{
"id": 123,
"name": "Alice",
"email": "alice@example.com"
}

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
199
Repository forks
53
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/datawhalechina/easy-data-x-ai/api-doc-writing/badge)](https://verified-skill.com/skills/datawhalechina/easy-data-x-ai/api-doc-writing)

Something wrong with this skill or its page? Tell us.