datawhalechina/easy-data-x-ai/api-doc-writing
Claude Code and agent skill by datawhalechina/easy-data-x-ai
Trust tier 2
- community
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-writingSKILL.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
- Overview - Brief description of the endpoint purpose
- Request - HTTP method, URL, headers, and body parameters
- Response - Status codes and response body schema
- Examples - Request/response examples with curl commands
- 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,objectfor 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:
Response:
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
- SKILL.md in the repositoryCheckingcode/X2/skills/api-doc-writing/SKILL.md
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
[](https://verified-skill.com/skills/datawhalechina/easy-data-x-ai/api-doc-writing)