nx CLAUDE.md

nx CLAUDE.md is an instructions file for coding agents from nrwl/nx. It costs 2,245 tokens per session, scanned A, original, MIT.

Repository instructions for contributing to Nx, a toolset for managing monorepos—repositories that contain multiple related projects. They cover documentation work, issue responses, planning, implementation, commands, and validation.

In plain words
What is it for?
Use them when answering questions about the Nx repository, editing its Astro-based documentation, planning code changes, or preparing changes for commit.
Why use it?
They give an agent the project’s expected workflow and help prevent documentation changes that ignore repository structure or required checks.

Instructions file

View the source file nrwl/nx
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/nrwl/nx/claude-md
Clone the repo
git clone --depth 1 https://github.com/nrwl/nx

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nx CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nrwl/nx/claude-md.svg)](https://agentmods.dev/instructions/nrwl/nx/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/nrwl/nx/claude-md"><img src="https://agentmods.dev/badge/instructions/nrwl/nx/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,245 This file is loaded in full into every session.
When invoked 2,245 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02245 $0.02245
Opus 5 $0.01123 $0.01123
Sonnet 5 $0.00449 $0.00449
Haiku 4.5 $0.00225 $0.00225

Measured 5d ago against content hash c6fa1845da64, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nx CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When responding to queries about this repository:

  1. Suggest relevant commands from the "Essential Commands" section when applicable
  2. Highlight Nx's focus on monorepos and its key features like smart task execution, code generation, and project graph analysis
  3. Mention the plugin ecosystem and support for various frameworks when relevant
  4. Emphasize the importance of running the full validation suite before committing changes

Always strive to provide accurate, helpful responses that align with the best practices and workflows described in this file.

Documentation Contributions

When working on Nx documentation, all documentation content lives in the astro-docs/ folder. This is the new Astro-based documentation site built with Starlight.

Important: Before making any documentation changes, read the astro-docs/README.md file for detailed guidance on:

  • Project structure and architecture
  • Content types (regular docs, dynamic plugin docs, CLI docs)
  • Available Markdoc tags for rich content
  • Development workflow and commands
  • Sidebar management

MANDATORY: After editing any file in astro-docs/src/content/, run the check-docs-style skill. No exceptions.

MANDATORY: All documentation content must follow astro-docs/STYLE_GUIDE.md. vale only enforces its mechanical rules, so check the structural and voice rules yourself.

Quick Reference

  • Documentation content: astro-docs/src/content/docs/
  • Use .mdoc (Markdoc) or .mdx format for documentation files
  • Run nx serve astro-docs to start the local dev server
  • Sidebar structure is defined in astro-docs/sidebar.mts

GitHub Issue Response Mode

When responding to GitHub issues, determine your approach based on how the request is phrased:

Plan-First Mode (Default)

Use this approach when users ask you to:

  • "analyze", "investigate", "assess", "review", "examine", or "plan"
  • Or when the request is ambiguous

In this mode:

  1. Provide a detailed analysis of the issue
  2. Create a comprehensive implementation plan
  3. Break down the solution into clear steps
  4. Then please post the plan as a comment on the issue

Read the full file on GitHub · 243 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 243 lines · 2,245 tokens per session scan A c6fa1845da64

Subscribe to this mod's changes

nx CLAUDE.md is an instructions file published in the GitHub repository nrwl/nx (29,301 stars, last pushed today), licensed MIT. It adds 2,245 tokens to every session, about $0.0112 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories