- Home
- Skills
- APIs & Backend
- NestJS Skills: OOP and Design Patterns
NestJS Skills: OOP and Design Patterns
Apply pragmatic OOP, SOLID and design patterns to NestJS code, using evidence and behavior-preserving refactoring.
Free
Works with the AI Agents you already use
About this skill
A free, MIT-licensed agent skill for object design and behavior-preserving refactoring in NestJS and TypeScript. It guides work on controllers, providers, use cases, entities, value objects, repositories, adapters, factories, strategies, handlers and tests.
The workflow inspects repository instructions, installed versions, callers, tests and module wiring before recommending a design. It diagnoses concrete problems such as invariant leakage, hidden dependencies, duplicated decisions, inheritance misuse and leaky abstractions.
Apply SOLID as diagnostic questions, prefer composition over inheritance, encapsulate domain invariants and select patterns only when real variation or boundaries justify the added complexity. When a pattern is unnecessary, recommend the direct implementation.
Refactoring starts with behavior and contract checks, changes one justified seam, preserves unrelated work and verifies the affected boundaries. Included references cover OOP and SOLID, object design, pattern selection, NestJS-native patterns, and smells and refactoring.
Individual skill version: 1.0.2, from the NestJS Skills v2.2.0 collection by amirtaherkhani. This listing contains OOP and Design Patterns only. The original MIT LICENSE is preserved. Source and documentation: https://github.com/amirtaherkhani/nestjs-skills
Intended for NestJS and TypeScript, not pure functional codebases or non-NestJS frontend work. Design recommendations depend on actual repository evidence and runtime constraints. Refactors need proportionate behavior, contract and module-wiring checks; this skill does not guarantee correctness or justify patterns without observed need.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Permissions
Reads the user-selected repository, callers, tests and module wiring. Authorized implementation edits relevant source and test files and may run project checks through the terminal. Review-only tasks remain read-only. File scope depends on the selected repository; the package folder is not the full runtime scope. Official documentation lookup may use network access when needed. No account connection or credentials are required by the package.