setup

setup is a skill for Claude Code, Codex from dsifry/metaswarm. It costs 19 tokens per session (6,829 once invoked), scanned A, original, MIT.

An interactive setup tool for configuring the metaswarm system in a software project. It detects the project's technology choices, asks questions, and writes the needed local files and platform instructions.

In plain words
What is it for?
Use it when starting metaswarm in a project or changing its configuration. It helps set up test-coverage enforcement and create commands suited to the project's tools.
Why use it?
It removes the need to configure metaswarm files and commands by hand. It also replaces older metaswarm setup commands.

Skill for Claude CodeCodex

Written for Claude Code and Codex: ${CLAUDE_PLUGIN_ROOT variable, but also reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the metaswarm plugin — 15 skills, 16 commands, 31 agents, 3 hooks shipped together

Good fit Use it when starting metaswarm in a project or changing its configuration. It helps set up test-coverage enforcement and create commands suited to the project's tools.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add dsifry/metaswarm
Claude Code
/plugin install metaswarm

Made for: Claude Code, Codex.

Or install metaswarm, the plugin that ships this one along with the rest of its 15 skills, 16 commands, 31 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/dsifry/metaswarm/setup/github.svg)](https://agentmods.dev/skills/dsifry/metaswarm/setup)
Your own site
<a href="https://agentmods.dev/skills/dsifry/metaswarm/setup"><img src="https://agentmods.dev/badge/skills/dsifry/metaswarm/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/dsifry/metaswarm/setup"><img src="https://agentmods.dev/badge/skills/dsifry/metaswarm/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,829 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.06829
Opus 5.5 $0.00008 $0.02732
Sonnet 5.5 $0.00004 $0.01366
Haiku 4.5 $0.00002 $0.00683

Measured 4d ago against content hash 703d4ea9bc2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (bin/estimate-cost.sh, bin/external-tools-verify.sh, bin/metaswarm-agents.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup/SKILL.md · 514 lines

How it starts

The opening of the file, as written. The whole thing — 514 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setup

Interactive setup for metaswarm. Detects your stack, asks targeted questions, writes project-local files, and creates platform-appropriate instruction files and command shims. Replaces both npx metaswarm init and the old /metaswarm-setup command.

After Phase 2 (user questions), determine the correct coverage command from the detection results, then run this Bash command:

PLUGIN_ROOT="${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-${extensionPath:-}}}"
if [ -z "$PLUGIN_ROOT" ]; then
  setup_script="$(find "${CODEX_HOME:-$HOME/.codex}/plugins/cache" -path '*/metaswarm/*/lib/setup-mandatory-files.sh' -print -quit 2>/dev/null)"
  if [ -n "$setup_script" ]; then
    PLUGIN_ROOT="$(cd "$(dirname "$setup_script")/.." && pwd)"
  fi
fi
if [ -z "$PLUGIN_ROOT" ] && [ -f "$(pwd)/lib/setup-mandatory-files.sh" ]; then
  PLUGIN_ROOT="$(pwd)"
fi
bash "${PLUGIN_ROOT}/lib/setup-mandatory-files.sh" "$(pwd)" <threshold> "<coverage-command>" --platform <platform> --reconfigure

Where:

  • <threshold> is the user's chosen percentage (e.g., 100)
  • <coverage-command> is the enforcement command for their test runner:
    • pytest → "pytest --cov --cov-fail-under=<threshold>"
    • vitest/pnpm → "pnpm vitest run --coverage"
    • jest/npm → "npx jest --coverage"
    • go → "go run .metaswarm/go-coverage-gate.go" (go test has no threshold flag; the script writes this gate program, which runs go test -coverprofile=coverage.out ./... and fails below the thresholds in .coverage-thresholds.json)
    • cargo → "cargo tarpaulin --fail-under <threshold>"
  • <platform> is codex, claude, gemini, or all. Prefer:
    • codex when running in Codex (PLUGIN_ROOT or CODEX_HOME is present, or the user invoked $setup)
    • claude when running in Claude Code (CLAUDE_PLUGIN_ROOT is present, or the setup skill was invoked there)
    • gemini when running in Gemini (extensionPath is present, or the setup skill was invoked there)
    • all only when the user explicitly asks to configure every supported CLI
  • --reconfigure: always pass it from interactive setup, so the user's answers apply even when .coverage-thresholds.json already exists (a re-run, or a first run after npx metaswarm setup copied the template). It updates the thresholds, a --cov-fail-under/--fail-under value in enforcement.command and an old bare go test command, and keeps every other setting. Only the session hook's self-heal omits it, so a silent background run never changes the file.

The script handles:

  1. Instruction file — AGENTS.md for Codex, CLAUDE.md for Claude, GEMINI.md for Gemini; appends metaswarm section (or writes new), skips if already present
  2. .coverage-thresholds.json — writes at project root with correct thresholds and command (with --reconfigure, updates an existing one). For Go it also writes .metaswarm/go-coverage-gate.go
  3. Claude command shims — for Claude/all only, writes .claude/commands/start-task.md, prime.md, review-design.md, self-reflect.md, pr-shepherd.md, brainstorm.md

The script outputs JSON with what was created/skipped/warned/errored. Check that "status": "ok", and show the user every entry in warnings (for example an enforcement.command that still embeds the old threshold).

If the script is not available or fails, fall back to writing these files manually with the Write tool. Do NOT skip them.

Read the full file on GitHub · 514 lines

Files

What ships with it

39 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed 703d4ea9bc2b
  2. 22d ago Changed · +28 lines 797da807a804
  3. 24d ago Changed 568431182f98
  4. 25d ago Changed · +17 lines db9bea912e46
  5. 3mo ago First seen · 469 lines · 19 tokens per session scan A 26a2660be6c1

Subscribe to this mod's changes

setup is a skill published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 6,829 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

setup compared with skills from other repositories

setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setupdsifry/metaswarmSkill442yesterdayMITA19Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code