Agent skill · software engineering · aiskillstore

nx-monorepo

Nx monorepo management skill for AI-native development. This skill should be used when working with Nx workspaces, project graphs, affected detection, code generation, and caching. Use when: analyzing dependencies, running affected commands, generating code, configuring Nx Cloud, or optimizing build performance. Invoke nx-mcp tools for documentation queries.

Why this skill is useful

Adds specific commands and configurations for managing Nx monorepos that the AI wouldn't reliably generate on its own.

What it needs

Requires pnpm installed locally. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Nx Monorepo Overview This skill provides expert-level capabilities for Nx monorepo management. Nx is the standard build orchestrator for this AI-native platform due to its official MCP server integration. Why Nx: Official MCP server, TypeScript-native, 5-minute setup, auto-generates CLAUDE.md/AGENTS.md for AI assistants. MCP Tools Available Key Insight: MCP provides documentation lookup. Use Nx CLI for all operations. Core CLI Commands Project Graph Analysis Affected Detection Running Tasks Code Generation Configuration Files nx.json (Workspace Config) project.json (Project Config) Caching Local Cache Nx Cloud (Remote Cache) Cache Inputs Common Patterns Adding a New JS/TS App Adding a Python App (uv Workspace) Python projects use uv workspaces (similar to pnpm workspaces for JS) with manual project.json for Nx: Edit root pyproject.toml: apps/my-python-app/project.json (for Nx): Shared Python Libraries Create libraries that multiple Python apps can import: Reference in dependent projects: Key Insight: uv manages Python deps via workspace, Nx orchestrates tasks. Single uv.lock at root. Creating Shared Libraries CI Pipeline (GitHub Actions) Troubleshooting "Cannot find project" Cache Not Working Dependency Issues Quick Reference Task Command ------ --------- Interactive graph pnpm nx graph Affected build pnpm nx affected -t build Run all tests pnpm nx run-many -t test Generate JS/TS app pnpm nx g @nx/next:app name Generate JS/TS lib pnpm nx g @nx/js:lib name Add plugin pnpm nx add @nx/next Clear cache pnpm nx reset Show projects pnpm nx show projects List generators pnpm nx list @nx/next Python-Specific (uv) Task Command ------ --------- Init Python project cd apps/name && uv init Add runtime dep uv add <package> Add dev dep uv add --group dev <package> Sync deps uv sync --extra dev Run via Nx pnpm nx test my-python-app Related Skills monorepo-workflow: PR stacking, trunk-based development, code review monorepo-team-lead: CODEOWNERS, human-AI task routing, RFC process

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/nx-monorepo

View the source on GitHub

Browse the @skills marketplace