agent-skills
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 163 GitHub stars
Code Fail
- exec() — Shell command execution in index.js
- exec() — Shell command execution in scripts/validate.js
- spawnSync — Synchronous process spawning in test/cli.test.js
- process.env — Environment variable access in test/cli.test.js
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Agent skills for Nest framework (node.js) 🕵️♂️
NestJS agent skills
Official Agent Skills for building and extending NestJS applications with coding agents. They give an agent what its training data lacks:
- the current APIs, which are often newer than the model;
- Nest's first-party packages;
- the mistakes that still pass tests: a sign-in that leaks which emails exist,
@IsOptional()lettingnullthrough to a 500, a rate limiter that never sees the user, an event stream that outlives a revoked key, and many more.
Each skill is a folder with a SKILL.md that holds its rules, plus references/ with longer recipes. Every recipe was run on the released packages. The skills work with any agent that reads the Agent Skills format: Claude Code, Codex, Cursor and others.
Skills
| Skill | Use when |
|---|---|
nestjs |
creating or extending a NestJS application: starting a project, layout, module system, where the docs are, common mistakes |
nestjs-feature |
adding or changing endpoints: where code goes, modules and providers, validation (Zod with @Body({ schema }) or class-validator), status codes, errors, HTTP options, Server-Sent Events |
nestjs-auth |
adding or changing authentication or authorization: @nestjs/authentication (passwords, sessions, tokens, API keys) and @nestjs/authorization (policies) |
nestjs-data |
adding or changing persistence: @nestjs/drizzle and @nestjs/typeorm, migrations, safe updates, paging, transactions |
nestjs-testing |
writing, running or fixing tests: unit, service and end-to-end tests, overriding providers and global guards, signing test users in |
nestjs-production |
preparing for production: configuration, logs, observability with NestJS Observe, health checks, rate limiting, OpenAPI, shutdown, deployment |
Agents load a skill when its description matches the task, so there's nothing to invoke by hand.
Install
The skills live in plugins/nestjs/skills/. Install them for one project (committed with the code, so everyone on the team gets them) or for your user account (every project on your machine).
Any agent, with npm
npx @nestjs/skills add
copies every skill into .agents/skills/, which Codex and Cursor read. Choose where with --agent:
--agent |
Folder | Read by |
|---|---|---|
agents (default) |
.agents/skills/ |
Codex, Cursor and other Agent Skills readers |
claude |
.claude/skills/ |
Claude Code (and Cursor) |
cursor |
.cursor/skills/ |
Cursor |
all |
.agents/skills/ and .claude/skills/ |
Codex, Cursor and Claude Code at once (Cursor reads both folders) |
npx @nestjs/skills add --agent claude # Claude Code, this project
npx @nestjs/skills add --agent all # Codex, Cursor and Claude Code
npx @nestjs/skills add --agent agents --global # every project on your machine (~/.agents/skills)
npx @nestjs/skills add nestjs nestjs-auth # only some skills
npx @nestjs/skills list # what's in the package
npx @nestjs/skills remove # remove what it installed
--agent also takes several targets (--agent agents,claude or repeated). --dir <path> installs anywhere else. The installer only replaces or removes folders it installed itself (it leaves a .nestjs-skills marker in each); --force replaces a same-named folder that it didn't. Pin the version for the team with npm i -D @nestjs/skills and npx nestjs-skills add. Programmatic use: import { listSkills, skillsDir } from '@nestjs/skills'.
Claude Code
As a plugin, from this repository's marketplace:
claude plugin marketplace add nestjs/agent-skills
claude plugin install nestjs@nestjs
Or inside a session: /plugin marketplace add nestjs/agent-skills, then /plugin install nestjs@nestjs. Skills from the plugin are namespaced (nestjs:nestjs-auth).
Without the plugin: npx @nestjs/skills add --agent claude (add --global for ~/.claude/skills/).
To preconfigure a repository for your team, add this to its .claude/settings.json; each contributor still runs the install once:
{
"extraKnownMarketplaces": {
"nestjs": { "source": { "source": "github", "repo": "nestjs/agent-skills" } }
},
"enabledPlugins": { "nestjs@nestjs": true }
}
Codex
Codex reads skills from .agents/skills/ in the repository (and in parent folders up to the repository root) and from ~/.agents/skills/ for your user.
Cursor
Cursor reads skills from .agents/skills/ and .cursor/skills/ in the project, and from ~/.agents/skills/ and ~/.cursor/skills/ for your user. It also loads .claude/skills/ and .codex/skills/.
Any agent, by hand
Copy (or symlink) the skill folders to where your agent loads skills. .agents/skills/ covers Codex and Cursor at once:
git clone https://github.com/nestjs/agent-skills.git
mkdir -p .agents/skills && cp -R agent-skills/plugins/nestjs/skills/* .agents/skills/
For every project on your machine, use ~/.agents/skills/ instead. A symlink (ln -s "$PWD/agent-skills/plugins/nestjs/skills/nestjs-auth" ~/.agents/skills/) keeps a copy current with git pull.
Keep each folder whole: SKILL.md links to its references/ with relative paths, and the skills refer to each other by name.
Updating
- Claude Code plugin:
claude plugin marketplace update nestjs, thenclaude plugin update nestjs@nestjs, or turn on auto-update for the marketplace in/plugin. - npm:
npx @nestjs/skills@latest addagain: it replaces the copies it installed, dropping files a skill no longer has. - Copies by hand:
git pulland copy the folders again (symlinked folders update with the pull).
Compatibility
Written for NestJS 12 (@nestjs/core 12.x) on Node.js 20 or later. The recipes were run on:
- Nest 12.5.1;
@nestjs/authentication0.1.6 and@nestjs/authorization0.1.4;@nestjs/drizzle0.0.2 with Drizzle 1.0 rc, and@nestjs/typeorm12.0.3 with TypeORM 1.1;@nestjs/throttler6.8,@nestjs/swagger12.1,@nestjs/terminus12.2,@nestjs/config12.1 and@nestjs/observe0.3.
The skills tell the agent to check the installed version and the documentation before relying on what it remembers.
Format
Each SKILL.md follows the Agent Skills specification:
namematches the folder;descriptionsays when the skill applies, under 1,024 characters;- the frontmatter uses only portable fields (
name,description,license,compatibility), so the same files work in every agent and can be uploaded to the Claude apps.
The plugin itself is plugins/nestjs/: a Claude Code plugin (.claude-plugin/plugin.json) and an Agent Plugins plugin (plugin.json, read by Cursor and GitHub Copilot). The repository is also its own Claude Code marketplace (.claude-plugin/marketplace.json), and the npm package @nestjs/skills (the skills, the plugin manifests, and the nestjs-skills installer; no dependencies).
Contributing
Keep SKILL.md files short: rules and pitfalls in the file, longer code in references/, one level deep. Before adding an API or a pitfall, check it against the docs and run it on a released version.
Validate the frontmatter, links and versions, and test the installer:
npm run validate
npm test
claude plugin validate --strict .
A release bumps version in package.json, plugins/nestjs/.claude-plugin/plugin.json and plugins/nestjs/plugin.json (npm run validate checks they match), then npm publish, which runs the same checks first.
License
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found