Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

29 stars

Watchers

0 watching

Forks

Latest commit

 

History

144 Commits

Folders and files

Repository files navigation

Nx Logo

Nx AI Agent Skills

Official AI agent configuration artifacts for Nx. Skills, subagents, and commands that enhance AI coding assistants with Nx-specific capabilities.

Claude Code Cursor GitHub Copilot Gemini OpenCode
License

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, CI optimization, 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 to https://snapshot.nx.app/nx-cloud/mcp. Put it under env in ~/.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 named nx-cloud does 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/mcp adds 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.json of the checkout you load the plugin from.

The server signs you in with OAuth for each host, so authenticate again after switching.

Features

nx-skills-readme.mp4

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

Contributing

See CONTRIBUTING.md.

About

No description, website, or topics provided.

Resources

Contributing

Stars

29 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages