NestJS Skills: OOP and Design Patterns

    1

    Apply pragmatic OOP, SOLID and design patterns to NestJS code, using evidence and behavior-preserving refactoring.

    Free

    1 useSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Write Files
    Terminal / Shell

    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.

    Listed1 month ago

    What's inside

    Frequently Asked Questions

    This skill automates the detection of architectural smells like leaky abstractions and hidden dependencies, providing behavior-preserving refactoring paths to implement SOLID principles and appropriate design patterns in NestJS applications.

    This skill is designed for AI agents compatible with TypeScript and the NestJS framework, specifically version 1.0.2 within the broader NestJS Skills v2.2.0 ecosystem.

    The skill performs a comprehensive inspection of your repository instructions, module wiring, and test suites before suggesting design changes to ensure all recommendations are context-aware.

    You receive the specific 'OOP and Design Patterns' skill (v1.0.2) under the MIT License, which includes specialized workflows for refactoring controllers, providers, entities, and repositories.

    The skill follows a 'safety-first' workflow that checks contracts and existing tests before modifying code, ensuring that refactoring only occurs at justified seams while preserving unrelated logic.

    New in APIs & Backend

    Free