From the README
How to use nx-ai-agents-config
Nx AI Agent Skills
Official AI agent configuration artifacts for Nx. Skills, subagents, and commands that enhance AI coding assistants with Nx-specific capabilities.
Installation · Features · Contributing
Getting Started
The easiest way to add these AI agent configurations to your Nx workspace is by running:
nx configure-ai-agents
This will set up the appropriate configuration files for your preferred AI tools.
Preview: the nx and nx-cloud plugins
plugins/ holds two plugins that work across coding agents without any per-agent build: nx (workspace skills and the nx MCP server) and nx-cloud (CI monitoring, CI failure review, cache investigation, the Nx Cloud API, and the hosted Nx Cloud MCP server). They are not yet what nx configure-ai-agents installs.
Claude Code: the marketplace is a single file, so add it by URL and enable the plugins in .claude/settings.json. Disable the current nx@nx-claude-plugins plugin in the same file, since both are named nx:
{
"extraKnownMarketplaces": {
"nx-plugins": {
"source": {
"source": "url",
"url": "https://raw.githubusercontent.com/nrwl/nx-ai-agents-config/main/plugins/.claude-plugin/marketplace.json"
}
}
},
"enabledPlugins": {
"nx@nx-plugins": true,
"nx-cloud@nx-plugins": true,
"nx@nx-claude-plugins": false
}
}
Or for yourself only: claude plugin marketplace add https://raw.githubusercontent.com/nrwl/nx-ai-agents-config/main/plugins/.claude-plugin/marketplace.json, then claude plugin install nx@nx-plugins and claude plugin install nx-cloud@nx-plugins.
Codex: add the marketplace once, then install or enable the plugins:
codex plugin marketplace add nrwl/nx-ai-agents-config
codex plugin add nx@nx-plugins
codex plugin add nx-cloud@nx-plugins
A repository can enable them for everyone who has added the marketplace in .codex/config.toml. Codex starts plugin MCP servers outside the workspace, so the repository also declares the nx MCP server there, which takes precedence over the plugin's copy (nx configure-ai-agents already writes this entry):
[plugins."nx@nx-plugins"]
enabled = true
[plugins."nx-cloud@nx-plugins"]
enabled = true
[mcp_servers.nx-mcp]
command = "npx"
args = ["nx-mcp@latest", "--minimal"]
Cursor: load the plugins from a checkout of this repository with cursor-agent --plugin-dir <checkout>/plugins/nx --plugin-dir <checkout>/plugins/nx-cloud.
Pointing the Nx Cloud MCP server at another host
The nx-cloud plugin connects to https://cloud.nx.app/nx-cloud/mcp. To use another Nx Cloud host, such as a single-tenant instance or a local server, give the agent that host's /nx-cloud/mcp URL:
Claude Code: set
NX_CLOUD_MCP_URL, for example tohttps://snapshot.nx.app/nx-cloud/mcp. Put it underenvin~/.claude/settings.json(every project), the workspace's.claude/settings.json(everyone in the workspace) or.claude/settings.local.json(you, in this workspace), or export it in the shell that starts Claude Code. Declaring another server namednx-clouddoes not work: Claude Code runs it next to the plugin's server instead of replacing it.Codex: declare a server with the plugin's name. It replaces the plugin's server.
codex mcp add nx-cloud --url https://snapshot.nx.app/nx-cloud/mcpadds it to~/.codex/config.toml; for one workspace, add it to the workspace's.codex/config.toml, which Codex reads once the project is trusted:[mcp_servers.nx-cloud] url = "https://snapshot.nx.app/nx-cloud/mcp"Cursor: change the URL in
plugins/nx-cloud/mcp.jsonof the checkout you load the plugin from.
The server signs you in with OAuth for each host, so authenticate again after switching.
Features
https://github.com/user-attachments/assets/edd45819-e955-4ba7-adba-8255f4174da6
Nx AI agent skills teach your coding assistant how to work effectively in your monorepo. Key capabilities:
- CI Monitoring & Self-Healing: Watches CI pipelines, detects failures, and applies fixes automatically
- Workspace Understanding: Agents explore your project graph, dependencies, and conventions before acting
- Intelligent Code Generation: Scaffolds new code following your workspace's existing patterns, tags, and tooling
- Monorepo-Aware Skills: A series of skills that help your agent navigate, build, and operate more efficiently in monorepo setups
- Multi-Agent Support: Works across Claude Code, GitHub Copilot, Cursor, Gemini, and OpenCode
Read more on the Nx blog.
Learn More
- nx-mcp - The Nx MCP server that powers AI agent integrations
- Nx Console - The repository where nx-mcp and these configurations are maintained
- Teach Your AI Agent How to Work in a Monorepo - Intro blog post for this project
- Why We Deleted (Most of) Our MCP Tools - Why skills over MCP tools
- Introducing Self-Healing CI - AI agents that automatically fix CI failures
- Autonomous Agents at Scale - How monorepo architecture enables autonomous AI agents
Contributing
See CONTRIBUTING.md.
Questions
What is nrwl/nx-ai-agents-config?
nrwl/nx-ai-agents-config is a collection of 40 agent skills by nrwl.
How do I install nx-ai-agents-config?
Run "npx skills add nrwl/nx-ai-agents-config" and choose the skills you want. Many packs also document their own install path (for example a Claude Code plugin marketplace) in the README below.
How many skills are in nx-ai-agents-config?
40 SKILL.md skills. Alyn lists 10 of them with their own pages.