amirtaherkhani/nestjs-skills
关于
Seven Agent Skills for NestJS implementation, architecture, OOP, code and feature audits, runtime performance, and safe Git publication.
开发工具实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文NestJS Skills
Thoughtful engineering guidance for agents that work on real NestJS codebases.
Build, audit, refactor, scale, and publish with clear ownership—without turning every project into accidental architecture.
Documentation · Getting started · Choose a skill · Feature audit · Rules reference
A read-only audit turns TypeScript, lint, architecture, design, security, testing, and production evidence into one prioritized report.
✨ What is this?
This repository contains seven focused Agent Skills for Claude Code, Codex, and other clients that support the Agent Skills open standard.
Each skill owns a distinct engineering decision. Together they help an agent inspect the actual repository, choose the smallest safe design, resolve conflicting instructions before mutation, and verify outcomes with evidence.
[!TIP] Latest release:
v2.5.0adds bounded collection selection and operations, DI and performance examples with 32 deterministic checks. A research record maps 13 selected upstream rules to the seven existing skills and records the remaining categories as backlog. See the changelog for changes and verification limits.
[!IMPORTANT] Version 2 migration:
professional-software-engineeringis nownestjs-professional-software-engineering, andgit-commit-pr-messageis nownestjs-git-commit-pr-message. Reinstall the renamed skills and update explicit commands so every skill in this NestJS collection uses thenestjs-prefix.
[!NOTE] These skills do not force Clean Architecture, CQRS, repositories, microservices, Kubernetes, or design patterns into every project. The repository and its real constraints come first.
🧭 Pick the right skill
| Skill | Reach for it when you need to… | |
|---|---|---|
| 🧠 | nestjs-professional-software-engineering |
Implement a NestJS feature, fix, refactor, API, or library using clear version-compatible syntax and proportionate verification |
| 🏗️ | nestjs-architecture-principles |
Decide module, capability, dependency, data, transaction, ORM, or service boundaries |
| 🧩 | nestjs-oop-design-patterns |
Improve responsibilities, invariants, SOLID trade-offs, test seams, or pattern selection without over-engineering |
| ⚡ | nestjs-features-performance |
Design errors, security, APIs, queues, caching, observability, delivery, performance, reliability, or scale |
| 🔎 | nestjs-code-audit |
Audit a whole NestJS repository for static and semantic problems without modifying it |
| 🗺️ | nestjs-feature-audit |
Compare one feature on a named branch with its documented roadmap and classify implementation, gaps, legacy code, bugs, and blockers |
| 🚀 | nestjs-git-commit-pr-message |
Stage NestJS changes intentionally, scan for secrets, write commits and PRs, push safely, and follow CI or GitHub Pages |
How they fit together
| Workflow | Recommended path |
|---|---|
| Build or change a feature | 🧠 Professional Engineering → 🏗️ Architecture → 🧩 Object Design → ⚡ Runtime → 🚀 Git Publication |
| Review the whole codebase | 🔎 Code Audit → one deduplicated, evidence-backed report |
| Validate a feature roadmap | 🗺️ Feature Audit → one branch-specific roadmap traceability report |
| Diagnose a focused problem | Start with the narrowest owning skill; add another only when the decision crosses boundaries |
Every skill carries a pre-execution conflict guard. If two active skills want incompatible file changes, commands, contracts, or architecture, the agent assigns one owner or stops for clarification before mutation.
⚡ Quick start
1. Install the collection
npx skills add amirtaherkhani/nestjs-skills
Install one skill for Claude Code and Codex
npx skills add amirtaherkhani/nestjs-skills \
--skill nestjs-professional-software-engineering \
--agent claude-code \
--agent codex
Preview available skills without installing
npx skills add amirtaherkhani/nestjs-skills --list
The CLI installs project skills into the client-specific location, including .claude/skills/ for Claude Code and .agents/skills/ for Codex. Add --global for a user-level installation.
Find NestJS Skills in marketplaces
Each link opens a published collection or skill listing. The marketplaces have different install flows:
| Marketplace | Listing and install path |
|---|---|
Browse the NestJS Skills collection. Install with the Skills CLI command above, or choose one skill with --skill. |
|
| Browse individual skill listings. Select Download Free on a listing, then follow its agent-specific folder instructions. | |
| Browse individual skill listings. Use the listing’s Ask an Agent, CLI, or Manual install choice and follow its instructions. |
See public listings and posts for publication links and their verification status.
We write on Hashnode about NestJS, practical backend and software engineering, and how NestJS Skills applies these topics in AI-assisted development. Read Finding a business rule bypass in a NestJS module for an example; the publication index above has the detailed listings.
The Skills CLI command above installs from this GitHub repository; it is separate from Agensi’s ZIP download and Skillstore’s listing-level install choices. See all marketplace listings and install paths.
2. Invoke a skill
The descriptions support automatic activation. You can also invoke a skill explicitly:
| Claude Code | Codex |
|---|---|
/nestjs-professional-software-engineering |
$nestjs-professional-software-engineering |
/nestjs-code-audit |
$nestjs-code-audit |
/nestjs-feature-audit |
$nestjs-feature-audit |
/nestjs-git-commit-pr-message |
$nestjs-git-commit-pr-message |
3. Ask naturally
Implement this feature using the clearest syntax supported by the current
project. Preserve the public API and run the relevant checks.
💬 Copy-ready requests
| Goal | Example request |
|---|---|
| Implement | “Implement this feature using the clearest syntax supported by the current project, then verify it.” |
| Audit | “Audit this NestJS repository and return one evidence-backed report without changing code.” |
| Validate roadmap | “Audit the payments feature on main against its documented roadmap and report implemented, missing, legacy, bug, and blocker items.” |
| Architecture | “Review this module graph and recommend the smallest change that removes the cycle.” |
| Refactor | “Refactor this provider using SOLID and a pattern only if the observed variation justifies it.” |
| Performance | “Trace this slow endpoint, identify the limiting resource, and propose a measured fix.” |
| Publish | “Commit and push this verified change, open a draft PR, and report the matching CI and Pages status.” |
Read-only audit actions
$nestjs-code-audit
$nestjs-code-audit full src/payments
$nestjs-code-audit static
$nestjs-code-audit security src/auth
Code Audit includes its own semantic review guide; sibling skills are optional.
The audit collector uses installed local ESLint and tsc --noEmit checks only. It does not install dependencies, fix files, run migrations, build images, or deploy.
Feature roadmap audit
$nestjs-feature-audit "payments"
$nestjs-feature-audit "payments" --branch "release/2026-q3"
Feature Audit safely prepares the target branch, requires a clear roadmap in docs/ or supplied by the user, and stops before code comparison when that roadmap is missing. It never treats audit findings as authorization to implement fixes.
See the Feature Audit workflow guide for roadmap eligibility, branch-safety behavior, evidence classification, and the required report format.
The optional Codex compatibility prompt accepts /prompts:audit_feature payments on branch release/2026-q3. Bare /audit_feature is supported only when the active client already routes that command to the installed skill.
[!TIP] Codex CLI/IDE can also expose the deprecated custom-prompt alias
/prompts:nestjs-audit. See the audit guide. Bare custom commands such as/Nestjs auditare not supported.
🧪 Runnable examples and evaluation
The collection examples add 15 checks for collection semantics and bounded HTTP processing through npm run test:fixtures. The operations, DI and performance examples add 17 checks through npm run test:runtime. Both are included in npm test; see the research mapping for scope, provenance and limitations.
Three executable NestJS examples cover strict boolean query parsing, a module-boundary invariant bypass with a healthy control, and a measured local HTTP optimization. Run npm run test:fixtures to verify the intentionally failing inputs and corrected behavior.
The design-pattern catalog adds practical examples for all 19 entries, with Nest wiring, tradeoffs, and behavioral tests. Run npm run test:patterns to compile and test the documentation's code blocks. The scenario guide explains the in-memory adapters and other teaching limits.
The opt-in evaluation harness prepares three tasks × two skill versions in fresh contexts, records actual CLI usage when available, and keeps fixture correctness separate from agent impact. Ordinary CI never invokes a model. Initial pilot status: the CLI was blocked before a model turn, so no agent-quality or token-savings claim is established.
🤝 Optional project rules
This repository includes ready-to-adapt engineering rules for both clients:
From this repository checkout:
# Codex
cp integrations/codex/AGENTS.md ./AGENTS.md
# Claude Code
cp integrations/claude/CLAUDE.md ./CLAUDE.md
[!IMPORTANT] Merge these templates into an existing rules file instead of overwriting project-specific instructions.
🛡️ Engineering principles behind the collection
- Progressive disclosure: compact
SKILL.mdinstructions route to focused references only when needed. - Context before rules: inspect the repository, installed versions, transport, persistence, tests, and runtime before prescribing.
- Architecture ladder: start with cohesive feature modules; add layers, ports, CQRS, or services only when real pressure earns the cost.
- Syntax from evidence: prefer repository conventions, installed types, official documentation, and focused experiments over fashionable syntax.
- Safe syntactic sugar: reduce real ceremony without hiding I/O, state, authorization, transactions, costs, or failures.
- Framework-aware OOP: use Nest modules and providers as real boundaries; do not recreate the framework lifecycle.
- Stable error contracts: keep application failure meaning separate from HTTP, GraphQL, RPC, gRPC, WebSocket, or worker representations.
- Measure before optimizing: distinguish event-loop, database, network, memory, and capacity bottlenecks before selecting a remedy.
- Production-aware delivery: verify built artifacts, effective configuration, live state, health, telemetry, drain, rollout, and rollback.
- Intentional publication: protect unrelated work, scan staged content, and perform only explicitly authorized Git/GitHub actions.
🧪 Validate or contribute locally
Install dependencies and run the full repository suite:
npm install
npm test
npx skills add . --list
Run individual workflows:
npm run validate
npm run test:audit
npm run test:fixtures
npm run test:patterns
npm run test:eval
npm run docs:build
npm run docs:dev
npm run preview:gif
The validator checks frontmatter, naming, descriptions, cross-skill handoffs, references, evaluation JSON, client metadata, and recommended skill size. The documentation build generates the complete website reference directly from canonical skill sources.
See CONTRIBUTING.md for authoring rules and SOURCES.md for research and attribution.
Built for deliberate NestJS engineering—not architecture theater.
探索相关项目
加载中…