Skip to content

ericrisco/rsc-harness / skills/nestjs

nestjs

Verified

Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is `nodejs`), NOT framework-agnostic REST design (that is `api-design`).

FileKindSize
SKILL.mdskill md11.5 KB
evals/README.mdmarkdown71 B
evals/cases.yamlconfig2.1 KB
references/cross-cutting.mdmarkdown4.7 KB
references/testing-recipes.mdmarkdown3.7 KB
scripts/verify.shexecutablescript3.0 KB

evals/cases.yaml

View on GitHub
skill: nestjs

should_trigger:
  - prompt: "Create a NestJS module with a controller, provider and repository provider."
    why: "Feature modules/controllers/providers are core NestJS mechanics."
  - prompt: "Should this auth guard be APP_GUARD or @UseGuards on the controller?"
    why: "Guard binding scope is a Nest-specific cross-cutting decision."
  - prompt: "My request-scoped provider is undefined inside a Nest guard."
    why: "DI scope and lifecycle issues belong to NestJS."
  - prompt: "Mock a repository provider with overrideProvider in a Nest test."
    why: "TestingModule and overrideProvider are Nest-specific testing APIs."
  - prompt: "Monta un modulo de Nest con JWT guard y pipes de validacion."
    why: "Spanish Nest module plus guards/pipes triggers this skill."

should_not_trigger:
  - prompt: "Build a bare Express route with no DI container."
    route_to: "nodejs"
    why: "Bare Express without Nest modules/providers is Node.js, not NestJS."
  - prompt: "Design REST status codes and idempotency for this API."
    route_to: "api-design"
    why: "Framework-agnostic API design belongs elsewhere."
  - prompt: "Design the Postgres schema for orders."
    route_to: "postgresdb"
    why: "Database schema design is not a Nest DI/module concern."
  - prompt: "Fix a generic TypeScript conditional type."
    route_to: "typescript"
    why: "Pure TypeScript typing belongs to the TypeScript skill."

capability:
  - scenario: "A user asks to add a NestJS Orders module with a service, controller, injected repository, validation pipe and tests."
    must_include:
      - "Defines a feature module boundary and keeps AppModule thin."
      - "Wires providers through Nest DI rather than manually new-ing dependencies."
      - "Chooses provider form (useClass/useValue/useFactory/useExisting) by intent."
      - "Places guards/pipes/interceptors at the right scope and respects request lifecycle order."
      - "Uses Test.createTestingModule and overrideProvider for unit tests."
      - "Routes schema/query design to database skills when needed."
      - "Avoids circular dependencies or uses forwardRef only as a last resort."
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall