setup-agents

setup-agents is a skill for Claude Code, Codex from ShipWithAI/shipwithai-plugins. It costs 48 tokens per session (939 once invoked), scanned A, original, MIT.

A setup process for adding specialized sub-agents to a project’s .claude/agents folder. It detects project context, suggests suitable agents, and asks for confirmation before writing their configuration.

In plain words
What is it for?
Use it to discover, select, and configure project sub-agents, either from suggestions or by naming a specific agent.
Why use it?
It helps a project use focused assistants for different kinds of work while considering the project’s files, team size, and plan level. It avoids adding configurations without confirmation.

Skill for Claude CodeCodex

Part of the shipwithai-starter plugin — 13 skills, 4 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/shipwithai/shipwithai-plugins/setup-agents
Any agent
npx skills add ShipWithAI/shipwithai-plugins --skill setup-agents
Clone the repo
git clone --depth 1 https://github.com/ShipWithAI/shipwithai-plugins

Made for: Claude Code, Codex.

Or install shipwithai-starter, the plugin that ships this one along with the rest of its 13 skills, 4 commands, 1 agent.

Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00048 $0.00939
Opus 5 $0.00024 $0.00469
Sonnet 5 $0.00010 $0.00188
Haiku 4.5 $0.00005 $0.00094

Measured 3d ago against content hash 09c74ba857e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup-agents 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 3d ago.

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.

plugins/starter/skills/setup-agents/SKILL.md · 126 lines

How it starts

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

/setup-agents

Configures .claude/agents/ with specialized sub-agents for the project.

Mode Detection

Read .claude/starter-context.json if it exists
  → Exists: use fields agents_selected, project.type, project.team_size, project.tier — skip suggest
  → Does not exist (standalone): load catalog → detect context → suggest → confirm

Argument Handling

If an agent name is passed directly (e.g. /setup-agents pr-review): skip the suggestion step and go straight to that agent's entry in the catalog.

Context Detection

Load agents-catalog.json. For each entry, evaluate suggestWhen:

  1. files: check whether any listed glob exists in the project root
  2. context: if .claude/starter-context.json exists, evaluate conditions against its fields
    • teamSize > N → read project.team_size
    • tier == N → read project.tier
  3. always: if alwaysInclude is true, suggest unconditionally — present first

In standalone mode without starter-context.json: ask the user for context that cannot be inferred from files (e.g. "How many people work on this project?").

For each suggested agent: show preview → confirm before writing.

How Sub-Agent Context Works

Sub-agents receive only two inputs when invoked:

  1. Their agent file content (system prompt)
  2. The prompt string passed by the main agent at invocation time

They do not inherit the main agent's conversation history or open files.

Two patterns handle this:

Autonomous agents — self-orient by reading project files on startup. No runtime input needed beyond a trigger phrase. Examples: drift-monitor, dependency-scanner, test-coverage.

Task-specific agents — require runtime context passed in the invocation prompt. The caller must include specific parameters (e.g. PR number, branch name). Examples: pr-review.

Use contextType in the catalog to identify which pattern each agent follows.

Agent File Format

Write to .claude/agents/[id].md using this structure:

Read the full file on GitHub · 126 lines

Files

What ships with it

2 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. 3d ago First seen · 126 lines · 48 tokens per session scan A 09c74ba857e5

Subscribe to this mod's changes

setup-agents is a skill published in the GitHub repository ShipWithAI/shipwithai-plugins (10 stars, last pushed 21d ago), licensed MIT. It adds 48 tokens to every session and 939 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

rulesync

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.

dyoshikawa/rulesync · 64 tokens

agent-workspace-linux

Use when a task needs an isolated hidden Linux desktop or workspace-owned browser: GUI app QA, web/browser/shopping automation, sandboxed app observation, or stale workspace cleanup. Routes agent-workspace-linux MCP tools on demand. Does NOT apply to host desktop/Chrome control, generic MCP setup, or pure code/file…

ilysenko/codex-desktop-linux · 70 tokens

ss-component

Generate a new UI component following the StyleSeed design conventions.

bitjaru/styleseed · 14 tokens

map-review

Interactive 4-section code review using monitor, predictor, and evaluator agents plus the user and maintainer role reviewers on current changes. Use when reviewing a diff, PR, or staged work before merge. Do NOT use to plan or implement; use map-plan or map-efficient.

azalio/map-framework · 58 tokens

map-fast

Minimal workflow for small, low-risk changes — no planning, no learning.

azalio/map-framework · 17 tokens

codedrobe-theme

Create, inspect, convert, apply, replace, verify, troubleshoot, update, publish, or restore reversible CodeDrobe themes for supported Chromium/Electron AI desktop apps, including OpenAI Codex, Tencent WorkBuddy, QoderWork (CN/global), and TRAE SOLO (global/CN). Use when a user asks to turn an attached or local…

CodeDrobe/skills · 181 tokens