agent-instructions

agent-instructions is a cursor rule for Cursor from louisbrulenaudet/monorepo-template. It costs 0 tokens per session (607 once invoked), scanned A, original, Apache-2.0.

A set of rules for organizing instructions that coding agents read while working in a repository. It explains how files such as CLAUDE.md and AGENTS.md load, where facts belong, and how to avoid repeating them.

In plain words
What is it for?
Use it when adding, moving, or reviewing agent instructions and repository guidance files.
Why use it?
It prevents agents from loading unnecessary context or applying instructions in the wrong part of a project. It also keeps duplicated instruction files from drifting apart.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Good fit Use it when adding, moving, or reviewing agent instructions and repository guidance files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/louisbrulenaudet/monorepo-template/agent-instructions
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.

Clone the repo
git clone --depth 1 https://github.com/louisbrulenaudet/monorepo-template

Made for: Cursor.

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 agent-instructions

README.md
[![agentmods](https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/agent-instructions/github.svg)](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/agent-instructions)
Your own site
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/agent-instructions"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/agent-instructions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-instructions

Your own site · 80×15
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/agent-instructions"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/agent-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00607
Opus 5.5 $0.00000 $0.00243
Sonnet 5.5 $0.00000 $0.00121
Haiku 4.5 $0.00000 $0.00061

Measured 1mo ago against content hash ee8b05de42ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-instructions 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 1mo 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.

.cursor/rules/core/agent-instructions.mdc · 27 lines

How it starts

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

Agent Instructions

How the instruction layers load, and how to edit them without growing context. Long-form layout and sync policy: .agents/skills/monorepo-agent-setup/SKILL.md (a human-only skill: Read it).

Loading (Claude Code, verified)

  • Root CLAUDE.md → @AGENTS.md and every rule without paths load at session start and in every custom subagent. Path-scoped rules and a nested CLAUDE.md → AGENTS.md load when a matching file is Read (subagents included) and then stay loaded. Built-in Explore / Plan skip root CLAUDE.md, AGENTS.md, and the always-on rules; they load nested guides and path-scoped rules only on file access.
  • Markdown links are never followed: a link costs only its text, and the target loads only if an agent Reads it.

Placement

  • One fact, one home: the file that loads at the fact's point of use. Files that load together - same paths, a rule plus the nested AGENTS.md of the directory it covers, anything plus the always-on layer - never restate each other.
  • Always-on (root AGENTS.md, rules without paths): only what almost every task needs. Path-scoped rule: what matters while editing the matching files - pick paths by where the content is used, not by topic. Nested AGENTS.md: the package map and local workflows. Skill: multi-step procedures. README.md: humans.
  • A config file's rationale lives in a rule scoped to that file (knip.mdc, lint-config.mdc), and the config stays comment-free where comments.mdc says so.

Density

  • Imperative bullets, one line each (markdown-style.mdc): the rule, then only the reason a reader would otherwise undo it.
  • Do not restate what the triggering file already shows, what a hook, lint rule, or setting enforces (name the enforcer in one clause when the agent must know), or generic framework knowledge. No diagrams repeating a list, no doc-link lists, no history beyond one clause. Bold only a hard constraint.
  • Remove a requirement only after showing it is stated elsewhere at the same point of use, enforced (hook, lint, settings, CI), or derivable from the file that triggers the rule.

Read the full file on GitHub · 27 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. 1mo ago Changed ee8b05de42ec
  2. 2mo ago First seen · 27 lines · 0 tokens per session scan A be177dbad307

Subscribe to this mod's changes

agent-instructions is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 607 tokens. 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-09-30.

Related

agent-instructions compared with cursor rules from other repositories

agent-instructions next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-instructionslouisbrulenaudet/monorepo-templateCursor rule198d agoApache-2.0A0Cursor
paperfitOpenRaiser/PaperFitCursor rule33726d agoMITA0Cursor
teamJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
chaosJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
resumeJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
git-masterJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor