AgentSkillsCN

nx-workspace-patterns

配置并优化 Nx 单体仓库的工作空间。适用于设置 Nx 环境、定义项目边界、优化构建缓存,或实施“受影响命令”机制。

SKILL.md
--- frontmatter
version: 4.1.0-fractal
name: nx-workspace-patterns
description: Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.

Nx Workspace Patterns

Production patterns for Nx monorepo management.

Do not use this skill when

  • The task is unrelated to nx workspace patterns
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Use this skill when

  • Setting up new Nx workspaces
  • Configuring project boundaries
  • Optimizing CI with affected commands
  • Implementing remote caching
  • Managing dependencies between projects
  • Migrating to Nx

Core Concepts

🧠 Knowledge Modules (Fractal Skills)

1. 1. Nx Architecture

2. 2. Library Types

3. Template 1: nx.json Configuration

4. Template 2: Project Configuration

5. Template 3: Module Boundary Rules

6. Template 4: Custom Generator

7. Template 5: CI Configuration with Affected

8. Template 6: Remote Caching Setup

9. Do's

10. Don'ts