setup

A setup command that detects AI coding agents on a computer and installs selected skills and their supporting tool connections across them.

In plain words
What is it for?
It helps discover installed agents, choose skills from a source, and configure those skills and declared tool connections for every detected agent.
Why use it?
It removes repeated manual configuration when a developer uses more than one AI coding tool.

Command

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 commands/rolecraft-sh/rolecraft/setup
Clone the repo
git clone --depth 1 https://github.com/rolecraft-sh/rolecraft
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 783 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.00000 $0.00783
Opus 5 $0.00000 $0.00392
Sonnet 5 $0.00000 $0.00157
Haiku 4.5 $0.00000 $0.00078

Measured 2d ago against content hash e81b2d599fec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

docs/commands/setup.md · 113 lines

How it starts

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

rolecraft setup

One command. All agents. Skills + MCP servers. Zero configuration.

Detect every AI agent on your machine and install a skill — plus its MCP servers — to all of them at once.

Usage

rolecraft setup                    # detect agents only
rolecraft setup <source>           # detect + install skill + MCP to all agents
rolecraft setup <source> --list    # list skills without installing
rolecraft setup <source> --skill <names>  # install specific skills

Description

rolecraft setup is the onboarding command. It:

  1. Scans your system for all installed AI agent directories (opencode, cursor, claude-code, copilot, aider, etc.)
  2. When a source is provided: resolves the skill(s), installs to every detected agent, and sets up any MCP servers declared in SKILL.md

For sources with multiple skills (e.g. mattpocock/skills), you'll be prompted to select which skills to install. Use --yes to install all, or --skill to pick specific ones.

This is the fastest way to go from zero to productive — one command configures every AI agent you use.

Options

Flag Description
--yes, -y Install all skills without prompt
--dry-run Preview without installing
--list List available skills without installing
--skill <names> Install specific skills by name (comma-separated)

Examples

Detect agents only

rolecraft setup

Shows which agents are installed and how many skills each has.

Install to all agents

rolecraft setup ./my-skill
rolecraft setup rolecraft-sh/skills
rolecraft setup npm:@org/agent-rules

Installs the skill to every detected agent automatically. No need to specify --cursor, --claude, etc.

Multi-skill source

# Show skills in a multi-skill source without installing
rolecraft setup mattpocock/skills --list

# Install specific skills
rolecraft setup mattpocock/skills --skill "typescript-rules,react-rules"

# Install all with --yes
rolecraft setup mattpocock/skills -y

Read the full file on GitHub · 113 lines

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. 2d ago First seen · 113 lines · 0 tokens per session scan A e81b2d599fec

Subscribe to this mod's changes

setup is a command published in the GitHub repository rolecraft-sh/rolecraft (75 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 783 tokens. 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.