nestjs-openapi-docs
v1.1.0
Published
Installer and source files for the nestjs-openapi-docs agent skill.
Downloads
15
Maintainers
Readme
nestjs-openapi-docs
Skill for consulting up-to-date NestJS OpenAPI-Swagger documentation.
Quick Install
Install it with npx.
Install into the current project
npx nestjs-openapi-docsInstall into a specific project
npx nestjs-openapi-docs --project /path/to/projectInstall for the current user
npx nestjs-openapi-docs --userOverwrite an existing installation
npx nestjs-openapi-docs --forceThe installer copies the skill into either a project-level or user-level agent skills directory.
Project-level install
<project>/.agents/skills/nestjs-openapi-docs/
SKILL.md
README.mdUser-level install
<user-home>/.agents/skills/nestjs-openapi-docs/
SKILL.md
README.mdWindows example:
C:\Users\<your-user>\.agents\skills\nestjs-openapi-docs\Minimum required file:
SKILL.md
Recommended files:
SKILL.mdREADME.mdCHANGELOG.mdLICENSE
What It Does
- consults the official
@nestjs/swaggersource documentation - cross-checks against the official
sample/11-swagger - responds with citations, exact URLs, and snippets
- uses the user's language by default
Who This Is For
This skill is intended for anyone who needs reliable, current guidance for documenting NestJS APIs with OpenAPI and Swagger.
Typical users include:
- backend developers working with NestJS
- teams standardizing API documentation across services
- engineers troubleshooting
@nestjs/swaggerbehavior - developers who want source-backed answers instead of generic examples
Main Sources
https://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/introduction.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/types-and-parameters.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/operations.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/security.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/mapped-types.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/decorators.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/cli-plugin.mdhttps://raw.githubusercontent.com/nestjs/docs.nestjs.com/master/content/openapi/other-features.mdhttps://github.com/nestjs/nest/tree/master/sample/11-swagger
Intended Usage
Use this skill for questions about:
SwaggerModuleandDocumentBuilder- DTOs and
@ApiProperty - OpenAPI decorators
- Swagger auth configuration
- mapped types
- the CLI plugin
- multiple specs and advanced configuration
Usage
Once installed, use this skill whenever you need help with NestJS Swagger or OpenAPI behavior.
Good example prompts:
- "How should I set up
SwaggerModulein NestJS 11?" - "Why is my DTO schema empty in Swagger UI?"
- "Show me how to document bearer auth with
@nestjs/swagger." - "How do I document a paginated generic response in NestJS Swagger?"
- "What is the difference between
@ApiResponse()and@ApiOkResponse()?"
Expected behavior:
- the skill checks official NestJS documentation sources
- it cross-checks the official Swagger sample when useful
- it returns implementation guidance with exact source links
- it warns when NestJS Swagger has known limitations, such as generics or interface metadata
How To Keep It Updated
Because this skill relies on live official sources, the most important file to maintain is SKILL.md.
Update it when:
- NestJS changes documentation URLs or page structure
- you want to add new official source pages
- you want to improve response rules or troubleshooting guidance
Sharing Checklist
Before sharing this skill with someone else, verify:
SKILL.mdexistsREADME.mdexists- both files are written in English
- the source URLs in
SKILL.mdstill work - any example paths in the README are still accurate
