mastermind-style-deep

mastermind-style-deep is a skill for Claude Code, Codex from xcrft/mastermind. It costs 107 tokens per session (1,554 once invoked), scanned A, original, MIT.

A qualitative writing guide for describing how a developer actually designs, structures, comments on, tests, and optimises code, including their commit-message style. It adds human-readable observations to measurements such as indentation and line length.

In plain words
What is it for?
Use it to write or enrich a project’s style profile when another developer or coding agent needs to produce code that matches the author’s established way of working.
Why use it?
A tool can count formatting patterns but cannot reliably explain design habits or engineering preferences. This produces a grounded profile based on evidence from the code.

Skill for Claude CodeCodex

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 skills/xcrft/mastermind/mastermind-style-deep
Any agent
npx skills add xcrft/mastermind --skill mastermind-style-deep
Clone the repo
git clone --depth 1 https://github.com/xcrft/mastermind

Made for: Claude Code, Codex.

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-style-deep

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-style-deep.svg)](https://agentmods.dev/skills/xcrft/mastermind/mastermind-style-deep)
Your own site
<a href="https://agentmods.dev/skills/xcrft/mastermind/mastermind-style-deep"><img src="https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-style-deep.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,554 The whole file, excluding the scripts and references it only reads on demand.
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.00107 $0.01554
Opus 5 $0.00053 $0.00777
Sonnet 5 $0.00021 $0.00311
Haiku 4.5 $0.00011 $0.00155

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

Security

Grade A, and why

mastermind-style-deep 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 4d 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.

skills/workflow/mastermind-style-deep/SKILL.md · 89 lines

How it starts

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

Mastermind — deep style portrait

mastermind miner profile records corpus-level lexical observations (indentation, quotes, braces, line length). Those are diagnostic evidence because formatter, language mix, and repository policy often explain them better than personal taste; do not apply them directly as coding rules. This skill writes the part that matters: a grounded portrait of how the author develops. The binary gathers evidence; you (the agent, already running a model) read code and write the portrait. No separate claude -p process or authentication.

When to use

  • The user wants a real "write like me" profile, not formatter-config rules.
  • The user says "deep style", "design patterns", "qualitative profile", "make it richer".
  • After mastermind miner profile, to add the section the deterministic core can't.

What you're producing

A portrait of how this person works — the kind a senior writes after reading someone's PRs for a month. Organized by the dimensions below, every claim tied to a concrete tell. Prose per dimension, not a list of isolated counts — the measured static rules already live in the section above this one.

Gather evidence — quantitative AND qualitative

Don't just grep. A portrait needs both numbers and read code:

  1. Counts with their contrast. Any "prefers X over Y" needs BOTH counted — early-return/let-else vs nesting depth; iterator chains vs for loops; typed errors vs Box<dyn Error>; table-driven tests vs one-assertion-per-fn. A bare count of X is not evidence of a preference.
  2. Read 4–6 real files. A core module (design), a hot path (optimization), a public API (ergonomics), a test file (test style), a recent diff. Greps can't see why or what they watch for — reading can.
  3. Commits. Reuse the author identity selected by mastermind miner profile when available. Otherwise inspect git shortlog -sne --all and confirm the identity from local evidence; do not assume git config user.name matches the author being profiled. Read up to 100 matching subjects and a few bodies.
  4. Enforcing config FIRST. rustfmt.toml / .eslintrc / pyproject lint config, #![deny(...)] / #![warn(...)], clippy.toml, CI lint steps. Anything a formatter or linter forces is not personal style — exclude it, or mark it "enforced". Do not credit a /// on every fn as a habit if #![deny(missing_docs)] mandates it.
  5. Optimization signals. Benchmarks (criterion / #[bench] / *.bench.*), #[inline], with_capacity, caching/memoization, tracing/profiling spans, comments mentioning perf. Their presence — or absence — tells you whether they optimize and whether it's measured or by feel.
  6. Observability & safety signals. Logging/tracing/metrics density, assertions, input validation, #[must_use], where error boundaries sit.

Read the full file on GitHub · 89 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 89 lines · 107 tokens per session scan A e5428dc0643e

Subscribe to this mod's changes

mastermind-style-deep is a skill published in the GitHub repository xcrft/mastermind (11 stars, last pushed 4d ago), licensed MIT. It adds 107 tokens to every session and 1,554 once invoked, about $0.0005 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 skills, from other repositories

roam

Codebase comprehension via roam-code CLI. Use when exploring codebases, planning modifications, debugging failures, assessing PR risk, or checking architecture health. Triggers on: understanding project structure, pre-change safety checks, finding symbols/files, blast radius analysis, affected tests, health scoring…

Cranot/roam-code · 86 tokens

orchestrate

Tree-aware multi-agent GitHub-issue pool. Conductor manages task-tree from task-splitting-evaluation, executing depth-first per branch while parallelizing roots/orphans. Each worker agent owns its subtree lifecycle. Conductor tracks state (pending/started/in-progress/completed/halted) in GitHub +…

MercurieVV/ScalaSemantic · 101 tokens

bonsai-ninja

Use bonsai-ninja as compiler-backed structural evidence when mapping a codebase, finding symbols, tracing behavior, inspecting dataflow, debugging across files, reviewing change impact, exporting graph facts, or running SAST.

gromhacks/bonsai-ninja · 48 tokens

task-splitting-evaluation

Recursive pre-implementation GitHub task splitting and evaluation flow. Use when the user wants Claude agents to evaluate unhandled tasks, skip already-processed tasks, mark easy leaves with detailed executor-ready comments, split broad tasks into GitHub subtasks, and keep recursing until every leaf is well described…

MercurieVV/ScalaSemantic · 73 tokens

gh-task

Run a GitHub issue end-to-end in this repository using the committed isolated-worktree workflow. Use when the user invokes $gh-task, asks to run a GitHub task, or provides a GitHub issue number.

MercurieVV/ScalaSemantic · 47 tokens

stacklit-navigator

Use stacklit.json to navigate codebases without burning tokens on file exploration.

glincker/stacklit · 19 tokens