Getting Started
mx-workflow is the review-grade quality layer for AI-generated code for Claude Code. Generating code is table stakes; mx-workflow is the layer that interrogates it — pushing back on hallucinated APIs, silent failures, suppressed errors, and type rot before they ship. Eight review-grade agents do the interrogating, backed by a full dev-lifecycle toolkit (planning, implementation, conventional commits, PRs, and multi-agent builds) underneath.
Prerequisites
Section titled “Prerequisites”Before installing mx-workflow, make sure you have:
- Claude Code CLI installed and working
- git configured with SSH or HTTPS access to your repositories
Installation
Section titled “Installation”There are three ways to install mx-workflow. Choose the one that fits your setup.
Option A: Marketplace install (recommended)
Section titled “Option A: Marketplace install (recommended)”Register the mx-workflow repository as a plugin marketplace, then install:
# 1. Add the marketplace (one-time)/plugin marketplace add https://github.com/joshtune/mx-workflow.git
# 2. Install the plugin/plugin install mx@joshtune-mx-workflowWhen prompted, choose a scope:
| Scope | Where it’s stored | Who has access |
|---|---|---|
user | ~/.claude/settings.json | You, in all projects |
project | .claude/settings.json | Everyone on the team |
local | .claude/settings.local.json | You, on this machine only (gitignored) |
Option B: Clone and load per-session
Section titled “Option B: Clone and load per-session”# Clone the repogit clone https://github.com/joshtune/mx-workflow.git ~/mx-workflow
# Load for current sessionclaude --plugin-dir ~/mx-workflowThis is temporary — the plugin is only available for that session.
Option C: Clone and configure permanently
Section titled “Option C: Clone and configure permanently”# Clone the repogit clone https://github.com/joshtune/mx-workflow.git ~/mx-workflowThen add the path to your Claude Code settings. Edit ~/.claude/settings.json:
{ "plugins": ["~/mx-workflow"]}The plugin will load automatically in every session.
Verify installation
Section titled “Verify installation”Once installed, type /mx: in Claude Code and you should see all commands in autocomplete.
Test with:
/mx:helpThis displays the full command reference card.
Try it first: /mx:review
Section titled “Try it first: /mx:review”The fastest way to understand what mx-workflow is for is to point it at some code. On any branch with changes — yours or an AI’s — run:
/mx:reviewIt bundles all eight review-grade agents into a single verdict — PASS, PASS WITH WARNINGS, or REJECT — with per-agent findings and a recommendation. Reviewing a PR an AI generated (Claude, Cursor, Copilot)? Use /mx:second-look <PR number>. Suspect an invented API? /mx:hallucination-check. See the Demo: catching a hallucinated API for a concrete walkthrough.
A full session
Section titled “A full session”mx-workflow also covers the lifecycle that produces the code it reviews. Here is a typical end-to-end walkthrough:
1. Load codebase context
Section titled “1. Load codebase context”/mx:primeThis reads key project files (like CLAUDE.md, package.json, tsconfig.json) and runs initial quality checks so Claude understands your project’s structure, conventions, and current health.
2. Check project readiness
Section titled “2. Check project readiness”/mx:statusSee what tools are available (linter, type checker, test runner) and whether the project is in a clean state. Fix any blockers before writing code.
3. Pick a task and plan
Section titled “3. Pick a task and plan”If you have a ticket, create a branch first:
/mx:branch EIT-42 add-user-authThen create an implementation plan:
/mx:planThe plan analyzes your codebase and produces a step-by-step implementation guide.
4. Implement
Section titled “4. Implement”/mx:implementThis executes the plan step by step, running validation after each change and invoking specialized agents to review your code.
5. Validate
Section titled “5. Validate”/mx:validateConfirm that lint, type-checks, and tests still pass after your changes.
6. Commit
Section titled “6. Commit”/mx:commitCreates a conventional commit with auto-inferred scope, type, and ticket reference. No need to write the commit message yourself.
7. Open a PR
Section titled “7. Open a PR”/mx:prCreates a pull request with an auto-generated summary. Use /mx:pr --draft if it is not ready for review yet.
What’s next
Section titled “What’s next”- Start with
/mx:reviewand the deeper review-tier commands — the heart of mx-workflow - Browse the command reference to see everything mx-workflow can do
- Read the Choosing a Workflow guide for recommendations on which commands to use when
- Check the Configuration page to customize behavior with environment variables