|
| 1 | +# MCode Stack |
| 2 | + |
| 3 | +[中文](README_ZH.md) |
| 4 | + |
| 5 | +**The workflows and skills the MiniMax Code team uses to build MiniMax Code. Open source, install and use.** |
| 6 | + |
| 7 | +This is not a prompt collection or a list of "best practices". It is what |
| 8 | +people on the team actually use every day: how to keep AI-written code at a |
| 9 | +high bar, how to decide whether a task should go to a subagent, how long to |
| 10 | +wait on a long command, how to keep long sessions from going dull, and what |
| 11 | +goes into context on every turn. Everything here installs straight into |
| 12 | +[MiniMax Code](https://github.com/MiniMax-AI/minimax-code). |
| 13 | + |
| 14 | +## Why |
| 15 | + |
| 16 | +AI writes code faster every month. What separates results now is the layer |
| 17 | +of engineering habits around the agent: when to make it stop and check its |
| 18 | +own work, who reviews, where state lives, what counts as a real experiment. |
| 19 | +Those habits are hard to follow from an article, so we turned them into |
| 20 | +skills and checklists. They pair one to one with our *MCode Engineering |
| 21 | +Notes* column: the article explains the idea, this repository makes it |
| 22 | +runnable. |
| 23 | + |
| 24 | +We also believe harness engineering is a craft that moves forward by |
| 25 | +experiment. Everything here will keep changing as we learn. Take it, change |
| 26 | +it, and send your version back. |
| 27 | + |
| 28 | +## What's inside |
| 29 | + |
| 30 | +```text |
| 31 | +stacks/ronny/ Ronny's stack (MiniMax Code R&D lead), the first and most complete one |
| 32 | +stacks/<name>/ Other team members' stacks (on the way) |
| 33 | +notes/ Which runnable piece goes with each Engineering Notes article |
| 34 | +community/ Stacks contributed by developers outside the team |
| 35 | +templates/stack-template/ Start here to write your own stack |
| 36 | +``` |
| 37 | + |
| 38 | +A stack usually has three kinds of things: |
| 39 | + |
| 40 | +| Kind | What it is | How to use it | |
| 41 | +| --- | --- | --- | |
| 42 | +| Skill | A directory with a `SKILL.md` | Invoke it in MiniMax Code with `/<skill-name>`, or let the agent load it from its description | |
| 43 | +| Checklist | Also a skill: the agent walks your project item by item. A plain-text copy lives in `checklists/` | Same as above, or just read it | |
| 44 | +| Workflow | A `WORKFLOW.md` describing how this person works with MiniMax Code every day | Read it | |
| 45 | + |
| 46 | +### First batch in `stacks/ronny` |
| 47 | + |
| 48 | +| Skill | What it does | Notes | |
| 49 | +| --- | --- | --- | |
| 50 | +| `independent-review` | Review a diff from a clean context: only diff, requirement and test results | 01 | |
| 51 | +| `subagent-split-check` | Decide whether work goes to a subagent or stays in the main loop | 01 | |
| 52 | +| `harness-experiment` | Small eval, one change at a time, repeated runs, look at flipped tasks | 01, 02, 06 | |
| 53 | +| `tool-budget-audit` | Measure what tools cost in context; trim, tool search or programmatic tool calling | 02 | |
| 54 | +| `long-session-check` | Drop, summarize or write to file; compact or start fresh; memory scoping | 03 | |
| 55 | +| `handoff-doc` | A hand-off doc so a new session can pick up the work | 01, 03 | |
| 56 | +| `long-command-check` | Ten-point audit of long shell commands and background tasks | 04 | |
| 57 | +| `context-tax-audit` | What gets injected into every request, and what it does to the prompt cache | 06 | |
| 58 | +| `trajectory-review` | Look at how the agent got its result, not only whether it passed | - | |
| 59 | + |
| 60 | +## Install |
| 61 | + |
| 62 | +Clone the repository first: |
| 63 | + |
| 64 | +```bash |
| 65 | +git clone https://github.com/MiniMax-AI/mcode-stack.git ~/mcode-stack |
| 66 | +``` |
| 67 | + |
| 68 | +### Install a single skill |
| 69 | + |
| 70 | +MiniMax Code discovers skills in these directories (one subdirectory per |
| 71 | +skill, containing `SKILL.md`): |
| 72 | + |
| 73 | +- For the current project only: `.minimax/skills/`, `.claude/skills/` or |
| 74 | + `.agents/skills/` in the project |
| 75 | +- For all projects: `~/.agents/skills/` (`~/.claude/skills/` and |
| 76 | + `~/.codex/skills/` are read too) |
| 77 | + |
| 78 | +For example, to install the long-command checklist globally: |
| 79 | + |
| 80 | +```bash |
| 81 | +mkdir -p ~/.agents/skills |
| 82 | +cp -R ~/mcode-stack/stacks/ronny/skills/long-command-check ~/.agents/skills/ |
| 83 | +``` |
| 84 | + |
| 85 | +Open a new session and type `/skills` in MiniMax Code to see it. |
| 86 | + |
| 87 | +The skills use the common `SKILL.md` format, so most of them also work in |
| 88 | +other agents that support skills. |
| 89 | + |
| 90 | +### Install a whole stack as a plugin |
| 91 | + |
| 92 | +Every stack is also a MiniMax Code plugin package. Find your local plugin |
| 93 | +directory: |
| 94 | + |
| 95 | +```bash |
| 96 | +mcode plugin marketplace list |
| 97 | +``` |
| 98 | + |
| 99 | +Copy the whole `stacks/ronny` directory into that directory, then open |
| 100 | +`/plugins` in MiniMax Code and press `Ctrl+R` to refresh. A local plugin is |
| 101 | +installed as soon as it is in that directory; press Space in the panel to |
| 102 | +enable or disable it. |
| 103 | + |
| 104 | +`mcode plugin add` installs from the official catalog only; it does not take |
| 105 | +a GitHub URL or a local path. |
| 106 | + |
| 107 | +## Contribute your own stack |
| 108 | + |
| 109 | +What we most want to see is how you actually work with MiniMax Code, or with |
| 110 | +any other agent, day to day. |
| 111 | + |
| 112 | +1. Copy `templates/stack-template/` to `community/<your-id>/`. |
| 113 | +2. Write a `WORKFLOW.md`: how you use the agent every day, what you hand to it |
| 114 | + and what you keep an eye on yourself. |
| 115 | +3. Add at least one skill or checklist you really use. |
| 116 | +4. Run `node scripts/check.mjs`, then open a PR with the output and a short |
| 117 | + record of real usage. |
| 118 | + |
| 119 | +Details in [CONTRIBUTING.md](CONTRIBUTING.md). Using something from here in |
| 120 | +your own agent? Tell us with an **I use this** issue. |
| 121 | + |
| 122 | +## Relationship to MiniMax Code |
| 123 | + |
| 124 | +MiniMax Code itself lives in |
| 125 | +[MiniMax-AI/minimax-code](https://github.com/MiniMax-AI/minimax-code). This |
| 126 | +repository only holds workflows and skills, no MiniMax Code source code. |
| 127 | + |
| 128 | +## License |
| 129 | + |
| 130 | +[MIT](LICENSE) |
0 commit comments