nestjs-oop-design-patterns
Skill by amirtaherkhani
Applies OOP, SOLID and design pattern guidance to NestJS and TypeScript code. Built for developers writing, refactoring or reviewing controllers, providers, use cases and tests. It recommends a pattern only when the code shows a real design pressure.
Install nestjs-oop-design-patterns
Built from the published package, never by AI.
git clone --depth 1 https://github.com/amirtaherkhani/nestjs-skills /tmp/nestjs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/nestjs-skills/skills/nestjs-oop-design-patterns ~/.claude/skills/nestjs-oop-design-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install nestjs-oop-design-patterns in Claude Code
git clone --depth 1 https://github.com/amirtaherkhani/nestjs-skills /tmp/nestjs-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/nestjs-skills/skills/nestjs-oop-design-patterns ~/.gemini/antigravity-cli/skills/nestjs-oop-design-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install nestjs-oop-design-patterns in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
NestJS OOP and Design Patterns is an agent skill that guides an AI assistant through object design in NestJS and TypeScript code. It covers OOP defaults, SOLID diagnostic questions, and a table that matches design signals to patterns such as Strategy, Factory, Adapter and Facade. It also includes reference files on object design, code smells, and Nest-native mechanisms like guards, pipes, interceptors, filters and CQRS.
The skill asks the assistant to read callers, tests, module wiring and DTOs before proposing changes, and to name the actual pain first. It checks for conflicts with other active skills before any file edits, and favors behavior-preserving refactors backed by characterization tests. It is for developers working on NestJS projects who want to write or refactor controllers, providers, use cases, entities, repositories and tests. The source says it is not for pure functional codebases or non-NestJS frontend work.
Written from the project's SKILL.md and checked against it.
What it can do
- Inspect before prescribingReads callers, tests, module wiring, DTOs and persistence mapping before proposing a design change.
- SOLID diagnosticsTurns each SOLID principle into diagnostic questions about a unit's responsibility and contracts.
- Pattern selectionMatches design signals, such as interchangeable algorithms or vendor leaks, to patterns like Strategy or Adapter.
- Smell refactoringGives symptom-to-refactoring guidance for god services, primitive obsession and duplicated conditionals.
- Object design guidanceCovers entities, value objects, policies, services and DTO boundaries in NestJS code.
- Nest-native pattern mappingMaps patterns to Nest modules, providers, guards, pipes, interceptors, filters and CQRS.
- Testing rulesSets rules for unit, module and e2e tests, including when to use TestingModule.
- Conflict guardReconciles other active skills and stops before edits if a material conflict remains.
What you need
- A NestJS and TypeScript codebase
Try asking
- Review this NestJS service for god-service smells and suggest a safe refactor
- Should this NestJS provider use a Strategy or a direct implementation?
- Refactor this controller logic into a use case with characterization tests
Good to know
- Not for pure functional codebases or non-NestJS frontend work.
- Stops before editing files if a material conflict with another skill remains.
- Warns against forcing patterns, inheritance or factories without a real design force.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/nestjs-oop-design-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to nestjs-oop-design-patterns
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
nestjs-oop-design-patterns: common questions
Does this skill work outside NestJS?
The source targets NestJS and TypeScript code. It says not to use the skill for pure functional codebases or non-NestJS frontend work.
Does it change code automatically?
The source describes read-only inspection first and says to preserve behavior. It requires checks before mutation and stops if a material conflict remains.
What reference material does it include?
It includes a pattern catalog with 19 practical examples, plus reference files on OOP and SOLID, object design, Nest-native patterns and smells.
How do I install nestjs-oop-design-patterns?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nestjs-oop-design-patterns free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is nestjs-oop-design-patterns safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to nestjs-oop-design-patterns?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
