mnemix-workflow is a repo-native spec-driven development methodology and CLI
for teams that want a clear path from intent to implementation, with AI as the
primary implementation engine and humans staying in control of the plan.
It combines:
- a lightweight spec-driven planning method built around versioned Markdown artifacts
- a command-oriented CLI for scaffolding and status management
- repo-local slash-command installation for supported AI assistants
- an interactive terminal UI for browsing workstreams and patches quickly
- optional repo-canonical GitHub issue mirroring for teams that want GitHub execution visibility
- selective support for machine-readable contract standards where they add real value
The result is a spec-driven workflow that stays readable to humans, operable by agents, and grounded in normal repository files instead of hidden metadata.
At the methodology level, it gives teams a lightweight path from:
spec.mdfor problem and intentux.mdfor experience and behaviorplan.mdfor implementation approachtasks.mdfor execution slicesSTATUS.mdfor current state and PR linkage
It also gives teams a simple planning rule:
- use a
workstreamfor larger, multi-artifact work - use a
patchfor smaller tracked changes that still need repo-visible planning - record durable repo-shaping choices in
workflow/decisions/
For the full method, terminology, and repository shape, see the Methodology Naming System.
AI coding gets much more reliable when requirements, UX intent, execution slices, and status are stored in the repo instead of living only in chat history.
mnemix-workflow gives you a lightweight structure for that:
workstreamsfor larger planned workpatchesfor smaller tracked fixes and enhancementsSTATUS.mdand frontmatter metadata for lightweight machine-readable statemnxfor fast interactive browsingmxwfor explicit scaffolding, status, and contract commandsmxw agent ...for repo-local slash-command installation in supported assistants- optional
mxw github ...commands for mirroring tracked work into GitHub Issues
Packaged install:
pipx install mnemix-workflowor:
pip install mnemix-workflowThis exposes three entrypoints:
mnemix-workflowfor the canonical CLImxwfor the shorter command-oriented aliasmnxfor the direct interactive TUI shortcut
Local development still works through Cargo when you are hacking on the repo:
cargo run --bin mxw -- --helpLocal development:
cargo run --bin mxw -- initInstalled usage:
mxw initThis creates:
workflow/
decisions/
README.md
patches/
workstreams/
For a full workstream:
mxw new "user profile redesign"This creates:
workflow/workstreams/<id>-user-profile-redesign/
STATUS.md
spec.md
ux.md
plan.md
tasks.md
decisions/
README.md
For a smaller tracked change:
mxw patch new "fix status copy"This creates:
workflow/patches/0001-fix-status-copy.md
Show status:
mxw status 004
mxw patch status 0001Update status and link a PR:
mxw status set 004 completed --pr 12
mxw patch status set 0001 completed --pr 12List tracked items by state:
mxw status list --status completed
mxw patch status list --status openInstall repo-local slash commands for supported assistants:
mxw agent installShow the supported assistant integrations:
mxw agent toolsRefresh generated command files after an upgrade:
mxw agent updateThis writes command files under the current repository for the initial supported tools:
.claude/commands/mxw/.cursor/commands/mxw/
The installed command set is:
/mxw:explore/mxw:track/mxw:implement/mxw:close/mxw:sync/mxw:status
These commands are a convenience layer over the normal repo-native workflow.
mxw remains the authoritative workflow engine underneath.
For the full command reference and setup notes, see docs/slash-commands.md.
mxw hooks installThis installs:
- a
pre-commithook that refreshes theupdatedfield for touched workstreams and patches - a
pre-pushhook that reminds you to review status and PR linkage before opening or updating a PR
Validate the whole repository:
mxw validateOr validate one tracked item:
mxw validate 008
mxw validate 0001Initialize optional GitHub issue support for the repo:
mxw github init --enable-auto-syncCreate or update mirrored issues for one tracked item:
mxw github sync 009
mxw github sync 0005Backfill existing tracked work or sync a filtered slice:
mxw github sync --all
mxw github sync --status open --allmnemix-workflow keeps the repo as the source of truth. GitHub issues are
mirrors that get refreshed from repo artifacts, and completed tracked items are
mirrored as closed issues. In v1, first mirror creation is explicit, while the
optional generated GitHub Action uses mxw github sync --changed to refresh
already-linked changed items on pushes to main.
When a repo uses mirrored workflow issues, prefer keeping GitHub issue creation/edit permissions narrow where practical, since issue titles and bodies are system-managed and may be overwritten on sync.
The fastest way into the product experience is:
mnxYou can also launch it explicitly through the main CLI:
mxw uimnx is the shortcut app-like entrypoint. mxw is the explicit command
surface for scripting, scaffolding, and operational actions.
mnx is the browse-first terminal experience for Mnemix Workflow.
Today it gives you:
- status buckets for
proposed,open, andcompleted - a unified tracked-item list for workstreams and patches
- artifact preview for
STATUS.md,spec.md,ux.md,plan.md, andtasks.md - basic Markdown formatting in the preview pane for headings, lists, blockquotes, code fences, and simple emphasis
- direct patch-file preview for patches
- one lightweight operational action: press
sto cycle the selected item's status
Key controls:
Tab/Shift+Tabto move focusj/kor arrow keys to move selectionh/lin preview to switch artifactssto cycle the selected item's statusqorEscto quit
The core idea is simple:
A workflow is made of workstreams. Each workstream moves from spec to UX to plan to tasks, with decisions recorded when they become durable.
That methodology is intentionally trying to solve a specific problem:
- humans need a clear narrative of intent, scope, and tradeoffs
- AI agents need explicit artifacts they can read, update, and validate
- teams need progress and status to live in the repo instead of only in chat or PR threads
Every pull request should map to either:
- a full
workstream - a lightweight
patch
GitHub issue support is intentionally additive to that model:
- repo artifacts stay canonical
- GitHub issues become optional mirrored execution surfaces
- sync writes GitHub linkage metadata back into repo files
In practice, the methodology is meant to help humans and agents align before implementation starts:
spec.mdcaptures what should be built and whyux.mdcaptures how it should feel and behaveplan.mdcaptures how the implementation will be approachedtasks.mdcaptures the execution slices and verification stepsSTATUS.mdcaptures whether the work is proposed, open, or completed
workflow/workstreams/holds larger planned initiatives with the full artifact setworkflow/patches/holds lightweight tracked changes in a single fileworkflow/decisions/holds durable decisions that outlive any one workstream or patch
This keeps the framework lightweight by default without allowing untracked PRs.
For a fuller explanation of the method, terminology, repository shape, and teaching vocabulary, see the Methodology Naming System.
spec.md- problem, users, goals, scope, and success criteria
ux.md- journeys, states, interaction expectations, and Gherkin acceptance scenarios
plan.md- technical approach and implementation strategy
tasks.md- execution slices and validation checkpoints
STATUS.md- machine-readable workstream state and linked PR metadata
The common case stays intentionally small:
workflow/workstreams/001-some-workstream/
STATUS.md
spec.md
ux.md
plan.md
tasks.md
decisions/
workflow/patches/0001-fix-status-copy.md
mnemix-workflow uses open standards selectively where machine-readable
contracts are especially useful:
OpenAPIfor synchronous HTTP interfacesAsyncAPIfor event-driven interfacesJSON Schemafor reusable data shapes
Examples:
mxw openapi init 007
mxw openapi validate 007
mxw asyncapi init 007
mxw asyncapi validate 007
mxw schema new 007 "repository event"
mxw schema validate 007These artifacts live under a workstream's contracts/ folder when needed.
README.md
Cargo.toml
docs/
slash-commands.md
methodology/
src/
tests/
resources/
commands/
hooks/
skills/
mnemix-workflow/
workflow/
decisions/
patches/
workstreams/
docs/- explanatory docs about the method and product direction
docs/slash-commands.md- setup and command reference for assistant slash-command integrations
resources/commands/- shared slash-command prompt templates rendered into supported assistants
resources/skills/- reusable agent-facing assets and templates
resources/hooks/- optional local git hook scripts for status nudges
workflow/- active workflow artifacts
workflow/workstreams/- larger planned work
workflow/patches/- lightweight tracked fixes and enhancements
workflow/decisions/- durable framework decisions
Start with:
- Methodology Naming System
- Slash Commands
- Product Requirements Document
- Release Checklist
- Bootstrap Workstream 001
- CLI Bootstrap Workstream 003
The repo also includes a real Agent Skills Open Standard skill at:
The repository is dogfooding the framework on itself.
The current implementation includes:
- repo initialization and scaffolding via
mxw - workstream and patch tracking
- status metadata and PR linkage
- repo-local slash-command installation via
mxw agent install - browse-first TUI access via
mnx - contract scaffolding and validation for
OpenAPI,AsyncAPI, andJSON Schema - packaged install support for
pipandpipx - local hook installation via
mxw hooks install - umbrella repo validation via
mxw validate
Workstreams use numeric prefixes:
001through999use zero-padded 3-digit ids- after
999, ids continue as1000,1001, and so on
Patches use zero-padded 4-digit prefixes:
0001,0002,0003, and so on