Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

nestjs-doctor-create-rule

Skill by RoloBits

Creates custom nestjs-doctor rules that enforce a team's own NestJS conventions. It covers choosing the scope, matching the AST with ts-morph, registering the rule in config, and checking that it loads. Intended for NestJS developers who need checks the built-in rules do not cover.

  • Score 73
  • 187 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nestjs-doctor-create-rule

Built from the published package, never by AI.

git clone --depth 1 https://github.com/RoloBits/nestjs-doctor /tmp/nestjs-doctor && mkdir -p ~/.claude/skills && cp -r /tmp/nestjs-doctor/packages/nestjs-doctor/skills/nestjs-doctor-create-rule ~/.claude/skills/nestjs-doctor-create-rule

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install nestjs-doctor-create-rule in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through writing a custom rule for nestjs-doctor. It first checks whether the requested check is possible with the available ts-morph APIs and the module graph. It then asks for the pattern, scope, category, severity and rule ID, creates a rules directory, writes a .ts rule file, and sets customRulesDir in the project config.

The skill includes a reference of what file rules and project rules can access, and it warns about common failures, such as an async check() that silently returns no diagnostics. It ends by running nestjs-doctor with JSON output to confirm the custom rule loads. It is aimed at developers on NestJS projects who want to enforce a team convention that the built-in rules do not cover.

Written from the project's SKILL.md and checked against it.

What it can do

  • Feasibility checkJudges whether a requested check can be done with ts-morph and the module graph before writing code.
  • Request intakeAsks for the pattern, scope, category, severity and rule ID of the new rule.
  • Config handlingFinds the existing nestjs-doctor config and sets customRulesDir, creating the file if needed.
  • Rule generationWrites a .ts rule file to the custom rules directory, named after the rule ID.
  • Load verificationRuns nestjs-doctor with JSON output to confirm the custom rule loads without warnings.

What you need

  • A NestJS project that uses nestjs-doctor
  • Node.js with npx available
  • A package.json or nestjs-doctor config file in the project

Try asking

  • Create a custom nestjs-doctor rule that requires a Logger in every service
  • Write a nestjs-doctor rule that bans the moment npm package
  • Check whether a nestjs-doctor rule can detect providers in multiple modules

Good to know

  • File rules cannot access other files, the module graph or providers
  • check() must be synchronous, so async I/O in a rule will not work
  • Only .ts rule files are loaded by the custom rule loader
  • Rules cannot modify source files

Security check

B
  • Allowed to use Bash, Edit, Write without limitsIn SKILL.md

Checked automatically: packages/nestjs-doctor/skills/nestjs-doctor-create-rule/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashReadEditGlobGrepWrite

Alternatives to nestjs-doctor-create-rule

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

nestjs-doctor-create-rule: common questions

Why does my nestjs-doctor custom rule return no diagnostics?

The skill warns that an async check() is discarded by the runner, so it returns zero diagnostics and zero errors. The check must be synchronous.

Which file types does the custom rule loader accept?

Only .ts files are loaded. .js, .mjs and .cjs rule files are ignored.

Can a nestjs-doctor rule read the type of a constructor parameter?

The skill notes that param.getType().getText() often returns an import path, so it recommends param.getTypeNode()?.getText() for the literal annotation.

How do I install nestjs-doctor-create-rule?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is nestjs-doctor-create-rule free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is nestjs-doctor-create-rule safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.

What are alternatives to nestjs-doctor-create-rule?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

nestjs-doctor-create-rule Install

Add to stack

Loading.