About w-api-docs
w-api-docs is a development skill for updating API documentation through its owning schema or route rather than generated files. It guides maintainers through identifying the generator, regenerating artifacts, and updating adopter docs when behavior changes.
Key features
- 01Find the source of truth and generator
- 02Edit schemas or routes, not generated files
- 03Run generation and check for drift
- 04Update adopter docs for behavior changes
Use cases
- 01Revise API documentation after a route change
- 02Regenerate OpenAPI artifacts from source
- 03Check generated output for repository drift
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ blockmatic/ basilic-skills --skill w-api-docsAfter installing, type/w-api-docsin Claude Code to confirm it loaded.
Details
From the project READMEUpdate API documentation from the source of truth (TypeBox/Fastify routes, or the repo's documented generator). Never edit generated OpenAPI, generated clients, or generated SQL directly.
- Read the API docs MDX and the generator README. Identify the owning source and the generate script in package.json.
- Change the owning schema or route, not the generated artifact.
- Run the documented generate command. Check drift scripts if the repo has them.
- Update adopter MDX only for behavior that changed. Do not invent auth, rate-limit, or versioning policy.
- Docs:
/w-docsif behavior or commands changed.
Comments
Markdown supported