Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →

nrwl/nx-ai-agents-config

7 skills40.5k installs189 starsGitHub

Install

npx skills add https://github.com/nrwl/nx-ai-agents-config

Skills in this repo

1Nx WorkspaceExplore and understand Nx workspaces with read-only exploration of workspace structure, project configuration, available targets, and dependencies. Provides commands for listing projects with filtering by pattern, tags, and targets; viewing full resolved project configuration; checking target executors and options; and analyzing workspace dependencies. Essential for debugging nx command failures and understanding workspace layout.27.7kinstalls2Nx Run TasksThe nx-run-tasks skill documents how agents run Nx tasks in monorepos. Prefix commands with npx, pnpx, or yarn when Nx is not global, determined from package.json or lockfiles. Discover runnable targets via nx show project PROJECT --json targets section, which includes plugin-inferred tasks beyond package.json scripts. Single tasks use nx run project:task where project comes from package.json or project.json names. Multiple tasks use nx run-many -t build test lint with optional -p project filters, --exclude, and --parallel controlling concurrency defaulting to three. Examples cover pattern filters like *-app, tag selectors tag:api-*, and explicit project lists. Affected runs limit work to changed projects and dependents via nx affected -t build test lint, comparing against base branches with --base and --head or direct --files paths for CI efficiency. Shared flags across run, run-many, and affected include --skipNxCache, --verbose, --nxBail, and --configuration for named configs like production. Help text is available per command with --help.2.5kinstalls3Nx GenerateThe nx-generate skill runs Nx generators to scaffold projects, automate migrations, and reduce monorepo boilerplate. Key principles: always pass --no-interactive, read generator source code beyond the schema, match existing repo patterns, and verify with lint test build or typecheck targets appropriate to the workspace. Nine steps discover generators via nx list, prefer local workspace generators over plugin generators when both fit, fetch --help options, default to non-buildable libraries unless publishing or cache benefits require --bundler vite or swc, read generator source to learn file placement and side effects, examine similar artifacts for naming conventions, dry-run to verify paths with special attention to --directory as full library path not parent folder, execute nx generate with --no-interactive, modify output if needed including meaningful tests or removing empty test targets, then nx format --fix and run-many verification across affected projects. Warns that --directory=libs creates wrong placement versus --directory=libs/my-lib. Links to link-workspace-packages for wiring new package dependencies.2.4kinstalls4Nx PluginsList plugins pnpm nx list Install plugins pnpm nx add plugin Example pnpm nx add nx react The nx plugins agent skill provides documented workflows prerequisites triggers and safety guidance from its SKILL md source Agents load it when user requests match the description and follow step by step instructions without inventing capabilities It integrates with standard agent tooling for the tasks inputs outputs and failure modes described in the repository documentation2.2kinstalls5Link Workspace PackagesAdd dependencies between packages in a monorepo All package managers support workspaces but with different syntax Check whether there s a packageManager field in the root level package json Alternatively check lockfile in repo root pnpm lock yaml pnpm yarn lock yarn bun lock bun lockb bun package lock json npm 1 Identify consumer package the one importing 2 Identify provider package s being imported 3 Add dependency using package manager s workspace syntax 4 Verify symlinks created in consumer s node_modules The link workspace packages agent skill provides documented workflows prerequisites triggers and safety guidance from its SKILL md source Agents load it when user requests match the description and follow step by step instructions without inventing capabilities It integrates with standard agent tooling for the tasks inputs outputs and failure modes described in the repository documentation2.2kinstalls6Nx ImportThe nx-import skill helps with Import, merge, or combine repositories into an Nx workspace using nx import. USE WHEN the user asks to adopt Nx across repos, move projects into a monorepo, or bring code/history from another repository. Key workflows include Quick Start; Import Strategy; Directory Conventions; Application vs Library Detection. Documented capabilities cover `nx import` brings code from a source repository or folder into the current workspace, preserving commit history.; After nx `22.6.0`, `nx import` responds with .ndjson outputs and follow-up questions. For earlier versions, always run with `--no-interactive` and specify all flags directly.; Run `nx import --help` for available options.; Make sure the destination directory is empty before importing.; https://nx.dev/docs/guides/adopting-nx/import-project. Agents should invoke it when users ask about nx import or mention triggers defined in the skill frontmatter. Follow the SKILL.md steps, reference files, and output formats rather than improvising outside documented scope.1.9kinstalls7Monitor CiMonitor CI is an orchestrator skill that watches Nx Cloud CI pipeline status in real time and coordinates self-healing fix application. Developers invoke it when they need to track CI status, apply suggested fixes, or verify fixes locally before pushing. The skill spawns subagents to fetch CI state via MCP tools, runs deterministic decision scripts to classify failures and recommend actions, and handles multi-step flows including local verification, fix application, environment reruns, and throttle management. It prevents races with self-healing by centralizing polling and fix decisions, avoiding native CI provider CLIs that bypass Nx Cloud's automatic repair system.1.6kinstalls

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.

nrwl/nx-ai-agents-config · 7 skills · Skillselion