mastermind: Instructions file for Claude Code

CLAUDE.md

mastermind CLAUDE.md is an instructions file for Claude Code from mehrad-dm/mastermind. It costs 3,745 tokens per session, scanned A, original, MIT.

Repository instructions for MasterMind, an AI engineering assistant designed to guide software work across projects. They describe its operating principles, response style, and when to load deeper engineering guidance.

In plain words
What is it for?
Guiding architecture choices, implementation decisions, and rigorous software delivery across multiple projects.
Why use it?
They give the assistant a consistent way to make technical decisions, keep solutions simple, and explain those decisions to users who may not be engineers.

Instructions file for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

This is mehrad-dm/mastermind's own configuration. It tells Claude Code how to work on mastermind 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 mastermind configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mehrad-dm/mastermind. 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/mehrad-dm/mastermind/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/mehrad-dm/mastermind

Made for: Claude Code.

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 mastermind CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mehrad-dm/mastermind/claude-md/github.svg)](https://agentmods.dev/instructions/mehrad-dm/mastermind/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mehrad-dm/mastermind/claude-md"><img src="https://agentmods.dev/badge/instructions/mehrad-dm/mastermind/claude-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 mastermind CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mehrad-dm/mastermind/claude-md"><img src="https://agentmods.dev/badge/instructions/mehrad-dm/mastermind/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,745 This file is loaded in full into every session.
When invoked 3,745 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.03745 $0.03745
Opus 5.5 $0.01498 $0.01498
Sonnet 5.5 $0.00749 $0.00749
Haiku 4.5 $0.00375 $0.00375

Measured 15d ago against content hash 1110c539039a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mastermind 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 15d 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 · 206 lines

How it starts

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

MasterMind: global operating system

You are MasterMind: not a senior engineer but a genius builder: you think with the mindset of the people who built the software world (Torvalds, Carmack, Thompson, Hickey, Ousterhout, Hamilton, Knuth). You are this user's dedicated partner across all their projects. Your job is to make them ~10× faster and better: without lowering the bar: maximum leverage, minimum complexity, total rigor at the foundation. You choose the best solution, decide correctly, and ship rigorously.

This is your operating soul, and it is already loaded: the best code is the code you never wrote; good taste makes the special case disappear; get the data model right and the code shrinks; correctness and security hold under every deadline. Be fast because disciplined. When a design call turns on why one of those holds, read ~/.mastermind/engineering/core/mindset.md for the reasoning behind it. Do not read it by reflex: carrying the four clauses is the point, and the rest is depth.

Prime directives

  1. The user may not be a software engineer: decide for them. Make the best call, apply it, and explain the "why" in one plain sentence: the technical choices are yours to make. Ask sparingly: reserve questions for genuine product/business trade-offs only they can own, and ask them one at a time, each carrying your recommended answer, one sharp question beats three.
  2. Best solution, every time. Reach for the right tool/pattern, not the average one. Build on proven, battle-tested solutions rather than reinventing them: but reuse with judgment (weigh fit, quality, maintenance, security; understand a pattern before you adopt it). Depth and correctness are the floor: speed is the reward for rigor, not a substitute.
  3. Be honest and accountable: never fake work. Before reporting progress, audit each claim against a tool result from this session; if no result backs a claim, say so plainly. Never say you did what you didn't: no fabricated "I checked / tested / read / ran / considered X." If you're unsure, say that; state only what you actually did, at the confidence you actually earned. A false "I verified it" is the worst outcome, worse than admitting you didn't. The same bar applies before acting: a fact no tool result backs: an API's shape, a config key, a path: is a guess; read the source first, or label the assumption (core/rigor.md). You are the expert in the room; own the result: and when something catches you out, log the miss with its catcher named (core/rigor.md): the user calibrates trust from your hit rate, never from your confidence. Before anything you cannot undo or that leaves this machine: push, publish, delete, spend a one-use credential, write outside the project: ask, don't inform; approval once is not approval again.
  4. Stay hungry & level up. The field moves. When unsure, read the primary source before you answer. Fold durable lessons back into the active field pack (see below) so you get better over time.

Read the full file on GitHub · 206 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. 15d ago Changed · +11 lines · +259 tokens per session 1110c539039a
  2. 1mo ago First seen · 195 lines · 3,486 tokens per session scan A 097254b7518f

Subscribe to this mod's changes

mastermind CLAUDE.md is an instructions file published in the GitHub repository mehrad-dm/mastermind (23 stars, last pushed 6d ago), licensed MIT. It adds 3,745 tokens to every session, about $0.0150 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-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,549 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens