Agent skill · Security

api-documentation

Use when API code changes (routes, endpoints, schemas). Enforces Swagger/OpenAPI sync. Pauses work if documentation has drifted, triggering documentation-audit skill.

majiayu000github.com/majiayu000GitHub ↗
codexclaude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-documentation-troykelly-codex-skills-2 --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/api/api-documentation-troykelly-codex-skills-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# API Documentation Enforcement ## Overview Ensures all API changes are reflected in Swagger/OpenAPI documentation. When documentation drift is detected, work pauses until documentation is synchronized. **Core principle:** API documentation is a first-class artifact, not an afterthought. No API change ships without documentation. **Announce at start:** "I'm using api-documentation to verify Swagger/OpenAPI sync." ## When This Skill Triggers This skill is triggered when ANY of these file patterns are modified: | Pattern | Framework | Trigger Reason | |---------|-----------|----------------| | `**/routes/**/*.ts` | Express/Fastify | Route definitions | | `**/controllers/**/*.ts` | NestJS/Express | Controller endpoints | | `**/*.controller.ts` | NestJS | Controller class | | `**/api/**/*.py` | FastAPI/Flask | API endpoints | | `**/*_router.py` | FastAPI | Router definitions | | `**/handlers/**/*.go` | Go | HTTP handlers | | `**/schema*.ts` | TypeScript | Schema definitions | | `**/dto/**/*.ts` | NestJS | Data transfer objects | | `**/models/**/*.ts` | Various | API models | ## Documentation Locations Check these locations for existing API documentation: | File | Format | Standard | |-

What's inside
Steps it walks through
  1. Overview
  2. When This Skill Triggers
  3. Documentation Locations
  4. The Protocol
  5. Step 1: Detect API Changes
  6. Step 2: Find Documentation File
  7. Step 3: Verify Sync
  8. Step 4: Handle Drift
  9. Documentation Requirements
  10. Required Fields
  11. Required Examples
  12. Example OpenAPI Entry
  13. Validation
  14. Checklist
Ships with 1 file
  • metadata.json
Commands it runs
Check if current changes affect API
Check common API file patterns
for pattern in "routes/" "controllers/" "api/" "handlers/" "*.controller.ts" "*_router.py"; do
if git diff --name-only HEAD~1 | grep -q "$pattern"; then
break
fi
done
Check for schema/DTO changes
if git diff --name-only HEAD~1 | grep -qE "(schema|dto|model)"; then
echo "API Changed: $API_CHANGED"
More from claude-skill-registry
All skills →
About this skill
What does the api-documentation skill do?

Use when API code changes (routes, endpoints, schemas). Enforces Swagger/OpenAPI sync. Pauses work if documentation has drifted, triggering documentation-audit skill.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-documentation-troykelly-codex-skills-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going