setup
Skill3 starsChanged 7 months agoMITView on GitHub
First-run onboarding wizard for magi-workflow. Runs healthchecks on installed CLIs (claude/gemini/codex), records the user's preferred reviewer roster and weights into ~/.config/magi-workflow/config.json, and validates end-to-end with a small dry-run. Use --recheck to re-validate without resetting config; --reset to wipe and start over.
- Reads credentials
193 other projects use a version of this.
Adopted by
Most recently taken up by
- onetapstudiogames/1f3d9-citylifetheir own version, first seen Oct 7, 2026
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- qbeka/jev-job-searchtheir own version, first seen Oct 4, 2026
- ProjectAJ14/eklavyatheir own version, first seen Oct 4, 2026
- nanocoai/nanoclawtheir own version, first seen Oct 4, 2026
Used with
Projects with it also use add-slack, add-parallel and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 6 projects that use this
MicrosoftSkilladd-parallel
Also in 5 projects that use this
sskarzSkilladd-telegram-swarm
Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".
Also in 5 projects that use this
- +9 more from microsoft
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- feder-cr/invisible_playwright_mcp★ 32ksame name
- nanocoai/nanoclaw★ 31ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Q00/ouroboros★ 6.2ksame name
- agenticnotetaking/arscontexta★ 3.5ksame name
- aws/agent-toolkit-for-aws★ 2.8ksame name
- Shpigford/chops★ 1.9ksame name
- skyllwt/AutoSci★ 1.7ksame name
- microsoft/power-platform-skills★ 961same name
- SethGammon/Citadel★ 922same name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- references/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- commitSkill
- goSkill
- helpSkill
- initSkill
- planSkill
- review-codeSkill
- review-planSkill
- statusSkill
- tasksSkill
- web-backend-specSkill
- web-ci-specSkill
- web-frontend-specSkill
- web-infra-planSkill
- yoloSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 5 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 171 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Verify $PLUGIN_ROOT/scripts/shared/preflight.sh exists.
- Very specific: line 29
--reset: delete $USER_CONFIG (after confirming with user), then run the full wizard. - Very specific: line 33
(no flag): if $USER_CONFIG already exists, ask the user whether to re-run the wizard (it will overwrite).
- Very specific: line 64
If summary.ok == 0, abort with a message: at least claude must work for this plugin to function.
- Distinctive: line 76
Ask in one consolidated AskUserQuestion if possible.
- Very specific: line 79
After roster selection, ask for weights only if they want to deviate from defaults.
- Distinctive: line 85
Ask the user for a default voting mode:
- Very specific: line 102
Read nvm ls to find installed versions.
- Very specific: line 106
If no nvm, set node.use_nvm: false.
- Very specific: line 112
Ask the user for output_language — the language the plugin will use when generating PLAN.md / SPEC.md / TASKS.md / WORKS.md.
- Distinctive: line 126
Run a small end-to-end test to confirm the config works:
- Very specific: line 138
Read the resulting workdir.
- Very specific: line 169
Never write secrets (API keys, tokens) into config — these belong in each CLI's own auth (e.g., GEMINI_API_KEY, ~/.codex/auth.json, claude …
- Distinctive: line 172
Always show the user the final config JSON before writing.
- Very specific: line 173
If the user pastes their own JSON, run it through jq to validate before saving.
- Very specific: line 175
When claude itself fails healthcheck, do not proceed to write config.
- Distinctive: line 176
Instead surface the actionable error.
“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/magi:setup — onboarding wizard
You are the coordinator. Walk the user through configuring this plugin so the multi-CLI orchestration works on their machine. Be interactive and helpful — this is the user's first impression of the workflow.
0. Resolve paths
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-}"
[[ -z "$PLUGIN_ROOT" ]] && PLUGIN_ROOT="$(cd "$(dirname "$BASH_SOURCE[0]")/../.." 2>/dev/null && pwd)"
USER_CONFIG="$HOME/.config/magi-workflow/config.json"
DEFAULT_CONFIG="$PLUGIN_ROOT/config/default.json"Verify $PLUGIN_ROOT/scripts/shared/preflight.sh exists. If not, the plugin is
installed incorrectly — tell the user and stop.
1. Subcommand handling
Inspect the arguments passed to the slash command:
--reset: delete$USER_CONFIG(after confirming with user), then run the full wizard.--recheck: skip the wizard. Run preflight only. If the user has no config yet, fall through to the full wizard.- (no flag): if
$USER_CONFIGalready exists, ask the user whether to re-run the wizard (it will overwrite). If they decline, run preflight to show current state and exit.
2. Run preflight
"$PLUGIN_ROOT/scripts/shared/preflight.sh"Parse the JSON. The shape is:
{
"config_path": "...",
"reviewers": [
{"cli": "claude", "model": "opus", "status": "ok|skip|fail", "reason": "...", "version": "..."},
...
],
"summary": {"ok": N, "skip": M, "fail": K, "total": T}
}Display a friendly table to the user (in output_language, default zh-TW):
| CLI | Status | Version | Notes |
| claude | ✅ ok | 2.x.x | available |
| gemini | ⏭️ skip | — | reason |
| codex | ✅ ok | 0.x.x | available |
If summary.ok == 0, abort with a message: at least claude must work for
this plugin to function. Suggest running claude login and re-running.
3. Reviewer roster
For each detected CLI, ask the user (via AskUserQuestion or chat) whether to enable it as a reviewer. Default selections:
claude: enabled,required: true,weight: 1gemini: enabled if healthcheck ok,required: false,weight: 1codex: enabled if healthcheck ok,required: false,weight: 1
Ask in one consolidated AskUserQuestion if possible. Provide the "Recommended" defaults so they can accept with one click.
After roster selection, ask for weights only if they want to deviate from
defaults. Recommend keeping all reviewers at weight: 1 — equal voices
keep majority honest (no single reviewer can pass alone).
4. MAGI mode
Ask the user for a default voting mode:
- majority (recommended) — adopt issue if
vote_sum > ok_weight × 0.5. Sensible for daily code review. - supermajority —
>= 2/3. For architectural decisions. - unanimous — all reviewers must agree. For irreversible / production /
IAM changes. Note that this requires all
requiredreviewers; warn the user that pairingunanimouswithrequired: falsereviewers makes sense only if they are aware that a SKIP will abort.
Per-invocation override is always possible via /magi:review-code --magi <mode>,
so this is just the default.
5. Node / nvm
Detect ~/.nvm/nvm.sh. If present:
- Read
nvm lsto find installed versions. - Suggest the most recent LTS (typically Node 22).
- Write
node.use_nvm: true,node.default_version: <chosen>.
If no nvm, set node.use_nvm: false. Note that npm-based CLIs (gemini,
codex) may then resolve via system PATH and could break on shebang issues —
warn the user.
6. Output language
Ask the user for output_language — the language the plugin will use when
generating PLAN.md / SPEC.md / TASKS.md / WORKS.md. Defaults from current
config or zh-TW. Plugin internal text remains in English regardless.
7. Write config
Build the JSON object (preserve unset fields by reading $DEFAULT_CONFIG
as the base and overlaying user choices). Create ~/.config/magi-workflow/
if needed and write $USER_CONFIG with chmod 644.
Validate with jq '.' "$USER_CONFIG" before declaring success.
8. Dry-run validation
Run a small end-to-end test to confirm the config works:
PROMPT=$(mktemp -t magi-setup-prompt.XXXXXX.md)
echo "Setup validation: please reply with 'magi setup OK from <your-cli-name>'." > "$PROMPT"
MAGI_CONFIG_PATH="$USER_CONFIG" \
"$PLUGIN_ROOT/skills/review-plan/scripts/orchestrator.sh" "$PROMPT"
rm -f "$PROMPT"Read the resulting workdir. Confirm at least one RETURN event. Show the
user the per-reviewer outputs (truncated). If policy_pass=false, explain
what failed and offer to re-run setup or skip the dry-run.
9. Onboarding summary
End with a short user-facing summary in output_language:
- Configured reviewers (with weights + required flags)
- Active MAGI mode
- Config location:
$USER_CONFIG - Next steps (state-aware): run
scripts/shared/detect-state.shto detect the current project's state and recommend accordingly:- BOOTSTRAP (project lacks Tier 1/2 docs) →
/magi:initfirst - INITIALIZED or later →
/magi:plan "<feature description>"to start a new sprint, or bare/magi:planto pick frommagi/BACKLOG.md - To re-validate or reset:
/magi:setup --recheck//magi:setup --reset
- BOOTSTRAP (project lacks Tier 1/2 docs) →
Example output:
✅ Setup complete. Reviewers: claude:opus (weight 1, required), gemini:default (weight 1).
下一步:
/magi:init (專案尚未初始化,先建立 root CLAUDE/README/SPEC + magi/ 骨架)
/magi:plan (init 完成後跑這個開始 sprint)Conventions
- Never write secrets (API keys, tokens) into config — these belong in each
CLI's own auth (e.g.,
GEMINI_API_KEY,~/.codex/auth.json,claude login). - Always show the user the final config JSON before writing.
- If the user pastes their own JSON, run it through
jqto validate before saving. - When
claudeitself fails healthcheck, do not proceed to write config. Instead surface the actionable error.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

