
Backend nestjs
Gives an agent NestJS rules for guards, DTO validation, modules and tests
Backend nestjs is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 19
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Backend nestjs
This skill is a NestJS rule pack organized as an index file that points to one reference file per rule. Each rule carries an impact level, the version branch it applies to, an incorrect and a correct example, and a way to verify it. The agent is told to read the project's package.json first to find the @nestjs/core major, the HTTP platform, the test runner and the validation library, and to treat version-specific defaults as something to confirm against the official NestJS docs rather than memory.
The rules cover authorization in guards, DTOs that must be runtime classes so validation works, rejecting unknown fields, JWT claim verification, request-scoped providers, avoiding barrel imports between modules, providing injected dependencies, mapping errors to HTTP exceptions, and testing with testing modules. The skill also includes a review checklist and notes on when a contract change should have its callers walked before editing.
It expects a TypeScript project that depends on NestJS and works with the agent's file reading and search tools. It includes a note that it runs inside a pipeline with approval and gating steps, and some of its gates are described as review discipline rather than enforced checks.
When your agent uses it
mokata · NestJS rule pack — impact-ordered rules for modules, guards, DTOs and providers, loaded by the spec's routing.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 10 files (19 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostackOr copy only this skill to ~/.claude/skills/backend-nestjs:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/backend-nestjs &&
cp -R "$tmp/src/mokata/skills/backend-nestjs" ~/.claude/skills/backend-nestjs &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/backend-nestjs inside it instead.
Copy the skill folder to ~/.agents/skills/backend-nestjs to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/backend-nestjs &&
cp -R "$tmp/src/mokata/skills/backend-nestjs" ~/.agents/skills/backend-nestjs &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/backend-nestjs inside it instead.
Copy the skill folder to ~/.cursor/skills/backend-nestjs to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/backend-nestjs &&
cp -R "$tmp/src/mokata/skills/backend-nestjs" ~/.cursor/skills/backend-nestjs &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/backend-nestjs inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/backend-nestjsOr copy the folder to ~/.gemini/skills/backend-nestjs yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/backend-nestjs:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/backend-nestjs &&
cp -R "$tmp/src/mokata/skills/backend-nestjs" ~/.copilot/skills/backend-nestjs &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/backend-nestjs inside it instead.
Get the folder:
git clone --depth 1 https://github.com/JasGujral/mokata-oss.gitThen copy mokata-oss/src/mokata/skills/backend-nestjs into your agent's skills folder as backend-nestjs. Agents that support SKILL.md read one folder per skill.
What it does
- Impact-ordered NestJS rules
- Nine rules ranked from critical to medium, each in its own reference file with examples.
- Guard-based authorization
- Guidance to place authorization in guards and to guard every route or mark it public explicitly.
- DTO validation safeguards
- Rules ensuring DTOs stay runtime classes and that unknown fields are stripped or rejected.
- Version-aware project reading
- Steps to read the project's NestJS major, HTTP platform, test runner and validation library first.
- Module and provider hygiene
- Rules on barrel imports, circular dependencies, request scope and injected providers.
- Testing and review checklist
- Guidance to write testing module or e2e tests first and a checklist to verify changes.
Good for
- Review a NestJS controller for unguarded routes
- Add a new DTO with validation to an existing module
- Check a NestJS change for circular module imports
- Write unit tests with a NestJS testing module
- Verify JWT handling in a NestJS auth guard
Backend nestjs FAQ
When does Backend nestjs engage?
It engages when the spec's domains name backend-nestjs, or when a change touches a controller, module, provider, guard, pipe or DTO in a package depending on @nestjs/core. It should not engage for plain Express, Fastify or Koa servers without NestJS, frontend-only changes, or TypeScript libraries without @nestjs/core.
What does Backend nestjs need from my project?
It reads the touched package's package.json to identify the @nestjs/core major, the HTTP platform, the test runner and the validation library in use.
Does Backend nestjs run any scripts or change files on its own?
The skill lists no scripts. It guides the agent through reading, reviewing and writing tests, and it says that a static every-route-guarded check is not part of the skill.
How do I install Backend nestjs in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/backend-nestjs to use it in all your projects, or to .claude/skills/backend-nestjs in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.
Does Backend nestjs run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Backend nestjs?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Backend nestjs?
The closest alternatives to Backend nestjs are TypeScript best practices, Backend patterns, Readable code, Nuxt and Frontend react.
Where this comes from
- Description: from the skill's own SKILL.md.
More from JasGujral/mokata-oss

Makes the agent design API contracts first and check callers before changing them
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent through Socratic exploration of an approach before any spec or code
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent to capture live browser console, network and page state for tests
- Open source
- 19 GitHub stars
- Developer tools

Guides the agent to reproduce a reported bug with a failing test before fixing it
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture
- Open source
- 19 GitHub stars
- Developer tools

Reproduces a failure, captures it in a failing test, then applies a minimal fix
- Open source
- 19 GitHub stars
- Developer tools





