Fähigkeiten nx-workspace-patterns
📦

nx-workspace-patterns

Sicher

Configure Nx Monorepo Workspaces

Auch verfĂĽgbar von: wshobson

Managing large-scale JavaScript projects becomes complex without proper tooling. This skill provides production-ready Nx workspace patterns for efficient monorepo management with build caching and affected commands.

UnterstĂĽtzt: Claude Codex Code(CC)
🥉 75 Bronze
1

Die Skill-ZIP herunterladen

2

In Claude hochladen

Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen

3

Einschalten und loslegen

Teste es

Verwendung von "nx-workspace-patterns". Configure nx.json with caching for build, test, and lint operations

Erwartetes Ergebnis:

Provides complete nx.json configuration with tasksRunnerOptions, targetDefaults, namedInputs, and cacheable operations for optimal CI performance.

Verwendung von "nx-workspace-patterns". Set up module boundaries preventing circular dependencies

Erwartetes Ergebnis:

Generates ESLint configuration with depConstraints enforcing tag-based dependency rules between apps, features, UI libraries, and utilities.

Sicherheitsaudit

Sicher
v1 • 2/24/2026

Static analysis flagged 35 patterns that are all false positives. The SKILL.md file is documentation-only content containing Nx configuration templates, CLI command examples, and best practices. External command patterns are documentation code blocks, network references are hyperlinks to official Nx documentation, and filesystem patterns are JSON schema paths in configuration templates. No executable code or security risks present.

1
Gescannte Dateien
467
Analysierte Zeilen
0
befunde
1
Gesamtzahl Audits
Keine Sicherheitsprobleme gefunden
Auditiert von: claude

Qualitätsbewertung

38
Architektur
100
Wartbarkeit
87
Inhalt
50
Community
100
Sicherheit
100
Spezifikationskonformität

Was du bauen kannst

New Nx Workspace Setup

Configure a new Nx monorepo with proper project structure, caching, and task runner options for a team starting a large-scale React application.

CI Pipeline Optimization

Implement affected commands in GitHub Actions to reduce CI times by only testing and building changed projects.

Module Boundary Enforcement

Set up ESLint rules to enforce architectural boundaries between feature, UI, and utility libraries across the organization.

Probiere diese Prompts

Basic Workspace Configuration
Help me set up a new Nx workspace for a React application with proper caching configuration.
Project Boundary Setup
Generate ESLint module boundary rules for an Nx workspace with apps and libs directories, enforcing that apps can depend on features and utilities but features cannot depend on other features.
CI Workflow with Affected Commands
Create a GitHub Actions workflow that uses Nx affected commands to run lint, test, and build only on changed projects when pulling from main branch.
Custom Library Generator
Write a custom Nx generator that creates a feature library with pre-configured tags, index exports, and barrel files for a scoped monorepo structure.

Bewährte Verfahren

  • Use descriptive tags consistently and enforce them with module boundary rules
  • Enable build caching early in project setup for significant CI time savings
  • Keep libraries focused with single responsibility to maintain clean dependencies

Vermeiden

  • Creating circular dependencies between libraries which breaks the dependency graph
  • Skipping affected commands and running full test suites on every commit
  • Over-granularizing with too many small libraries increasing maintenance burden

Häufig gestellte Fragen

What is the difference between Nx affected and running all tasks?
Affected commands only run tasks on projects that changed since a base commit, significantly reducing CI times compared to running on all projects.
How does Nx caching work?
Nx caches task outputs based on inputs like source files and configuration. When inputs match a previous run, Nx restores cached results instead of re-executing.
What are module boundaries and why use them?
Module boundaries are ESLint rules that enforce architectural constraints, preventing improper dependencies between library types and scopes.
Do I need Nx Cloud for caching?
No, local caching works without Nx Cloud. Nx Cloud enables distributed caching across team members and CI runners for additional speed improvements.
How do I migrate an existing workspace to Nx?
Use nx migrate commands to add Nx to existing projects. Start with adding nx package, then convert package.json scripts to Nx targets gradually.
What library types should I use in my Nx workspace?
Common types include feature for business logic, ui for presentational components, data-access for API integration, util for pure functions, and shell for app bootstrapping.

Entwicklerdetails

Dateistruktur

đź“„ SKILL.md