mx-doctrine

mx-doctrine is a skill for Claude Code, Codex from maxence2997/mx-harness. It costs 72 tokens per session (917 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 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/maxence2997/mx-harness/mx-doctrine
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, 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 mx-doctrine

README.md
[![agentmods](https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-doctrine.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.svg" alt="Measured on agentmods" 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 917 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.00072 $0.00917
Opus 5 $0.00036 $0.00458
Sonnet 5 $0.00014 $0.00183
Haiku 4.5 $0.00007 $0.00092

Measured 5d ago against content hash 02d5590c5bd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 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/.

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:

${CLAUDE_SKILL_DIR}/../mx-doctrine/references/<file>.md

(${CLAUDE_SKILL_DIR} = the directory containing the running SKILL.md; skills install as sibling directories. In harnesses without that substitution, resolve relative to the SKILL.md file you are executing. When briefing a sub-agent, the orchestrator resolves these to absolute paths and puts the resolved paths in the brief — sub-agents must not be asked to re-derive sibling-skill paths.)

Read the full file on GitHub · 85 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. 5d 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 9d ago), licensed MIT. It adds 72 tokens to every session and 917 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

manuscript-typography

Audit academic manuscripts for typographic design conventions: booktabs table style, caption placement, dashes/quotes, units and numbers, cross-reference style, page layout, typographic hierarchy, professional polish. Triggers on: "check typography", "fix formatting", "polish my paper", "check my LaTeX", "typographic…

Mathews-Tom/armory · 107 tokens

manuscript-review

Pre-publication manuscript audit producing a section-level refactoring report with citation hygiene and submission-readiness checks. Triggers on: "review my paper", "check before submission", "is this ready to submit", "pre-pub checklist", "refactor my paper", "check my references", "does the abstract work".

Mathews-Tom/armory · 70 tokens

architecture-diagram

Generate architecture diagrams as fully editable SVG with native AWS, Azure, and GCP icons for cloud diagrams, or hand-drawn generic icons for everything else. Deterministic layout computes zone nesting and orthogonal routing instead of hand-placed coordinates. Triggers on: "architecture diagram", "infra diagram"…

Mathews-Tom/armory · 146 tokens

architecture-reviewer

Architecture reviews across 7 dimensions (structural, scalability, enterprise readiness, performance, security, ops, data) with scored reports. Triggers on: "review architecture", "critique design", "audit system", "assess scalability", "enterprise readiness", "technical due diligence". NOT for diagrams, use…

Mathews-Tom/armory · 71 tokens

concept-to-video

Turn concepts into animated explainer videos using Manim (Python) with MP4/GIF output, audio overlay, multi-scene composition. Triggers on: "create a video", "animate this", "make an explainer", "manim animation", "motion graphic". NOT for React video, use remotion-video.

Mathews-Tom/armory · 70 tokens

figure-rhetoric

Evaluate whether figures and plots in a manuscript effectively communicate the claims they support. Audits chart-type fit, axis design, visual hierarchy, data density, caption interpretation, perceptual accuracy, and narrative arc across 8 dimensions. Triggers on: "do my figures work", "check my plots", "are my graphs…

Mathews-Tom/armory · 123 tokens