AI-Rig CLAUDE.md

AI-Rig CLAUDE.md is an instructions file for coding agents from Borda/AI-Rig. It costs 2,000 tokens per session, scanned A, original, Apache-2.0.

Project instructions for an AI coding agent. They define how rules are layered, where edits may be made, and how formatting, tests, and Markdown should be handled.

In plain words
What is it for?
Keeping agent guidance consistent across instruction files, enforcing project-local edit boundaries, and following the required linting, formatting, testing, and documentation workflow.
Why use it?
They prevent conflicting instructions, accidental edits outside the project, and incomplete policy updates.

Instructions file

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/borda/ai-rig/claude-md
Clone the repo
git clone --depth 1 https://github.com/Borda/AI-Rig

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 AI-Rig CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/borda/ai-rig/claude-md.svg)](https://agentmods.dev/instructions/borda/ai-rig/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/borda/ai-rig/claude-md"><img src="https://agentmods.dev/badge/instructions/borda/ai-rig/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,000 This file is loaded in full into every session.
When invoked 2,000 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.1 $0.02000 $0.02000
Opus 5 $0.01000 $0.01000
Sonnet 5 $0.00400 $0.00400
Haiku 4.5 $0.00200 $0.00200

Measured 2d ago against content hash ae0990d72846, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

AI-Rig 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 2d 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 · 120 lines

How it starts

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

  • Any policy change in one listed instruction file must trigger a relevance review of every other listed file before completion.
  • Synchronize applicable shared policy in either direction.
  • Preserve intentional agent-specific differences.
  • Record when no counterpart change is needed.

Instruction Layering

Repository-wide policy belongs in this top-level file. Lower-scope instruction files inherit it and must add only narrower rules or explicit exceptions, never repeat the same policy.

When a top-level policy changes, review lower layers for conflicts or obsolete duplication rather than copying the new text into them.

Edit Scope — Hard Constraint

ALL edits must stay within this project directory. Never directly edit ~/.claude/ or $CODEX_HOME (cache, settings, hooks, or any file under the user home).

Permitted edit roots (project-local):

  • .claude/settings.json, .claude/settings.local.json — project Claude config
  • .codex/ — project Codex config, skills, session policy (mirrored to $CODEX_HOME by Makefile, never edited there)
  • plugins/*/{agents,skills,rules,hooks,bin}/ — plugin source

Propagation to live cache at ~/.claude/plugins/cache/:

  • Makefile installs from the pushed GitHub remote, not local working tree — commit and push first, then make sync-claude
  • Never run make sync-*/make clear-* against uncommitted/unpushed changes — cache will not reflect them
  • Never suggest or initiate propagation mid-workflow
  • Applies to all skills — no skill auto-syncs

Lint/Format — Use pre-commit Hooks, Not Direct Tools

Repo pins lint/format tools via .pre-commit-config.yaml (ruff, eslint, mdformat, prettier, codespell, etc). Never invoke these tools directly (ruff check, ruff format, eslint, mdformat, ...) — version/config drift vs CI.

Invoke the specific hook instead:

pre-commit run <hook-id> --files <path>   # single hook, targeted files
pre-commit run --all-files                # full sweep
pre-commit run <hook-id> --all-files      # single hook, repo-wide

Read the full file on GitHub · 120 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. 2d ago Changed · +4 lines · +48 tokens per session ae0990d72846
  2. 5d ago First seen · 116 lines · 1,952 tokens per session scan A 838cdfeddb4e

Subscribe to this mod's changes

AI-Rig CLAUDE.md is an instructions file published in the GitHub repository Borda/AI-Rig (26 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,000 tokens to every session, about $0.0100 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

Claude-Code-Agent-Monitor CLAUDE.md

Claude Code instructions for hoangsonww/Claude-Code-Agent-Monitor, covering claude code working guide, project mission, repo map, non-negotiable engineering rules and commands you should know.

hoangsonww/Claude-Code-Agent-Monitor · 1,101 tokens

Claude-Code-Agent-Monitor AGENTS.md

AGENTS.md instructions for hoangsonww/Claude-Code-Agent-Monitor, covering codex project instructions, project intent, priorities, where to work and validation expectations.

hoangsonww/Claude-Code-Agent-Monitor · 653 tokens

skills AGENTS.md

AGENTS.md instructions for huangwb8/skills, covering skills - 项目指令, 目录结构与边界, python 与工具运行产物归档, ai 任务中间文件与 skill 协作工作区 and 任务根目录与生命周期.

huangwb8/skills · 10,019 tokens

claude CLAUDE.md

Claude Code instructions for Caseous-kerrcell366/claude, covering @aiai-go/claude — project handbook, project identity, brand rules, tech stack and architecture.

Caseous-kerrcell366/claude · 2,335 tokens

.agents AGENTS.md

AGENTS.md instructions for Weaverse/.agents, covering agent guidelines for .agents, repository structure, build, lint & test commands, validation commands and validate json configuration.

Weaverse/.agents · 1,558 tokens

init-claude-md CLAUDE.md

Claude Code instructions for LetheChen/init-claude-md, covering agents.md, session maintenance protocol, core rules (from karpathy), language and project conventions.

LetheChen/init-claude-md · 932 tokens