{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-nestjs-skills",
    "name": "Nestjs Best Practices",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/TuanViDev/agent-nestjs-skills",
    "canonicalUrl": "https://clawhub.ai/TuanViDev/agent-nestjs-skills",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/agent-nestjs-skills",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-nestjs-skills",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-nestjs-skills"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/agent-nestjs-skills",
    "agentPageUrl": "https://openagent3.xyz/skills/agent-nestjs-skills/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-nestjs-skills/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-nestjs-skills/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "NestJS Best Practices",
        "body": "Comprehensive best practices guide for NestJS applications. Contains 40 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation."
      },
      {
        "title": "When to Apply",
        "body": "Reference these guidelines when:\n\nWriting new NestJS modules, controllers, or services\nImplementing authentication and authorization\nReviewing code for architecture and security issues\nRefactoring existing NestJS codebases\nOptimizing performance or database queries\nBuilding microservices architectures"
      },
      {
        "title": "Rule Categories by Priority",
        "body": "PriorityCategoryImpactPrefix1ArchitectureCRITICALarch-2Dependency InjectionCRITICALdi-3Error HandlingHIGHerror-4SecurityHIGHsecurity-5PerformanceHIGHperf-6TestingMEDIUM-HIGHtest-7Database & ORMMEDIUM-HIGHdb-8API DesignMEDIUMapi-9MicroservicesMEDIUMmicro-10DevOps & DeploymentLOW-MEDIUMdevops-"
      },
      {
        "title": "1. Architecture (CRITICAL)",
        "body": "arch-avoid-circular-deps - Avoid circular module dependencies\narch-feature-modules - Organize by feature, not technical layer\narch-module-sharing - Proper module exports/imports, avoid duplicate providers\narch-single-responsibility - Focused services over \"god services\"\narch-use-repository-pattern - Abstract database logic for testability\narch-use-events - Event-driven architecture for decoupling"
      },
      {
        "title": "2. Dependency Injection (CRITICAL)",
        "body": "di-avoid-service-locator - Avoid service locator anti-pattern\ndi-interface-segregation - Interface Segregation Principle (ISP)\ndi-liskov-substitution - Liskov Substitution Principle (LSP)\ndi-prefer-constructor-injection - Constructor over property injection\ndi-scope-awareness - Understand singleton/request/transient scopes\ndi-use-interfaces-tokens - Use injection tokens for interfaces"
      },
      {
        "title": "3. Error Handling (HIGH)",
        "body": "error-use-exception-filters - Centralized exception handling\nerror-throw-http-exceptions - Use NestJS HTTP exceptions\nerror-handle-async-errors - Handle async errors properly"
      },
      {
        "title": "4. Security (HIGH)",
        "body": "security-auth-jwt - Secure JWT authentication\nsecurity-validate-all-input - Validate with class-validator\nsecurity-use-guards - Authentication and authorization guards\nsecurity-sanitize-output - Prevent XSS attacks\nsecurity-rate-limiting - Implement rate limiting"
      },
      {
        "title": "5. Performance (HIGH)",
        "body": "perf-async-hooks - Proper async lifecycle hooks\nperf-use-caching - Implement caching strategies\nperf-optimize-database - Optimize database queries\nperf-lazy-loading - Lazy load modules for faster startup"
      },
      {
        "title": "6. Testing (MEDIUM-HIGH)",
        "body": "test-use-testing-module - Use NestJS testing utilities\ntest-e2e-supertest - E2E testing with Supertest\ntest-mock-external-services - Mock external dependencies"
      },
      {
        "title": "7. Database & ORM (MEDIUM-HIGH)",
        "body": "db-use-transactions - Transaction management\ndb-avoid-n-plus-one - Avoid N+1 query problems\ndb-use-migrations - Use migrations for schema changes"
      },
      {
        "title": "8. API Design (MEDIUM)",
        "body": "api-use-dto-serialization - DTO and response serialization\napi-use-interceptors - Cross-cutting concerns\napi-versioning - API versioning strategies\napi-use-pipes - Input transformation with pipes"
      },
      {
        "title": "9. Microservices (MEDIUM)",
        "body": "micro-use-patterns - Message and event patterns\nmicro-use-health-checks - Health checks for orchestration\nmicro-use-queues - Background job processing"
      },
      {
        "title": "10. DevOps & Deployment (LOW-MEDIUM)",
        "body": "devops-use-config-module - Environment configuration\ndevops-use-logging - Structured logging\ndevops-graceful-shutdown - Zero-downtime deployments"
      },
      {
        "title": "How to Use",
        "body": "Read individual rule files for detailed explanations and code examples:\n\nrules/arch-avoid-circular-deps.md\nrules/security-validate-all-input.md\nrules/_sections.md\n\nEach rule file contains:\n\nBrief explanation of why it matters\nIncorrect code example with explanation\nCorrect code example with explanation\nAdditional context and references"
      },
      {
        "title": "Full Compiled Document",
        "body": "For the complete guide with all rules expanded: AGENTS.md"
      }
    ],
    "body": "NestJS Best Practices\n\nComprehensive best practices guide for NestJS applications. Contains 40 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation.\n\nWhen to Apply\n\nReference these guidelines when:\n\nWriting new NestJS modules, controllers, or services\nImplementing authentication and authorization\nReviewing code for architecture and security issues\nRefactoring existing NestJS codebases\nOptimizing performance or database queries\nBuilding microservices architectures\nRule Categories by Priority\nPriority\tCategory\tImpact\tPrefix\n1\tArchitecture\tCRITICAL\tarch-\n2\tDependency Injection\tCRITICAL\tdi-\n3\tError Handling\tHIGH\terror-\n4\tSecurity\tHIGH\tsecurity-\n5\tPerformance\tHIGH\tperf-\n6\tTesting\tMEDIUM-HIGH\ttest-\n7\tDatabase & ORM\tMEDIUM-HIGH\tdb-\n8\tAPI Design\tMEDIUM\tapi-\n9\tMicroservices\tMEDIUM\tmicro-\n10\tDevOps & Deployment\tLOW-MEDIUM\tdevops-\nQuick Reference\n1. Architecture (CRITICAL)\narch-avoid-circular-deps - Avoid circular module dependencies\narch-feature-modules - Organize by feature, not technical layer\narch-module-sharing - Proper module exports/imports, avoid duplicate providers\narch-single-responsibility - Focused services over \"god services\"\narch-use-repository-pattern - Abstract database logic for testability\narch-use-events - Event-driven architecture for decoupling\n2. Dependency Injection (CRITICAL)\ndi-avoid-service-locator - Avoid service locator anti-pattern\ndi-interface-segregation - Interface Segregation Principle (ISP)\ndi-liskov-substitution - Liskov Substitution Principle (LSP)\ndi-prefer-constructor-injection - Constructor over property injection\ndi-scope-awareness - Understand singleton/request/transient scopes\ndi-use-interfaces-tokens - Use injection tokens for interfaces\n3. Error Handling (HIGH)\nerror-use-exception-filters - Centralized exception handling\nerror-throw-http-exceptions - Use NestJS HTTP exceptions\nerror-handle-async-errors - Handle async errors properly\n4. Security (HIGH)\nsecurity-auth-jwt - Secure JWT authentication\nsecurity-validate-all-input - Validate with class-validator\nsecurity-use-guards - Authentication and authorization guards\nsecurity-sanitize-output - Prevent XSS attacks\nsecurity-rate-limiting - Implement rate limiting\n5. Performance (HIGH)\nperf-async-hooks - Proper async lifecycle hooks\nperf-use-caching - Implement caching strategies\nperf-optimize-database - Optimize database queries\nperf-lazy-loading - Lazy load modules for faster startup\n6. Testing (MEDIUM-HIGH)\ntest-use-testing-module - Use NestJS testing utilities\ntest-e2e-supertest - E2E testing with Supertest\ntest-mock-external-services - Mock external dependencies\n7. Database & ORM (MEDIUM-HIGH)\ndb-use-transactions - Transaction management\ndb-avoid-n-plus-one - Avoid N+1 query problems\ndb-use-migrations - Use migrations for schema changes\n8. API Design (MEDIUM)\napi-use-dto-serialization - DTO and response serialization\napi-use-interceptors - Cross-cutting concerns\napi-versioning - API versioning strategies\napi-use-pipes - Input transformation with pipes\n9. Microservices (MEDIUM)\nmicro-use-patterns - Message and event patterns\nmicro-use-health-checks - Health checks for orchestration\nmicro-use-queues - Background job processing\n10. DevOps & Deployment (LOW-MEDIUM)\ndevops-use-config-module - Environment configuration\ndevops-use-logging - Structured logging\ndevops-graceful-shutdown - Zero-downtime deployments\nHow to Use\n\nRead individual rule files for detailed explanations and code examples:\n\nrules/arch-avoid-circular-deps.md\nrules/security-validate-all-input.md\nrules/_sections.md\n\n\nEach rule file contains:\n\nBrief explanation of why it matters\nIncorrect code example with explanation\nCorrect code example with explanation\nAdditional context and references\nFull Compiled Document\n\nFor the complete guide with all rules expanded: AGENTS.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/TuanViDev/agent-nestjs-skills",
    "publisherUrl": "https://clawhub.ai/TuanViDev/agent-nestjs-skills",
    "owner": "TuanViDev",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-nestjs-skills",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-nestjs-skills",
    "agentUrl": "https://openagent3.xyz/skills/agent-nestjs-skills/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-nestjs-skills/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-nestjs-skills/agent.md"
  }
}