mx-flow

A guided development workflow that takes a new feature from an idea through planning, coding, testing, review, verification, and a pull request. It requires approval of the specification before continuing.

In plain words
What is it for?
Use it to start a substantial feature or change from scratch, including creating a separate Git worktree and running the required tests and reviews. Use its finish command for cleanup after merging.
Why use it?
It keeps the work in a defined order and prevents production code from being written before a failing test exists. It also checks the change before proposing it for review.

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-flow
Any agent
npx skills add maxence2997/mx-harness --skill mx-flow
Clone the repo
git clone --depth 1 https://github.com/maxence2997/mx-harness

Made for: Claude Code, Codex.

Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,566 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.00078 $0.08566
Opus 5 $0.00039 $0.04283
Sonnet 5 $0.00016 $0.01713
Haiku 4.5 $0.00008 $0.00857

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

Security

Grade A, and why

mx-flow 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.

mx-flow/SKILL.md · 924 lines

How it starts

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

mx-flow

Trigger

/mx-flow <topic>          ← full pipeline: idea to PR
/mx-flow finish <name>    ← post-merge cleanup (read references/finish.md and follow it)

Non-negotiables

Violating any of these is a workflow failure. They bind every phase and every sub-agent this skill dispatches.

  1. Worktree before any code edit — before making any code change, verify the working directory is a git worktree (git rev-parse --git-dir contains worktrees/). If not, STOP and run Phase 4 first.
  2. Iron Law — no production code without a failing test first. Code written before its test exists must be deleted and reimplemented after the test is in place. No exceptions.
  3. Never weaken a gate to get green — no --no-verify, no lint suppressions to silence a finding, no deleting/skipping a failing test, no rewriting a RED test to match broken behavior, no relaxed assertions, no widened timeouts. A gate fighting you is a design signal: apply the wrong-direction rubric (doctrine below) — change approach or ask.
  4. Review before verify — do not enter Phase 6 unless mx-team-review and mx-review-triage have run on the current branch diff at least once in this session. If unsure, check for a review report in .mx/<name>/tmp/.
  5. Retry budget — the same task failing verification twice (regardless of approach) → stop retrying. In a harness with sub-agents, escalate to the strongest tier with the full failure trail (what was tried, exact diffs, exact errors); otherwise present that trail to the user with concrete options. Never a third identical attempt. (Small-tier/haiku workers get only ONE attempt before escalating — counting rule: mx-doctrine model-dispatch §6.)

Gates

mx-flow pauses at one human gate (spec approval). All other gates auto-proceed — reports are still shown for visibility. Gates are review opportunities, not "y/n continue" prompts.

Gate Behaviour
GATE 1 — Spec Human. Show the draft spec; discuss and adjust until the user explicitly confirms. Do not proceed without approval. With the approval, also collect the Phase 5a execution mode (inline / delegated) — one extra question, same gate.
GATE 2 — Task list Auto. Show the task list for visibility, then proceed immediately.
GATE 3 — Triage Auto. Show the triage report, auto-approve all "fix" items, execute immediately.
GATE 4 — PR Auto. Draft and publish the PR autonomously; show the draft for visibility. Pause only if the agent cannot determine how to proceed (no remote, ambiguous platform, missing credentials).

Read the full file on GitHub · 924 lines

Files

What ships with it

2 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. 2d ago First seen · 924 lines · 78 tokens per session scan A 461699313944

Subscribe to this mod's changes

mx-flow is a skill published in the GitHub repository maxence2997/mx-harness (5 stars, last pushed 6d ago), licensed MIT. It adds 78 tokens to every session and 8,566 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

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

linkedin-post-style

Writes LinkedIn posts in a direct, analytical, dry-humored technical voice with visual companion guidance. Triggers on: "write this in my style", "draft a post", "rewrite this for LinkedIn", "post about this", "how should I phrase this".

Mathews-Tom/armory · 60 tokens

manuscript-provenance

Computational provenance audit verifying every number, table, and figure in a manuscript derives from code, not manual entry. Triggers on: "check provenance", "verify reproducibility", "audit my pipeline", "are my numbers from code", "provenance audit". Companion to manuscript-review (prose audit).

Mathews-Tom/armory · 70 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