@ionivetech/mugiwara 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +18 -0
- package/.claude-plugin/plugin.json +64 -0
- package/.claude-plugin/sync.sh +18 -0
- package/.codex-plugin/plugin.json +18 -0
- package/.cursor-plugin/plugin.json +19 -0
- package/.kimi-plugin/plugin.json +18 -0
- package/.opencode/commands/mugiwara.md +13 -7
- package/.opencode/commands/using-mugiwara.md +26 -0
- package/.opencode/plugins/mugiwara-helpers.mjs +90 -0
- package/.opencode/plugins/mugiwara.mjs +10 -107
- package/AGENTS.md +183 -0
- package/GEMINI.md +12 -0
- package/README.md +86 -56
- package/content/agents/luffy-orchestrator.md +1 -1
- package/content/agents/zoro-execution.md +1 -1
- package/content/skills/mugiwara-execution/SKILL.md +2 -5
- package/content/skills/{mugiwara-proof-order/SKILL.md → mugiwara-execution/references/tdd.md} +4 -7
- package/content/skills/using-mugiwara/SKILL.md +52 -0
- package/dist/mugiwara.js +35 -4
- package/docs/adoption-guide.md +1 -1
- package/docs/agents.md +5 -3
- package/docs/claude-setup.md +1 -1
- package/docs/developer-onboarding.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/index.md +1 -1
- package/docs/install-antigravity.md +45 -0
- package/docs/install-claude.md +75 -0
- package/docs/install-cli.md +103 -0
- package/docs/install-codex.md +44 -0
- package/docs/install-copilot.md +45 -0
- package/docs/install-cursor.md +45 -0
- package/docs/install-gemini.md +44 -0
- package/docs/install-kimi.md +45 -0
- package/docs/install-opencode.md +129 -0
- package/docs/install-pi.md +46 -0
- package/docs/install.md +53 -0
- package/docs/opencode-setup.md +1 -1
- package/docs/skills.md +1 -1
- package/evals/cases/routing-claim-audit.json +1 -1
- package/evals/cases/routing-using-mugiwara.json +25 -0
- package/evals/floor.json +1 -1
- package/gemini-extension.json +6 -0
- package/hooks/hooks.json +11 -0
- package/hooks/mugiwara-mode-tracker.ts +80 -0
- package/hooks/session-start.ts +1 -1
- package/package.json +13 -2
- package/plugin.json +15 -0
- package/src/targets/opencode.ts +39 -3
- package/.opencode/commands/mugiwara-mode.md +0 -6
- package/content/agents/using-mugiwara.md +0 -44
- package/content/skills/mugiwara-proof-order/references/proof-order-examples.md +0 -62
- package/evals/cases/routing-proof-order.json +0 -25
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# CLI Install (Windsurf, Cline, Kilo)
|
|
2
|
+
|
|
3
|
+
These platforms don't have native plugin systems. Use the mugiwara CLI
|
|
4
|
+
installer to copy files into the platform's config directory.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
- Node.js >= 20.11
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx @ionivetech/mugiwara@latest install --target <id> --yes
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Replace `<id>` with one of: `windsurf`, `cline`, `kilo`.
|
|
17
|
+
|
|
18
|
+
Or install globally first:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm i -g @ionivetech/mugiwara
|
|
22
|
+
mugiwara install --target <id> --yes
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### What gets written
|
|
26
|
+
|
|
27
|
+
| Target | Skills/agents | References | Bootstrap |
|
|
28
|
+
|--------|---------------|------------|-----------|
|
|
29
|
+
| Windsurf | `.devin/rules/*.md` (stubs) | `.mugiwara/refs/*.md` | — |
|
|
30
|
+
| Cline | `.clinerules/*.md` (stubs) | `.mugiwara/refs/*.md` | — |
|
|
31
|
+
| Kilo | `.kilo/rules/*.md` (stubs) | `.mugiwara/refs/*.md` | `kilo.jsonc` |
|
|
32
|
+
|
|
33
|
+
Tier 3 targets use stubs (pointer + routing) to keep rule files small.
|
|
34
|
+
Full skill bodies live in `.mugiwara/refs/` — the agent loads them on demand.
|
|
35
|
+
|
|
36
|
+
### Interactive mode
|
|
37
|
+
|
|
38
|
+
Drop `--yes` for the interactive wizard:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx @ionivetech/mugiwara install
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Pick scope (global/project), target(s), and confirm before writing.
|
|
45
|
+
|
|
46
|
+
### Multiple targets
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npx @ionivetech/mugiwara install --target windsurf,cline,kilo --yes
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Or all available targets:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npx @ionivetech/mugiwara install --target all --yes
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Verify
|
|
59
|
+
|
|
60
|
+
Ask your agent:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
what mugiwara crew members are available?
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Update
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
mugiwara update
|
|
70
|
+
# or: npx @ionivetech/mugiwara@latest update
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Uninstall
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
mugiwara uninstall
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Global install
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
mugiwara install --global --target <id> --yes
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Installs to `~/.devin/rules/` (Windsurf), `~/.clinerules/` (Cline), or
|
|
86
|
+
`~/.kilo/rules/` (Kilo).
|
|
87
|
+
|
|
88
|
+
## Configuration
|
|
89
|
+
|
|
90
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
91
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
92
|
+
|
|
93
|
+
## CLI reference
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
mugiwara install # wizard (interactive)
|
|
97
|
+
mugiwara install --project . --target all --yes # non-interactive
|
|
98
|
+
mugiwara update # replace existing files
|
|
99
|
+
mugiwara uninstall # remove what manifest recorded
|
|
100
|
+
mugiwara list # show installations
|
|
101
|
+
mugiwara reset --keep-logs # wipe mission state, keep lessons
|
|
102
|
+
mugiwara reset --force # override multi-actor guard
|
|
103
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Codex Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs as a native Codex plugin.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [Codex](https://github.com/openai/codex) CLI or app installed
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
codex plugin marketplace add ionivetech/mugiwara && codex plugin add mugiwara@mugiwara
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How it works
|
|
16
|
+
|
|
17
|
+
Codex reads `.codex-plugin/plugin.json` which references `content/skills/`.
|
|
18
|
+
All 26 skills are auto-discovered. Agents come from `content/agents/` via the
|
|
19
|
+
`agents/` symlink.
|
|
20
|
+
|
|
21
|
+
## Verify
|
|
22
|
+
|
|
23
|
+
Ask:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
what mugiwara crew members are available?
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Update
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
codex plugin update mugiwara
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Uninstall
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
codex plugin remove mugiwara
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Configuration
|
|
42
|
+
|
|
43
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
44
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# GitHub Copilot Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs as a Copilot plugin directly from the GitHub repo.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [GitHub Copilot](https://docs.github.com/en/copilot) extension installed
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
copilot plugin install https://github.com/ionivetech/mugiwara
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How it works
|
|
16
|
+
|
|
17
|
+
Copilot clones the repo and auto-discovers skills from `content/skills/`
|
|
18
|
+
and agents from `content/agents/`.
|
|
19
|
+
|
|
20
|
+
## Verify
|
|
21
|
+
|
|
22
|
+
Ask:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
what mugiwara crew members are available?
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Update
|
|
29
|
+
|
|
30
|
+
Reinstall with the same command:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
copilot plugin install https://github.com/ionivetech/mugiwara
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Uninstall
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
copilot plugin uninstall mugiwara
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Configuration
|
|
43
|
+
|
|
44
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
45
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Cursor Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs through Cursor's plugin marketplace.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [Cursor](https://cursor.com) installed
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/add-plugin mugiwara
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How it works
|
|
16
|
+
|
|
17
|
+
Cursor reads `.cursor-plugin/plugin.json` and auto-discovers skills from
|
|
18
|
+
`content/skills/`.
|
|
19
|
+
|
|
20
|
+
## Verify
|
|
21
|
+
|
|
22
|
+
Ask:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
what mugiwara crew members are available?
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Update
|
|
29
|
+
|
|
30
|
+
Re-run:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
/add-plugin mugiwara
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Uninstall
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
/remove-plugin mugiwara
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Configuration
|
|
43
|
+
|
|
44
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
45
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Gemini CLI Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs as a Gemini CLI extension.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
gemini extensions install https://github.com/ionivetech/mugiwara
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How it works
|
|
16
|
+
|
|
17
|
+
Gemini reads `gemini-extension.json` (which points to `GEMINI.md` as the
|
|
18
|
+
context file) and auto-discovers skills from `content/skills/`. The
|
|
19
|
+
`GEMINI.md` file describes the crew and workflow bootstrap.
|
|
20
|
+
|
|
21
|
+
## Verify
|
|
22
|
+
|
|
23
|
+
Ask:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
what mugiwara crew members are available?
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Update
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
gemini extensions update mugiwara
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Uninstall
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
gemini extensions remove mugiwara
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Configuration
|
|
42
|
+
|
|
43
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
44
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Kimi Code Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs through Kimi Code's plugin system.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [Kimi Code](https://kimi.moonshot.cn) installed
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/plugins install https://github.com/ionivetech/mugiwara
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How it works
|
|
16
|
+
|
|
17
|
+
Kimi Code reads `.kimi-plugin/plugin.json` and auto-discovers skills from
|
|
18
|
+
`content/skills/`.
|
|
19
|
+
|
|
20
|
+
## Verify
|
|
21
|
+
|
|
22
|
+
Ask:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
what mugiwara crew members are available?
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Update
|
|
29
|
+
|
|
30
|
+
Reinstall:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
/plugins install https://github.com/ionivetech/mugiwara
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Uninstall
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
/plugins remove mugiwara
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Configuration
|
|
43
|
+
|
|
44
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
45
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# OpenCode Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs through OpenCode's native npm plugin system.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [OpenCode](https://opencode.ai) installed
|
|
8
|
+
- Node.js >= 20.11
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Add to `opencode.json` (global at `~/.config/opencode/opencode.json` or
|
|
13
|
+
project-level at `.opencode/opencode.json`):
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"$schema": "https://opencode.ai/config.json",
|
|
18
|
+
"plugin": ["@ionivetech/mugiwara"]
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Restart OpenCode.
|
|
23
|
+
|
|
24
|
+
### Pinning a version
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{ "plugin": ["@ionivetech/mugiwara@^0.5.0"] }
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## How it works
|
|
31
|
+
|
|
32
|
+
The plugin (`mugiwara.mjs`) does three things:
|
|
33
|
+
|
|
34
|
+
1. **Config hook** — registers `content/skills/` as a skills path and
|
|
35
|
+
`content/agents/` as agents so OpenCode discovers the full crew
|
|
36
|
+
(26 skills + 14 agents) without any file copying.
|
|
37
|
+
|
|
38
|
+
2. **System transform hook** — injects the crew announce header and active
|
|
39
|
+
autonomy mode into every session's system prompt.
|
|
40
|
+
|
|
41
|
+
3. **Chat message hook** — intercepts `/mugiwara-mode` commands and
|
|
42
|
+
natural-language mode switches, writing `.mugiwara/config`.
|
|
43
|
+
|
|
44
|
+
Skills are loaded on-demand via OpenCode's native `skill` tool. Agents appear
|
|
45
|
+
as subagents with full config (color, temperature, permissions, step limits).
|
|
46
|
+
|
|
47
|
+
## Verify
|
|
48
|
+
|
|
49
|
+
Ask your agent:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
what mugiwara crew members are available?
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Or type `/mugiwara` to see the crew router.
|
|
56
|
+
|
|
57
|
+
## Update
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm update @ionivetech/mugiwara
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Or bump the version constraint in `opencode.json` and restart.
|
|
64
|
+
|
|
65
|
+
## Uninstall
|
|
66
|
+
|
|
67
|
+
Remove `"@ionivetech/mugiwara"` from the `plugin` array in `opencode.json`,
|
|
68
|
+
then restart OpenCode.
|
|
69
|
+
|
|
70
|
+
## Troubleshooting
|
|
71
|
+
|
|
72
|
+
### Plugin not loading
|
|
73
|
+
|
|
74
|
+
1. Check logs: `opencode --print-logs`
|
|
75
|
+
2. Verify the plugin line in `opencode.json`
|
|
76
|
+
3. Ensure you're on a recent OpenCode version
|
|
77
|
+
|
|
78
|
+
### Server error on startup
|
|
79
|
+
|
|
80
|
+
Fixed in v0.5.3. Ensure you're on the latest:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm update @ionivetech/mugiwara
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
If it persists, file at https://github.com/ionivetech/mugiwara/issues.
|
|
87
|
+
|
|
88
|
+
### Skills not found
|
|
89
|
+
|
|
90
|
+
1. Use the `skill` tool to list available skills
|
|
91
|
+
2. Check the plugin loaded (see "Plugin not loading")
|
|
92
|
+
3. Each skill needs a `SKILL.md` with valid YAML frontmatter (`name`, `description`)
|
|
93
|
+
|
|
94
|
+
### Windows
|
|
95
|
+
|
|
96
|
+
Some Windows OpenCode builds have Bun path issues with npm packages. If the
|
|
97
|
+
plugin won't install, try:
|
|
98
|
+
|
|
99
|
+
```powershell
|
|
100
|
+
npm install @ionivetech/mugiwara --prefix "$HOME\.config\opencode"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Then use the local path in `opencode.json`:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{ "plugin": ["~/.config/opencode/node_modules/@ionivetech/mugiwara"] }
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Tool mapping
|
|
110
|
+
|
|
111
|
+
Mugiwara skills reference general actions. On OpenCode these map to:
|
|
112
|
+
|
|
113
|
+
| Action | OpenCode tool |
|
|
114
|
+
|--------|---------------|
|
|
115
|
+
| Create a todo | `todowrite` |
|
|
116
|
+
| Dispatch a subagent | `task` with `subagent_type` |
|
|
117
|
+
| Invoke a skill | `skill` |
|
|
118
|
+
| Read a file | `read` |
|
|
119
|
+
| Edit a file | `edit` or `write` |
|
|
120
|
+
| Run a shell command | `bash` |
|
|
121
|
+
| Search code | `grep`, `glob` |
|
|
122
|
+
| Fetch a URL | `webfetch` |
|
|
123
|
+
|
|
124
|
+
## Configuration
|
|
125
|
+
|
|
126
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
127
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
|
128
|
+
|
|
129
|
+
Switch autonomy mode at runtime: `/mugiwara-mode guided|semi|auto`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Pi Install
|
|
2
|
+
|
|
3
|
+
Mugiwara installs as a Pi package.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- [Pi](https://github.com/pi) CLI installed
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pi install git:github.com/ionivetech/mugiwara
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How it works
|
|
16
|
+
|
|
17
|
+
Pi reads `package.json` `pi` field (`skills: ["./content/skills"]`) and
|
|
18
|
+
loads all 26 skills. The Pi extension (`pi-extension/`) registers runtime
|
|
19
|
+
hooks if present.
|
|
20
|
+
|
|
21
|
+
## Verify
|
|
22
|
+
|
|
23
|
+
Ask:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
what mugiwara crew members are available?
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Update
|
|
30
|
+
|
|
31
|
+
Reinstall with the same command:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pi install git:github.com/ionivetech/mugiwara
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Uninstall
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pi remove mugiwara
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Configuration
|
|
44
|
+
|
|
45
|
+
After install, configure mugiwara in `.mugiwara/config` (project) or
|
|
46
|
+
`~/.mugiwara/config` (global). See [docs/config.md](config.md).
|
package/docs/install.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Install Mugiwara
|
|
2
|
+
|
|
3
|
+
Mugiwara installs as a native plugin on every supported platform. Pick your
|
|
4
|
+
platform below for detailed instructions.
|
|
5
|
+
|
|
6
|
+
Requires **Node.js >= 20.11** on the host machine.
|
|
7
|
+
|
|
8
|
+
## Platforms
|
|
9
|
+
|
|
10
|
+
| Platform | Install doc | Native plugin? |
|
|
11
|
+
|----------|-------------|:---:|
|
|
12
|
+
| Claude Code | [install-claude](install-claude.md) | ✅ |
|
|
13
|
+
| OpenCode | [install-opencode](install-opencode.md) | ✅ |
|
|
14
|
+
| Gemini CLI | [install-gemini](install-gemini.md) | ✅ |
|
|
15
|
+
| Codex | [install-codex](install-codex.md) | ✅ |
|
|
16
|
+
| GitHub Copilot | [install-copilot](install-copilot.md) | ✅ |
|
|
17
|
+
| Cursor | [install-cursor](install-cursor.md) | ✅ |
|
|
18
|
+
| Antigravity | [install-antigravity](install-antigravity.md) | ✅ |
|
|
19
|
+
| Kimi Code | [install-kimi](install-kimi.md) | ✅ |
|
|
20
|
+
| Pi | [install-pi](install-pi.md) | ✅ |
|
|
21
|
+
| Windsurf / Cline / Kilo | [install-cli](install-cli.md) | CLI-based |
|
|
22
|
+
|
|
23
|
+
## One-liner
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# macOS / Linux
|
|
27
|
+
curl -fsSL https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.sh | bash
|
|
28
|
+
# Windows
|
|
29
|
+
irm https://raw.githubusercontent.com/ionivetech/mugiwara/main/scripts/install.ps1 | iex
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Global CLI
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm i -g @ionivetech/mugiwara
|
|
36
|
+
mugiwara install --target all --yes
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Verify
|
|
40
|
+
|
|
41
|
+
On any platform, ask:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
what mugiwara crew members are available?
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Configuration
|
|
48
|
+
|
|
49
|
+
See [docs/config.md](config.md) for all `.mugiwara/config` options.
|
|
50
|
+
|
|
51
|
+
## Report issues
|
|
52
|
+
|
|
53
|
+
https://github.com/ionivetech/mugiwara/issues
|
package/docs/opencode-setup.md
CHANGED
|
@@ -35,7 +35,7 @@ npx @ionivetech/mugiwara@latest --project ./my-app --target opencode --yes
|
|
|
35
35
|
|
|
36
36
|
- 32 skills in `.opencode/skills/` (project) or `~/.config/opencode/skills/`
|
|
37
37
|
(global).
|
|
38
|
-
-
|
|
38
|
+
- 14 agents registered as subagents via the plugin.
|
|
39
39
|
- The plugin announces the crew at session start and injects the inline
|
|
40
40
|
execution model into the system prompt.
|
|
41
41
|
|
package/docs/skills.md
CHANGED
|
@@ -35,7 +35,7 @@ it embodies a role.
|
|
|
35
35
|
|
|
36
36
|
| Skill | Teaches |
|
|
37
37
|
|-------|---------|
|
|
38
|
-
| `mugiwara
|
|
38
|
+
| `using-mugiwara` | Front-door router — explains the crew, classifies missions, routes to specialist |
|
|
39
39
|
| `mugiwara-root-cause` | 4-phase: reproduce → localize → reduce → fix + guard; stop-the-line |
|
|
40
40
|
| `mugiwara-contract-first` | Contract-first design, error semantics, boundary validation, backward compatibility |
|
|
41
41
|
| `mugiwara-claim-audit` | Adversarial verification: CLAIM → EXTRACT → DOUBT → RECONCILE → STOP |
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"positive": [
|
|
6
6
|
{ "prompt": "verify this claim before we proceed, it could be wrong", "top_k": 3 },
|
|
7
7
|
{ "prompt": "the agent says the fix is done but I want to double-check", "top_k": 3 },
|
|
8
|
-
{ "prompt": "
|
|
8
|
+
{ "prompt": "skeptically verify this claim and doubt every assertion the model made", "top_k": 3 }
|
|
9
9
|
],
|
|
10
10
|
"negative": [
|
|
11
11
|
{ "prompt": "run the test suite to make sure nothing is broken" },
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "routing-using-mugiwara",
|
|
3
|
+
"skill": "using-mugiwara",
|
|
4
|
+
"trigger": {
|
|
5
|
+
"positive": [
|
|
6
|
+
{ "prompt": "how do I use mugiwara to accomplish a task?", "top_k": 3 },
|
|
7
|
+
{ "prompt": "what crew members are available?", "top_k": 3 },
|
|
8
|
+
{ "prompt": "route this task to the right specialist", "top_k": 3 }
|
|
9
|
+
],
|
|
10
|
+
"negative": [
|
|
11
|
+
{ "prompt": "what does git status do?" },
|
|
12
|
+
{ "prompt": "run npm install for me" }
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"behavioral": [
|
|
16
|
+
{
|
|
17
|
+
"task": "Explain how mugiwara works and route a simple task.",
|
|
18
|
+
"rubric": [
|
|
19
|
+
"explains the crew structure",
|
|
20
|
+
"classifies the task correctly",
|
|
21
|
+
"routes to the right specialist"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
package/evals/floor.json
CHANGED
package/hooks/hooks.json
CHANGED