Community编程与开发github.com

giuseppe-trisciuoglio/nx-monorepo

为 TypeScript/JavaScript 项目提供全面的 Nx 单体仓库管理指导。用于创建 Nx 工作区、生成应用/库/组件、运行受影响的命令、设置 CI/CD、配置模块联合或在 Nx 内实现 NestJS 后端。

nx-monorepo 是什么?

该技能为在 Nx 单体仓库环境中工作的开发者提供全面的指导。它涵盖 Nx 工作区的初始化、使用生成器创建应用、库和组件、执行 `nx affected` 等受影响的命令以实现高效增量构建和测试、设置 CI/CD 流水线、配置模块联合以实现微前端,以及在 Nx 工作区中集成 NestJS 后端。该技能在 CLI 互动和基于编辑器的 AI 辅助(如 Cursor 或 Claude Code)中表现同样出色,通过参考标准化的 Nx API 和模式,减少手动配置错误,确保工作区结构一致性,并加速项目启动和扩展过程。它通过将常见操作封装为可重复的 AI 引导步骤来简化工作流,使开发者能更专注于业务逻辑而非样板代码。

兼容平台~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/skills/nx-monorepo

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

nx-monorepo 是做什么的?

为 TypeScript/JavaScript 项目提供全面的 Nx 单体仓库管理指导。用于创建 Nx 工作区、生成应用/库/组件、运行受影响的命令、设置 CI/CD、配置模块联合或在 Nx 内实现 NestJS 后端。

功能特性

  • Nx 工作区创建与管理:使用 create-nx-workspace 初始化项目,并遵循最佳实践组织工作区结构。
  • 生成应用、库和组件:使用 Nx 生成器快速创建 Angular、React、Node 等框架的应用和库。
  • 受影响的命令:利用 nx affected 仅对受影响的子集运行构建、测试、lint 等操作,优化 CI/CD 流水线。
  • CI/CD 集成:提供 CI/CD 配置建议,支持 GitHub Actions、GitLab CI、CircleCI 等平台。
  • 模块联合:帮助配置 Webpack 或 Nx 原生 Module Federation 以支持微前端架构。
  • NestJS 后端集成:在 Nx 工作区中生成并管理 NestJS 应用,实现前后端共享类型与库。

使用场景

  • 从头开始创建新的 Nx 单体仓库
  • 为现有工作区添加新应用或库
  • 运行仅针对变更部分的构建和测试
  • 设置微前端架构
  • 在单体仓库中集成 NestJS 后端

依赖

  • Node.js 18+ 和 npm/yarn/pnpm
  • Nx CLI(可通过 npx nx 使用)

使用方式示例

# 创建一个新工作区
npx create-nx-workspace@latest my-workspace --preset=ts

# 在工作区内生成一个 React 应用
npx nx g @nx/react:app my-app

# 生成一个共享库
npx nx g @nx/nest:lib my-lib

# 运行所有受影响项目的测试
npx nx affected:test --base=main

# 构建特定项目
npx nx build my-app

最佳实践

  • 使用 nx graph 可视化项目依赖关系
  • 利用 nx format:write 保持代码格式一致
  • 为库和应用程序定义清晰的标签(tags),限制依赖关系
  • 使用环境变量管理不同环境的配置

平台兼容性

该技能适用于支持 AI 辅助工具的所有平台,包括但不限于:

  • Cursor:在编辑器内直接提供指导
  • Claude Code:通过 CLI 交互提供帮助
  • Codex:自动完成代码生成和建议

贡献

如果您发现任何问题或希望贡献改进,请提交 issue 或 pull request。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

giuseppe-trisciuoglio/aws-lambda-java-integration

Provides AWS Lambda integration patterns for Java with cold start optimization. Use when deploying Java functions to AWS Lambda, choosing between Micronaut and Raw Java approaches, optimizing cold starts below 1 second, configuring API Gateway or ALB integration, or implementing serverless Java applications. Triggers include "create lambda java", "deploy java lambda", "micronaut lambda aws", "java lambda cold start", "aws lambda java performance", "java serverless framework".

giuseppe-trisciuoglio/aws-lambda-php-integration

Provides AWS Lambda integration patterns for PHP with Symfony using the Bref framework. Creates Lambda handler classes, configures runtime layers, sets up SQS/SNS event triggers, implements warm-up strategies, and optimizes cold starts. Use when deploying PHP/Symfony applications to AWS Lambda, configuring API Gateway integration, implementing serverless PHP applications, or optimizing Lambda performance with Bref. Triggers include "create lambda php", "deploy symfony lambda", "bref lambda aws", "php lambda cold start", "aws lambda php performance", "symfony serverless", "php serverless framework".

giuseppe-trisciuoglio/aws-lambda-python-integration

Provides AWS Lambda integration patterns for Python with cold start optimization. Use when deploying Python functions to AWS Lambda, choosing between AWS Chalice and raw Python approaches, optimizing cold starts, configuring API Gateway or ALB integration, or implementing serverless Python applications. Triggers include "create lambda python", "deploy python lambda", "chalice lambda aws", "python lambda cold start", "aws lambda python performance", "python serverless framework".

giuseppe-trisciuoglio/aws-lambda-typescript-integration

Provides AWS Lambda integration patterns for TypeScript with cold start optimization. Use when creating or deploying TypeScript Lambda functions, choosing between NestJS framework and raw TypeScript approaches, optimizing cold starts, configuring API Gateway or ALB integration, or implementing serverless TypeScript applications. Triggers include "create lambda typescript", "deploy typescript lambda", "nestjs lambda aws", "raw typescript lambda", "aws lambda typescript performance".

giuseppe-trisciuoglio/aws-rds-spring-boot-integration

Provides patterns to configure AWS RDS (Aurora, MySQL, PostgreSQL) with Spring Boot applications. Configures HikariCP connection pools, implements read/write splitting, sets up IAM database authentication, enables SSL connections, and integrates with AWS Secrets Manager. Use when setting up RDS connections in Spring Boot, configuring connection pooling, or managing database credentials securely.

giuseppe-trisciuoglio/aws-sdk-java-v2-bedrock

Provides Amazon Bedrock patterns using AWS SDK for Java 2.x. Invokes foundation models (Claude, Llama, Titan), generates text and images, creates embeddings for RAG, streams real-time responses, and configures Spring Boot integration. Use when asking about Bedrock integration, Java SDK for AI models, AWS generative AI, Claude/Llama invocation, embeddings for RAG, or Spring Boot AI setup.

giuseppe-trisciuoglio/aws-sdk-java-v2-core

Provides AWS SDK for Java 2.x client configuration, credential resolution, HTTP client tuning, timeout, retry, and testing patterns. Use when creating or hardening AWS service clients, wiring Spring Boot beans, debugging auth or region issues, or choosing sync vs async SDK usage.

giuseppe-trisciuoglio/aws-sdk-java-v2-dynamodb

Provides Amazon DynamoDB patterns using AWS SDK for Java 2.x. Use when creating, querying, scanning, or performing CRUD operations on DynamoDB tables, working with indexes, batch operations, transactions, or integrating with Spring Boot applications.

giuseppe-trisciuoglio/aws-sdk-java-v2-kms

Provides AWS Key Management Service (KMS) patterns using AWS SDK for Java 2.x. Use when creating/managing encryption keys, encrypting/decrypting data, generating data keys, digital signing, key rotation, or integrating encryption into Spring Boot applications.

giuseppe-trisciuoglio/aws-sdk-java-v2-lambda

Provides AWS Lambda patterns using AWS SDK for Java 2.x. Use when invoking Lambda functions, creating/updating functions, managing function configurations, working with Lambda layers, or integrating Lambda with Spring Boot applications.

giuseppe-trisciuoglio/aws-sdk-java-v2-messaging

Provides AWS messaging patterns using AWS SDK for Java 2.x for SQS queues and SNS topics. Handles sending/receiving messages, FIFO queues, DLQ, subscriptions, and pub/sub patterns. Use when implementing messaging with SQS or SNS.

giuseppe-trisciuoglio/aws-sdk-java-v2-rds

Provides AWS RDS (Relational Database Service) management patterns using AWS SDK for Java 2.x. Use when creating, modifying, monitoring, or managing Amazon RDS database instances, snapshots, parameter groups, and configurations.

giuseppe-trisciuoglio/aws-sdk-java-v2-s3

Provides Amazon S3 patterns and examples using AWS SDK for Java 2.x. Use when working with S3 buckets, uploading/downloading objects, multipart uploads, presigned URLs, S3 Transfer Manager, object operations, or S3-specific configurations.

giuseppe-trisciuoglio/aws-sdk-java-v2-secrets-manager

Provides AWS Secrets Manager patterns for AWS SDK for Java 2.x, including secret retrieval, caching, rotation-aware access, and Spring Boot integration. Use when storing or reading secrets in Java services, replacing hardcoded credentials, or wiring secret-backed configuration into applications.

giuseppe-trisciuoglio/better-auth

Provides Better Auth integration patterns for NestJS backend and Next.js frontend with Drizzle ORM and PostgreSQL. Use when setting up Better Auth with NestJS backend, integrating Next.js App Router frontend, configuring Drizzle ORM schema, implementing social login (GitHub, Google), adding plugins (2FA, Organization, SSO, Magic Link, Passkey), implementing email/password authentication with session management, or creating protected routes and middleware.

giuseppe-trisciuoglio/chunking-strategy

Provides chunking strategies for RAG systems. Generates chunk size recommendations (256-1024 tokens), overlap percentages (10-20%), and semantic boundary detection methods. Validates semantic coherence and evaluates retrieval precision/recall metrics. Use when building retrieval-augmented generation systems, vector databases, or processing large documents.

giuseppe-trisciuoglio/clean-architecture

Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications. Use when structuring layered architectures, separating domain logic from frameworks, implementing ports and adapters, creating entities/value objects/aggregates, or refactoring monolithic codebases for testability and maintainability.

giuseppe-trisciuoglio/docs-updater

Provides automated documentation updates by analyzing git changes between the current branch and the last release tag. Performs git diff analysis to identify modifications, then updates README.md, CHANGELOG.md following Keep a Changelog standard, and discovers documentation folders for contextual updates. Use when preparing a release, maintaining documentation sync, or before creating a pull request. Triggers on "update docs", "update changelog", "sync documentation", "update readme", "prepare release documentation".

giuseppe-trisciuoglio/drawio-logical-diagrams

Creates professional logical flow diagrams and logical system architecture diagrams using draw.io XML format (.drawio files). Use when creating: (1) logical flow diagrams showing data/process flow between system components, (2) logical architecture diagrams representing system structure without cloud provider specifics, (3) BPMN process diagrams, (4) UML diagrams (class, sequence, activity), (5) data flow diagrams (DFD), (6) decision flowcharts, or (7) system interaction diagrams. This skill focuses on generic/abstract representations, not AWS/Azure-specific architectures (use aws-drawio-architecture-diagrams for cloud diagrams).

giuseppe-trisciuoglio/drizzle-orm-patterns

Provides comprehensive Drizzle ORM patterns for schema definition, CRUD operations, relations, queries, transactions, and migrations. Proactively use for any Drizzle ORM development including defining database schemas, writing type-safe queries, implementing relations, managing transactions, and setting up migrations with Drizzle Kit. Supports PostgreSQL, MySQL, SQLite, MSSQL, and CockroachDB.

相关技能