mx-doctrine

mx-doctrine is a skill for Claude Code from maxence2997/mx-harness. It costs 72 tokens per session (1,076 once invoked), scanned A, original, MIT.

A shared set of working rules for other mx- skills, covering how to choose and escalate models, delegate work, judge results, verify changes, and maintain the agent harness. An agent harness is the code and configuration that runs and coordinates coding agents.

In plain words
What is it for?
Consult it when dispatching sub-agents, choosing a model tier, writing delegation instructions, handling repeated failures, checking completion, or editing mx-harness files.
Why use it?
It gives related skills a common way to decide when work is complete, when to ask the user, and how to respond after failures. It also helps keep changes to the harness consistent.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Consult it when dispatching sub-agents, choosing a model tier, writing delegation instructions, handling repeated failures, checking completion, or editing mx-harness files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maxence2997/mx-harness/mx-doctrine
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.

Any agent
npx skills add maxence2997/mx-harness --skill mx-doctrine
Clone the repo
git clone --depth 1 https://github.com/maxence2997/mx-harness

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 mx-doctrine

README.md
[![agentmods](https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-doctrine/github.svg)](https://agentmods.dev/skills/maxence2997/mx-harness/mx-doctrine)
Your own site
<a href="https://agentmods.dev/skills/maxence2997/mx-harness/mx-doctrine"><img src="https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-doctrine/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 mx-doctrine

Your own site · 80×15
<a href="https://agentmods.dev/skills/maxence2997/mx-harness/mx-doctrine"><img src="https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-doctrine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,076 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.00072 $0.01076
Opus 5.5 $0.00029 $0.00430
Sonnet 5.5 $0.00014 $0.00215
Haiku 4.5 $0.00007 $0.00108

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

Security

Grade A, and why

mx-doctrine 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 10d 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.

mx-doctrine/SKILL.md · 99 lines

How it starts

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

mx-doctrine

Shared doctrine consumed by the other mx-* skills. This SKILL.md is a router; the content lives in references/.

Auto-update

Unless another mx-* skill invoked this one, run bash "$HOME/.mx/.mx-harness-install.sh" --auto-update before anything else, if that file exists. It always exits 0 and prints nothing when there is no news. Show the user anything it prints. If the output starts with mx-harness updated, re-read this SKILL.md. Then continue with the skill; do not run the command again during this skill run, even if it reported a failure.

Trigger

/mx-doctrine              ← summarize what doctrine exists and when each applies
/mx-doctrine <topic>      ← read the matching reference file and apply/answer

Other mx-* skills reference these files directly at the moments they matter — you rarely need to invoke this skill explicitly.

The files

Read this When
references/model-dispatch.md Before spawning any sub-agent; when choosing a model tier; when a subtask keeps failing (escalation ladder §6); to check what your harness supports (§0/§1)
references/judgment-rubrics.md Before declaring work done (§2); before interrupting the user with a question (§3); after 2 failed attempts (§1); when a fix requires weakening a gate (§4); when a taste call has no right answer (§6)
references/delegation-templates.md When writing any sub-agent prompt — search, implement, refactor, research, review, read-back
references/maintenance.md Before editing ANY mx-harness file (repo or installed copy)
references/diagnosis.md To understand why the suite is structured this way; when re-auditing for bloat (procedure at the bottom of that file)

On /mx-doctrine <topic>: pick the file(s) whose row above matches the topic, read them, and answer or apply. On bare /mx-doctrine: print the table above plus a 3-line summary of each file.

How mx-* skills reference these files

From another skill's SKILL.md, the path convention is:

Read the full file on GitHub · 99 lines

Files

What ships with it

6 files 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. 10d ago Changed · +9 lines 23026d9e2ee8
  2. 2mo ago Changed aecee0a9bcf8
  3. 2mo ago Changed · +5 lines 5d8843654f73
  4. 3mo ago First seen · 85 lines · 72 tokens per session scan A 02d5590c5bd4

Subscribe to this mod's changes

mx-doctrine is a skill published in the GitHub repository maxence2997/mx-harness (5 stars, last pushed 10d ago), licensed MIT. It adds 72 tokens to every session and 1,076 once invoked, about $0.0003 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

mx-doctrine compared with skills from other repositories

mx-doctrine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mx-doctrinemaxence2997/mx-harnessSkill510d agoMITA72Claude Code
package-evaluatorMathews-Tom/armorySkill3478d agoMITA51Claude Code
code-refinerMathews-Tom/armorySkill3478d agoMITA91Claude Code
codebase-advisorMathews-Tom/armorySkill3478d agoMITA131Claude Code
pr-reviewMathews-Tom/armorySkill3478d agoMITA69Claude Code
seo-auditserejaris/personal-corp-osSkill251todayMITA82Claude Code
devils-advocateMathews-Tom/armorySkill3478d agoMITA67Claude Code