Skip to content
Back to skills

Setup

ASecurity

Inspect the multi-agent role map or write confirmed overrides to user, team, or local config layers.

  • 34 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentsgoshellbashgit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add melodic-software/claude-code-plugins --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

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

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/melodic-software-setup-4b8ab3d9/badge)](https://www.skillsdirectory.com/skills/melodic-software-setup-4b8ab3d9)

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
---
description: "Inspect the multi-agent role map or write confirmed overrides to user, team, or local config layers."
argument-hint: "[check|apply] [--layer user|team|local] [<key>=<value> ...] [session=<alias>]"
user-invocable: true
disable-model-invocation: true
allowed-tools: ["Bash(${CLAUDE_SKILL_DIR}/scripts/setup.sh:*)"]
shell: bash
---

# Setup

## Purpose

`/multi-agent:route` resolves the role map through four layers: the bundled
defaults, the user file the `role_map_file` option names, the team layer and
`<home>/multi-agent.local.yaml`. This skill shows what those layers resolve to
and writes one of them. All three consumer layers absent is a valid state: the
bundled defaults apply. Keys, values, layer paths and the fan-out guard are
defined in
[`${CLAUDE_PLUGIN_ROOT}/reference/config.md`](${CLAUDE_PLUGIN_ROOT}/reference/config.md).

No argument means `check`. It installs nothing; the resolver needs only Bash,
awk and git. Pass `--user-file '${user_config.role_map_file}'` on every
`setup.sh` call, exactly as written below.

## `check` (read-only)

```bash
${CLAUDE_SKILL_DIR}/scripts/setup.sh check session=<alias> --user-file '${user_config.role_map_file}'
```

Pass `session=<alias>` with the family in your own model ID (`opus`, `sonnet`,
`haiku`, `fable`); omit it when you cannot tell, and the map is resolved as
under a frontier session. The JSON is the one `/multi-agent:route all` prints.
Show:

1. one line per role: `single <model> @ <effort>; fanout <model> @ <effort>`,
   with `inherit` written as `inherit: omit the model option`, and the layer
   in `source` for each value;
2. the `layers` rows (read, absent, skipped, or not applicable at a home or
   non-repository root) and every entry of `notes` as written; each note (a
   skipped layer, a rejected value, an ignored key) is a finding to report;
3. the personal-override row: PASS when `<home>/multi-agent.local.yaml` is
   gitignored, else WARN with the recommended line `<home>/**/*.local.*`.
   Recommend the line; do not edit `.gitignore`;
4. each `WARN team:` row: a retired team file (the config block in
   `docs/conventions/multi-agent.md`, or `.claude/multi-agent.yaml`) that the
   resolver does not read. Relay the row's next step as written.

It modifies nothing.

## `apply`

1. Run `check` and show the map. This is the before state.
2. Settle the layer with the user, recommendation first:
   - `local` (`<home>/multi-agent.local.yaml`): this checkout only, for this
     person. The default for a personal preference.
   - `team`: `docs/conventions/multi-agent.yaml` (under the convention home the
     repository binds). Shared with everyone who clones the repository.
   - `user`: the file the `role_map_file` option names, for every repository
     you work in. While the option is unset, `apply --layer user` stops: ask
     the user to set it in `/config` to a file of their choosing, then rerun.

   `team` and `local` are refused at a home or non-repository root.
3. Settle the keys. Ask only for what the user wants changed; each value comes
   from the table in `config.md`. Pass every key to set as `<key>=<value>`, and
   `<key>=` to remove one from that layer. Existing keys in the layer are kept.
4. Preview, writing nothing:

   ```bash
   ${CLAUDE_SKILL_DIR}/scripts/setup.sh apply --layer <layer> --user-file '${user_config.role_map_file}' <key>=<value> ...
   ```

   It prints the target path and a diff. It exits 1 without writing when the
   resolver would reject or ignore a key; relay the reason and return to
   step 3.
5. Show the diff and ask for an explicit yes. Write only on that yes:

   ```bash
   ${CLAUDE_SKILL_DIR}/scripts/setup.sh apply --layer <layer> --write --user-file '${user_config.role_map_file}' <key>=<value> ...
   ```

   It prints the path written and the keys it read back from the file.
6. Run `check` again and show the after map beside the before one, naming each
   value that changed and the layer that now supplies it. The file is what the
   next `/multi-agent:route` run reads; nothing about the running session
   changes. For `team`, offer `git add` and a commit and run each only when the
   user accepts.

### The fan-out guard

With `fanout.frontier_guard: true`, the bundled value, a stage that runs more
than one agent never runs them on a frontier model: under a Fable
session, or a session the caller did not name, each fan-out variant that would
inherit or name a frontier model takes `fanout.model` (`opus`) instead. A
single synthesis or judge agent keeps the role's own model. The basis is
recorded beside the key in
[`${CLAUDE_PLUGIN_ROOT}/reference/defaults.yaml`](${CLAUDE_PLUGIN_ROOT}/reference/defaults.yaml).

`fanout.frontier_guard=false` is an explicit opt-in to frontier fan-outs: every
parallel worker then runs on the session model, so a frontier session runs
every agent of the stage on the frontier model (rates:
[Pricing: model pricing](https://platform.claude.com/docs/en/about-claude/pricing#model-pricing); usage:
[Manage costs: Track your costs](https://code.claude.com/docs/en/costs#track-your-costs)).
Before writing it, say this and ask the user to confirm that specific key,
separately from the rest of the change. Recommend the narrowest layer that
covers what they mean: `local` for one checkout, `user` for every repository
you work in, `team` only when the whole team has agreed.

## What this skill does not do

- Edit `.gitignore`, `CLAUDE.md` or `AGENTS.md`.
- Write a model ID. Only aliases are accepted, so the map stays portable across
  providers.
- Change a named agent's model or effort. An agent such as
  `implementation:implementer` or `implementation:scoped-implementer` owns its
  tier through its own frontmatter and whatever its dispatcher passes on the
  call; the role map governs generic `agent()` and Agent dispatches only.
- Recheck a default against upstream. That is `/multi-agent:audit-defaults`.

## Next

/multi-agent:route all
Prints the map the next workflow reads from `args.roles`.

## Gotchas

- A layer file is rewritten whole, so its comments are not kept; the preview
  says so when the file has any.
- An existing layer that does not parse stops `apply` with the line and the
  reason. Fix or remove the file first; setup never overwrites content it could
  not read.
- The first `team` write creates the YAML. A retired team file, which the
  resolver does not read, seeds its keys and stays as it was; `check` names
  it until it is deleted.
- Team and local layers resolve against the repository root of the working
  directory. Inside a second worktree, run from that worktree.

Files in this skill

  • SKILL.md6.5 KB
  • evals/evals.json3 KB
  • scripts/setup.sh8.8 KB
  • scripts/setup.test.sh6.4 KB

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.