cursorrules: Instructions file for Claude Code

AGENTS.md

cursorrules AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from usrrname/cursorrules. It costs 2,493 tokens per session, scanned A, original, ISC.

A reference file for configuring AI coding agents in Cursor and Claude Code. It lists where to put rules, commands, skills, settings, hooks, and other configuration files.

In plain words
What is it for?
Use it to discover available agent configurations and locate project settings for Cursor or Claude Code.
Why use it?
It helps developers find and organize the files that control how their coding agents behave.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PostToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is usrrname/cursorrules's own configuration. It tells Claude Code, Codex and OpenCode how to work on cursorrules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cursorrules configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to usrrname/cursorrules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/usrrname/cursorrules/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/usrrname/cursorrules

Made for: Claude Code, Codex, OpenCode.

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 cursorrules AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/usrrname/cursorrules/agents-md/github.svg)](https://agentmods.dev/instructions/usrrname/cursorrules/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/usrrname/cursorrules/agents-md"><img src="https://agentmods.dev/badge/instructions/usrrname/cursorrules/agents-md/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 cursorrules AGENTS.md

Your own site ยท 80ร—15
<a href="https://agentmods.dev/instructions/usrrname/cursorrules/agents-md"><img src="https://agentmods.dev/badge/instructions/usrrname/cursorrules/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,493 This file is loaded in full into every session.
When invoked 2,493 The same file โ€” it is already loaded in full.
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.02493 $0.02493
Opus 5.5 $0.00997 $0.00997
Sonnet 5.5 $0.00499 $0.00499
Haiku 4.5 $0.00249 $0.00249

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

Security

Grade A, and why

cursorrules AGENTS.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 2mo 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.

AGENTS.md ยท 159 lines

How it starts

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

AGENTS.md - AI Agent Configuration Registry

This file serves as a discoverability layer for AI agent configurations, rules, and commands across both Cursor and Claude Code environments.

๐Ÿ“ Configuration Locations

Cursor IDE

  • Rules: .cursor/rules/**/*.mdc
  • Agents: .cursor/modes.json
  • Commands: .cursor/commands.json + .cursor/commands/*.md
  • Skills: .cursor/skills/**/SKILL.md
  • MCP: .cursor/mcp.json
  • Ignore: .cursorignore

Claude Code

  • Rules: .claude/rules/**/*.md
  • Settings: .claude/settings.json (agents, permissions, hooks, MCP)
  • Commands: .claude/commands/*.md
  • Skills: .claude/skills/ (or embedded in CLAUDE.md)
  • Hooks: .claude/hooks/ (scripts) + settings.json hooks section
  • Ignore: .claudeignore

๐Ÿค– Available Agents

Agent IDE Description File
BasicBitch Cursor Reliable, corporate developer .cursor/modes.json
BasicBitch Claude Reliable, corporate developer .claude/settings.json
Spellchuck Cursor Documentation/grammar specialist .cursor/modes.json
Spellchuck Claude Documentation/grammar specialist .claude/settings.json
Godmode Cursor DevOps/Infrastructure expert .cursor/modes.json
Godmode Claude DevOps/Infrastructure expert .claude/settings.json
SageDaddy Cursor Software architect (20 years) .cursor/modes.json
SageDaddy Claude Software architect (20 years) .claude/settings.json

๐Ÿ“œ Rules Index

Core Rules

Rule Cursor Claude Purpose
create-rule-agent .cursor/rules/core/create-rule-agent.mdc .claude/rules/core/create-rule-agent.md Rule creation standards
create-update-agent .cursor/rules/core/create-update-agent.mdc .claude/rules/core/create-update-agent.md Agent management
security-scan .cursor/rules/core/security-scan-agent.mdc .claude/rules/core/security-scan-agent.md Dependency security
agent-communication .cursor/rules/core/agent-communication-always.mdc .claude/rules/core/agent-communication-always.md Communication style
dependency-analysis .cursor/rules/core/dependency-analysis-agent.mdc .claude/rules/core/dependency-analysis-agent.md Pre-install checks

Read the full file on GitHub ยท 159 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. 2mo ago First seen ยท 159 lines ยท 2,493 tokens per session scan A ad8331eae6d4

Subscribe to this mod's changes

cursorrules AGENTS.md is an instructions file published in the GitHub repository usrrname/cursorrules (11 stars, last pushed 7mo ago), licensed ISC. It adds 2,493 tokens to every session, about $0.0100 per session on Opus 5.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-31.

Related

cursorrules AGENTS.md compared with instructions from other repositories

cursorrules AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrules AGENTS.mdusrrname/cursorrulesInstructions file117mo agoISCA2,493Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode