# Optimize Your Nx Workspace

Large Nx workspaces can develop slow builds and unclear dependency rules. This skill provides configuration patterns for boundaries, caching, generators, and affected CI tasks.

## Install

```bash
npx skillstore add sickn33/nx-workspace-patterns
```

## Metadata

- Status: approved
- Slug: sickn33-nx-workspace-patterns
- Skillstore revision: r2
- Version status: missing
- Tree hash: 0253fccd619413fdd585d8ac74314e8a1f5a1141acd9fd32fbf8d9895f70a8ee
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/nx-workspace-patterns
- Ref: 81e05e636292629114b76cbb3922fbe57672fc02
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 77
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-nx-workspace-patterns
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-nx-workspace-patterns/manifest

## Capabilities

- Designs Nx workspace layouts for applications and shared libraries.
- Provides nx.json and project.json configuration patterns.
- Defines ESLint module-boundary rules using project tags.
- Shows custom Nx generator patterns with Nx Devkit.
- Configures affected CI tasks and remote caching options.

## Use Cases

- Structure a New Monorepo: Plan applications, libraries, tags, and dependency rules before teams add projects.
- Reduce CI Work: Configure affected lint, test, build, and end-to-end tasks with cacheable targets.
- Standardize Library Creation: Create generator conventions for names, directories, tags, tests, linting, and shared files.

## Prompt Templates

### Review Workspace Layout

```
Review my Nx folder structure and suggest clearer application and library boundaries.
```

### Define Module Boundaries

```
Design Nx project tags and enforce-module-boundaries rules for these applications, libraries, and dependency constraints.
```

### Optimize Affected CI

```
Create an affected-task CI plan for lint, test, build, and end-to-end targets using my branches and runner limits.
```

### Design Caching and Generators

```
Propose Nx caching inputs, remote cache configuration, and a custom generator for these project conventions and security requirements.
```

## Limitations

- Examples require adaptation to the installed Nx version and plugins.
- The skill does not inspect or execute a workspace automatically.
- Remote caching requires separate credentials and provider configuration.
- The referenced implementation playbook is not included in this package.

## Best Practices

- Confirm the installed Nx version before applying configuration examples.
- Use consistent project tags and test boundary rules in CI.
- Keep cache inputs explicit and store access tokens in protected secrets.

## Anti Patterns

- Do not copy example paths without matching the actual workspace layout.
- Do not place remote cache tokens directly in committed configuration.
- Do not run broad tasks when affected commands meet validation requirements.

## Security Audit

- Audited at: 2026-08-04T16:25:53.884\+00:00
- Summary: All 32 static findings are false positives caused by Markdown formatting, configuration examples, TypeScript template literals, and documentation links. No malicious intent, unsafe execution, or data exfiltration behavior was found.

## Stats

- Views: 101
- Downloads: 8
- Favorites: 0
- Popularity score: 0
