nestjs-architecture-principles
Skill by amirtaherkhani
Designs and reviews NestJS application architecture, covering feature modules, modular monoliths, hexagonal boundaries and circular dependencies. Built for developers planning or refactoring NestJS backends. It reads the repository before recommending a change.
Install nestjs-architecture-principles
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-architecture-principles ~/.claude/skills/nestjs-architecture-principlesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install nestjs-architecture-principles 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-architecture-principles ~/.gemini/antigravity-cli/skills/nestjs-architecture-principlesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install nestjs-architecture-principles in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides architecture decisions for NestJS applications. It helps plan a new project, change module boundaries, evaluate Clean Architecture or DDD, define ports and adapters, and resolve circular dependencies. It starts by reading package.json, nest-cli.json, TypeScript configuration, bootstrap files and the relevant modules, then maps the module import graph and persistence ownership.
It favors a modular monolith organized by business capability and adds layers, ports, CQRS or service splits only when a stated constraint justifies them. Reviews produce evidence-backed findings with severity and a minimal remedy. It is aimed at developers working on NestJS backends, not on pure frontend work or non-NestJS backends.
Written from the project's SKILL.md and checked against it.
What it can do
- Architecture designRecommends one architecture direction for a NestJS project based on its constraints and trade-offs.
- Module boundary reviewChecks feature module ownership, exports, and dependency direction in an existing codebase.
- Circular dependency resolutionTreats cycles as design feedback and suggests boundary fixes before using forwardRef.
- Ports and adapters planningDefines where a port is justified to isolate a replaceable external concern.
- CQRS and microservices decisionsAssesses whether CQRS or service extraction is justified by the repository's needs.
- Architecture reviewProduces findings with severity, impact, a minimal remedy, and a validation step.
What you need
- A NestJS repository with package.json and nest-cli.json
- TypeScript configuration in the project
Try asking
- Review the module boundaries and circular dependencies in my NestJS app
- Should my NestJS project use microservices or a modular monolith?
- Plan ports and adapters for the payments module in this NestJS repo
Good to know
- Not for pure frontend work or non-NestJS backends.
- Audits stay read-only; edits need explicit authorization in a separate phase.
- Stops and asks for input before mutation when a material conflict remains.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/nestjs-architecture-principles/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to nestjs-architecture-principles
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-architecture-principles: common questions
Does this skill change my NestJS code?
It reconciles active instructions before editing files or running state-changing commands. Audits stay read-only, and fixes need explicit authorization in a distinct implementation phase.
Should I always use CQRS with NestJS?
No. The skill says to add CQRS only when command and query behavior genuinely diverge. It also says to split a service only when it has an independent deployment, ownership, scaling, data, or failure boundary.
Can this skill be used for a non-NestJS backend?
No. The source says not to use it for pure frontend work or non-NestJS backends.
How do I install nestjs-architecture-principles?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is nestjs-architecture-principles free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is nestjs-architecture-principles safe to use?
It scores 73 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-architecture-principles?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
