xcrft/mastermind
GitHub: xcrft/mastermind
Stars: 6 | Forks: 0
# Mastermind
## Use it in a project
From any project's working directory:
mastermind init # scaffold .mastermind/, build the index, draft CONTEXT.md via claude -p
echo .mastermind/ >> .gitignore # local working state — never committed
mastermind doctor # 8 fail-soft checks: binary, index, freshness, MCP config, serve handshake, …
`init` indexes the codebase and drafts `CONTEXT.md` automatically — pass `--no-index` / `--no-claude` to skip, or `--with-claude-md` to also drop the workflow CLAUDE.md template and fill its placeholders from your code. It also installs the workflow subagents, skills, and slash commands into `~/.claude/` so the full planner/critic/executor/auditor pipeline is available, not just the codegraph (`--no-global` to skip). Keep the index live with `mastermind watch`, and tear a setup down with `mastermind uninstall` (`--scope project|global|all`; dry-run unless `--force`).
`.mastermind/` holds the project's specs and the mmcg index. `mastermind doctor --json` is CI-friendly (exit 1 if anything's unwired).
## Subsets (advanced)
**Just the codegraph** — `mmcg` is a standalone [crate](https://crates.io/crates/mmcg): 17 tools (`search`, `callers`, `callees`, `impact`, `imports`, `imported_by`, `files`, `outline`, `symbols_in_file`, `recent_changes`, `unreferenced`, `api_surface`, `centrality`, `tasks`, `dependency_cycles`, `symbols_changed_since`, + a `status` diagnostic) across nine languages. Sub-millisecond queries, zero system deps.
cargo install mmcg
Register it in your MCP client — snippet in [`mcp/servers/mmcg/README.md`](mcp/servers/mmcg/README.md).
**Just specific subagents or skills** — copy the markdown into `~/.claude/`:
cp agents/subagents/mastermind-critic.md ~/.claude/agents/
cp -r skills/code-review/pr-review ~/.claude/skills/
The pipeline's guarantees hold only with the full set — a lone critic is still a fine code reviewer, but the spec-driven contracts need the planner + auditor too.
## Not using Claude Code?
`mmcg` is tool-agnostic — it works with any MCP stdio client (Cursor, Continue, custom). The subagent files use Claude Code's frontmatter format, but the underlying patterns (the pipeline, the spec template, the engineering canons) are portable.
## License
MIT — see [`LICENSE`](LICENSE).
Claude Code plugin marketplace
/plugin marketplace add xcrft/mastermind /plugin install mastermind-workflow@mastermind # workflow subagents /plugin install mmcg@mastermind # codegraph MCP config /plugin install mastermind-tools@mastermind # standalone skills The `mmcg` plugin registers the MCP config; install the binary via `npm install -g @xcraftmind/mastermind`. The `plugins/` tree is regenerated from canonical artifacts by [`scripts/build-plugins.py`](scripts/build-plugins.py).Build from source
cargo install mmcg # crates.io # or from a clone: cargo install --path mcp/servers/mmcg Requires Rust 1.75+ ([rustup](https://rustup.rs/)). The binary is `mmcg` — same code, same subcommands.标签:通知系统