nx
/nx
Obsługuje system budowania i narzędzia monorepo Nx: orkiestrację zadań, generatory, wtyczki, polecenia affected i granice modułów w dużych monorepo wielotechnologicznych.
- Autor
- claude-dev-suite ↗
- Repozytorium
- claude-dev-suite ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Obsługuje system budowania i narzędzia monorepo Nx: orkiestrację zadań, generatory, wtyczki, polecenia affected i granice modułów w dużych monorepo wielotechnologicznych.
Wyzwalacze z opisu
Oryginalny opis (EN)
Nx build system and monorepo tools. Advanced task orchestration, generators, and plugins. Use for complex enterprise monorepos with multiple technologies. USE WHEN: user mentions "Nx", "nx.json", "Nx monorepo", "Nx generators", asks about "Nx workspace", "affected commands", "module boundaries" DO NOT USE FOR: Turborepo (use turborepo skill), simple monorepos (Turborepo is simpler), single-package projects
Jak działa
- Setup
- Project Structure
- Configuration (nx.json)
- Running Tasks
- Generators
- Plugins
- Caching
- Comparison: Nx vs Turborepo
- When NOT to Use This Skill
- Anti-Patterns
Podgląd SKILL.md
---
name: nx
description: |
Nx build system and monorepo tools. Advanced task orchestration, generators, and plugins.
Use for complex enterprise monorepos with multiple technologies.
USE WHEN: user mentions "Nx", "nx.json", "Nx monorepo", "Nx generators", asks about "Nx workspace", "affected commands", "module boundaries"
DO NOT USE FOR: Turborepo (use turborepo skill), simple monorepos (Turborepo is simpler), single-package projects
allowed-tools: Read, Grep, Glob, Write, Edit, Bash
---
# Nx - Quick Reference
> **Full Reference**: See [advanced.md](advanced.md) for custom generators, custom executors, remote/self-hosted cache, module boundaries, and CI/CD GitHub Actions setup.
> **Deep Knowledge**: Use `mcp__documentation__fetch_docs` with technology: `nx` for comprehensive documentation.
## Setup
```bash
# New workspace
npx create-nx-workspace@latest my-workspace
# Add to existing repo
npx nx@latest init
```
## Project Structure
```
my-workspace/
├── nx.json
├── apps/
│ ├── web/project.json
│ └── api/project.json
└── libs/
├── ui/project.json
└── utils/project.json
```
## Configuration (nx.json)
```json
{
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true
},
"test": {
"inputs": ["default", "^production"],
"cache": true
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": ["default", "!{projectRoot}/**/*.spec.ts"]
}
}
```
## Running Tasks
```bash
# Run target
nx build web
nx test api
# Run for all projects
nx run-many -t build
nx run-many -t build test lint
# Affected (changed since base)
nx affected -t build
nx affected -t test --base=main
# Graph
nx graph
```
## Generators
```bash
# Generate application
nx g @nx/react:app my-app
nx g @nx/node:app my-api
# Generate library
nx g @nx/react:lib ui --directory=libs/shared
# Generate component
nx g @nx/react:component button --project=ui
# Dry run
nx g @nx/react:lib feature --dry-run
```
## Plugins
```bash
# Add plugin
nx add @nx/react
nx add @nx/node
nx add @nx/vite
```
## Caching
```bash
# Skip cache
nx build web --skip-nx-cache
# Clear cache
nx reset
```
## Comparison: Nx vs Turborepo
| Feature | Nx | Turborepo |
|---------|-----|-----------|
| Configuration | TypeScript | JSON |
| Generators | Advanced | Basic |
| Plugins | 50+ | Limited |
| Module boundaries | Enforced | Manual |
| Learning curve | Steeper | Lower |
## When NOT to Use This Skill
- **Simple monorepos** - Turborepo has simpler configuration
- **Single package** - No need for monorepo tools
- **Quick setup needed** - Turborepo is faster to configure
## Anti-Patterns
| Anti-Pattern | Why It's Bad | Correct Approach |
|--------------|--------------|------------------|
| Ignoring module boundaries | Tight coupling | Enforce with @nx/enforce-module-boundaries |
| Circular dependencies | Build failures | Use nx graph to detect and fix |
| Not using affected | Wastes CI time | Always use nx affected in CI |
| Missing project tags | Can't enforce constraints | Tag all projects properly |
| No workspace generators | Inconsistent code | Create generators for common patterns |
## Quick Troubleshooting
| Issue | Cause | Solution |
|-------|-------|----------|
| Module boundary violation | Wrong import | Check depConstraints in .eslintrc.json |
| Circular dependency | Projects import each other | Use nx graph, refactor to shared lib |
| Affected not working | Missing dependencies | Check implicit dependencies |
| Cache not working | Missing outputs | Add outputs to target configuration |
| Build order wrong | Missing dependsOn | Add dependsOn: ["^build"] |
## Production Checklist
- [ ] nx.json configured
- [ ] project.json for each project
- [ ] Module boundaries with tags
- [ ] Affected in CI pipeline
- [ ] Nx Cloud for remote cache
- [ ] Generators for consistency
## Reference Documentation
- [Nx Docs](https://nx.dev/getting-started/intro)
Pliki w paczce (2)
- SKILL.md 4 KB
- advanced.md 4 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · claude-dev-suite/claude-dev-suite | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 18711937a0d7 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95monorepo
Zarządza monorepo w Nx lub Turborepo: grafem zależności, cache'owaniem zadań, poleceniami affected i konfiguracją. - 91turborepo
Konfiguruje i diagnozuje monorepo Turborepo: turbo.json, potoki zadań, dependsOn, cache, filtry, pakiety zmienione, optymalizacja CI i granice pakietów. - 80role-fullstack:monorepo-management
Porządkuje monorepo w Turborepo lub Nx: pipeline'y, pamięć podręczną, pakiety współdzielone i szybsze buildy w CI. - 100turborepo-monorepo
Prowadzi przez zarządzanie monorepo Turborepo: workspace'y, zadania w turbo.json, aplikacje Next.js i NestJS, testy Vitest i Jest, CI/CD oraz zdalny cache. - 100nx-workspace-patterns
Konfiguruje i optymalizuje monorepo Nx: granice projektów, cache budowania i polecenia affected. - 95local-turborepo-8a2b3ad8
Doradza przy konfiguracji i optymalizacji monorepo w Turborepo: cache zadań, zdalny cache, równoległe wykonanie i flagę --affected w CI.