Skip to content
Back to skills

Muster Setup

DSecurity

Set up or change Muster's workers, routing and tiers (~/.muster/config.json). Use for set up muster, add a worker, pick a model per tier, muster doctor.

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 18, 2026
ai-agentspythongoshellbashapibackend

Works with

  • claude code
  • cli
  • api

Security analysis

D50/100
  • criticalModifies startup scripts or system services for persistence
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned December 4, 2026

npx -y skills add jandyx/muster --skill muster-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Muster Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Muster Setup
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/jandyx-muster-setup/badge)](https://www.skillsdirectory.com/skills/jandyx-muster-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: muster-setup
description: Set up or change Muster's workers, routing and tiers (~/.muster/config.json). Use for set up muster, add a worker, pick a model per tier, muster doctor.
---

# Muster setup

Goal: a working `~/.muster/config.json` (or the path in `MUSTER_CONFIG`) that `muster.py doctor` passes, written with as few questions as possible.

The runner is `../muster/muster.py` relative to this skill's base directory. Below, `$MUSTER` means that path.

## 1. Detect, don't ask

```bash
python3 $MUSTER detect
```

It prints JSON:
- `codex_homes`: each folder with a Codex login (`codexHome`, `billing`: `subscription` for a ChatGPT login, `metered` for an API key, `logged_in`).
- `commands`: `codex`, `claude`, `agy` (the Antigravity CLI for Gemini), and `claude-wrapper` scripts (they set `ANTHROPIC_BASE_URL` and run Claude Code on another backend, such as DeepSeek).
- `config_exists`: when true, read the current config first. You are editing it, not starting over: keep what the user set unless they asked to change it.

Also worth a look, read-only: shell aliases that set `CODEX_HOME` (`grep -n CODEX_HOME ~/.zshrc ~/.bashrc 2>/dev/null`) give each Codex home the name the user already calls it by. Use those names as worker names.

## 2. Propose a config

From what you found, draft workers:
- one `codex` worker per logged-in Codex home: `{ "type": "codex", "codexHome": "<path>" }`
- one `claude` worker per wrapper: `{ "type": "claude", "command": "<path>", "args": ["--dangerously-skip-permissions"], "billing": "metered" }` (drop the flag if the wrapper already passes it); if the wrapper targets DeepSeek and its API key sits in a file, offer `"balanceKeyFile": "<path>"` so the pane shows the remaining balance
- a plain `claude` worker only if the user asks for one; it bills the same account this session uses
- one `agy` worker if `agy` is found: `{ "type": "agy", "command": "<path>" }` (billing defaults to `subscription`; it must be signed in once by running `agy`; pick a model with `"args": ["--model", "<id>"]` from `agy models`)

Then draft `routing` with a `*` fallback, `caps` (`codex` 3, `claude` 5, `agy` 3) and `runsDir` (`~/.muster/runs`, or keep the existing one). `ledger` (defaults to `~/.muster/ledger.db`) and `events` (defaults to `~/.muster/events.jsonl`) are optional, both outside `runsDir`.

Tiers are optional; add them only when the user wants cheaper or stronger runs for some tasks. Only `low`, `standard` and `high` exist, each with:
- `args`: extra CLI arguments keyed by worker name or type (`codex`, `claude`, `agy`), the name winning; they follow the worker's own `args`. Model: `["--model", "<model>"]` for Claude Code and agy (agy effort: `["--effort", "high"]`); `["-c", "model=\"<model>\""]` for Codex, which refuses `-m` twice, so leave `-m` out of a Codex worker's own `args` when tiers should pick its model. Codex effort: `["-c", "model_reasoning_effort=\"medium\""]` (`low`, `medium`, `high`, `xhigh`).
- `prefer`: workers that take the task first when several have a free slot, such as a cheap metered worker for `low`.
- `when`: one sentence replacing the skill's default rule for picking that tier. A `routing` entry may set `"tiers": { "<name>": { "when": "…" } }` for its repos; nothing else goes there.

Map plain requests onto these: "high uses opus" → `tiers.high.args.claude: ["--model", "opus"]`; "low goes to deepseek" → `tiers.low.prefer: ["deepseek"]`; "anything touching billing/ in the work repos is high" → that `routing` entry's `tiers.high.when`.

## 3. Ask only what detection cannot answer

Use AskUserQuestion, at most one round of up to four questions, each with a recommended default first. Typical:
- Which repos or folders should each worker prefer? (Offer the folders under the user's usual workspace, such as `~/workspace/*`, grouped by prefix.)
- What kind of work should each worker take (`role`, one sentence each, for example main implementer, code review and fix loops, fallback only)? A fallback-only worker also goes last in every `routing` list and stays out of `prefer`.
- Should any worker be limited to certain repos only (`only`)? Mention that the runner enforces it.
- Parallel caps per account: keep 3 / 5, or change?
- Tiers: one setting for every task (recommended unless the user mentioned cost or model choice), or a cheaper `low` and a stronger `high`? If tiers, which model or effort for each?
- Any rule worker prompts should carry? Global ones go in `preamble`; rules for one group of repos (for example, how pull requests are opened there) go in that `routing` entry's `preamble`.

If the user already said these things in this conversation, do not ask again.

## 4. Write and check

1. Show the final JSON in one block and say where it goes. If a config exists, show what changes.
2. Write it. Back up an existing file first: `C="${MUSTER_CONFIG:-$HOME/.muster/config.json}"; cp "$C" "$C.bak-$(date +%Y%m%d-%H%M%S)"`.
3. Run `python3 $MUSTER doctor`. Fix every line it prints, then run it again until it says `ok`.
4. Optional smoke test, only if the user agrees (it spends a little quota): one task per worker that replies `PONG`, run with `python3 $MUSTER run <worker> <task-dir> /tmp`; report each `status` and `usage`.

## 5. Hand off

Tell the user, in their language:
- the workers and which repos each one takes;
- which limits the runner enforces (`only`, `caps`, a tier's `prefer` and `args`) and which Claude follows when planning (`routing`, `preamble`, a tier's `when`);
- with tiers, that `python3 $MUSTER stats` later shows how each tier performs;
- how to start: "muster: …" (the pane opens by itself), and `/muster-panel` to reopen it.

## Rules

- Never print the contents of `auth.json`, API key files or environment variables that hold keys. Paths and the `billing` value are enough.
- Do not log in, log out or edit any Codex or Claude profile; if a home is not logged in, tell the user the login command (`CODEX_HOME=<home> codex login`).
- Write only the Muster config (and its backup).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.