primitives nx.instructions.md

Nx workspace guidance for projects using Nx 20.6.4 and pnpm. Nx is a tool for organizing projects and shared tasks in a code workspace.

In plain words
What is it for?
Use it to inspect the workspace, understand project dependencies, investigate configuration errors, visualize task relationships, and choose code generators.
Why use it?
It helps answer workspace and configuration questions using the actual project structure and current Nx documentation instead of assumptions.

Instructions file for GitHub Copilot

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/radix-ng/primitives/nx
Clone the repo
git clone --depth 1 https://github.com/radix-ng/primitives

Made for: GitHub Copilot.

Per session 409 This file is loaded in full into every session.
When invoked 409 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.00409 $0.00409
Opus 5 $0.00204 $0.00204
Sonnet 5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

primitives nx.instructions.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 3d 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.

.github/instructions/nx.instructions.md · 32 lines

What it actually says

// This file is automatically generated by Nx Console

You are in an nx workspace using Nx 20.6.4 and pnpm as the package manager.

You have access to the Nx MCP server and the tools it provides. Use them. Follow these guidelines in order to best help the user:

General Guidelines

  • When answering questions, use the nx_workspace tool first to gain an understanding of the workspace architecture
  • For questions around nx configuration, best practices or if you're unsure, use the nx_docs tool to get relevant, up-to-date docs!! Always use this instead of assuming things about nx configuration
  • If the user needs help with an Nx configuration or project graph error, use the 'nx_workspace' tool to get any errors
  • To help answer questions about the workspace structure or simply help with demonstrating how tasks depend on each other, use the 'nx_visualize_graph' tool

Generation Guidelines

If the user wants to generate something, use the following flow:

  • learn about the nx workspace and any specifics the user needs by using the 'nx_workspace' tool and the 'nx_project_details' tool if applicable
  • get the available generators using the 'nx_generators' tool
  • decide which generator to use. If no generators seem relevant, check the 'nx_available_plugins' tool to see if the user could install a plugin to help them
  • get generator details using the 'nx_generator_schema' tool
  • you may use the 'nx_docs' tool to learn more about a specific generator or technology if you're unsure
  • decide which options to provide in order to best complete the user's request. Don't make any assumptions and keep the options minimalistic
  • open the generator UI using the 'nx_open_generate_ui' tool
  • wait for the user to finish the generator
  • read the generator log file using the 'nx_read_generator_log' tool
  • use the information provided in the log file to answer the user's question or continue with what they were doing
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. 3d ago First seen · 32 lines · 409 tokens per session scan A a04e006cf5df

Subscribe to this mod's changes

primitives nx.instructions.md is an instructions file published in the GitHub repository radix-ng/primitives (269 stars, last pushed 8d ago), licensed MIT. It adds 409 tokens to every session, about $0.0020 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

core-web copilot-instructions.md

Copilot instructions for db-ux-design-system/core-web: All development instructions, build commands, validation steps, coding rules, and the pull request workflow are maintained in AGENTS.md at the repository root. Read that file first before starting any task.

db-ux-design-system/core-web · 90 tokens

core-web AGENTS.md

AGENTS.md instructions for db-ux-design-system/core-web, covering db ux design system v3 core web, working effectively, required prerequisites, bootstrap and setup and build and test.

db-ux-design-system/core-web · 6,996 tokens

ark CLAUDE.md

Claude Code instructions for chakra-ui/ark, covering ark ui - claude development guide, documentation structure, quick start, common commands and install dependencies.

chakra-ui/ark · 647 tokens

fundamental-ngx AGENTS.md

Instructions for SAP/fundamental-ngx, covering angular 22+ development guidelines, persona, quick reference, essential commands and build/lint/test specific library.

SAP/fundamental-ngx · 3,066 tokens

fundamental-ngx CLAUDE.md

Instructions for SAP/fundamental-ngx, covering fundamental ngx, architecture, commands, build / lint / test a library and affected only (prefer this for validation).

SAP/fundamental-ngx · 2,765 tokens

openbridge-webcomponents watch-radial-instruments.instructions.md

Instructions for Ocean-Industries-Concept-Lab/openbridge-webcomponents, covering watch & radial instruments, architecture overview, key principle: logic in watch.ts, instruments stay thin, shared sibling modules and layering & stacking pattern.

Ocean-Industries-Concept-Lab/openbridge-webcomponents · 10,138 tokens