Skip to content

CLI Reference

Complete reference for all rolecraft commands, flags, and options.


Commands

CommandDescription
init [name]Scaffold a new SKILL.md in ./<name>/
install <source>Install a skill with security scan
bundle <sources...>Install multiple skills from inline sources
bundle create [name]Create a new bundle JSON file
use <source>Preview a skill's files without installing
listShow all installed skills
remove <slug>Uninstall a skill
update <slug>Re-install a skill to latest version
setup [source]Detect agents and optionally install a skill
search <query>Search GitHub for skills (--skills-sh for skills.sh)
checkCheck for available updates
ciRe-install all skills from lockfile (CI mode)
verifyCheck installed skill integrity via content hash
doctorRun system health check
watch [slug]Watch skills for changes and auto-sync
convert <source>Convert between SKILL.md and .mdc formats
profile save/apply/listSave, apply, and manage multi-agent profiles
mcp install/list/removeInstall, list, and remove MCP servers
agents-xml [--write]Generate skills XML for AGENTS.md
completions bash|zsh|fishGenerate shell completion scripts
upgradeUpgrade rolecraft to latest version
--help, -hShow usage
--version, -vShow version

Common flags

These flags work across multiple commands:

FlagAffectsDescription
--yes / -yinstall, setup, bundle, ciNon-interactive: accept all defaults, bypass security prompts
--dry-runinstall, setup, bundle, remove, update, profilePreview without making changes
--globalinstall, use, setupInstall to ~/.agents/skills/ (user-wide)
--projectinstall, use, setupInstall to ./.agents/skills/ (repo-scoped, default)
--allinstall, setup, profileInstall to every supported agent
--symlinkinstall, setupSymlink instead of copy
--copyinstall, setupForce copy (default)
--frozen-lockfileinstallFail if skill is already installed
--no-mcpinstall, setupSkip MCP server installation
--interactivesearchOpen TUI for browsing and selecting results

Agent-specific flags

Pass any of these to install, setup, or profile to target specific agents:

FlagAgentSkill directory
--agentsopencode~/.agents/skills/
--claudeclaude-code~/.claude/skills/
--cursorcursor~/.cursor/skills/
--windsurfwindsurf~/.windsurf/skills/
--devindevin~/.devin/skills/
--codexcodex~/.codex/skills/
--copilotcopilot./.github/copilot/skills/
--aideraider~/.aider/skills/
--clinecline~/.cline/skills/
--geminigemini-cli~/.gemini/skills/
--codycody~/.cody/skills/
--continuecontinue~/.continue/skills/
--warpwarp~/.warp/skills/
--codeiumcodeium~/.codeium/skills/
--fabricfabric~/.fabric/skills/
--goosegoose~/.goose/skills/
--tabninetabnine~/.tabnine/skills/
--supermavensupermaven~/.supermaven/skills/
--pr-pilotpr-pilot~/.pr-pilot/skills/
--loomloom~/.loom/skills/
--rooroo~/.roo/skills/
--traetrae~/.trae/skills/
--hermeshermes~/.hermes/skills/
--kirokiro~/.kiro/skills/
--augmentaugment~/.augment/skills/
--kilokilo~/.kilo/skills/
--openhandsopenhands~/.openhands/skills/
--juniejunie~/.junie/skills/
--factoryfactory~/.factory/skills/
--command-codecommand-code~/.commandcode/skills/
--cortexcortex~/.snowflake/cortex/skills/
--mistral-vibemistral-vibe~/.vibe/skills/
--qwen-codeqwen-code~/.qwen/skills/
--openclawopenclaw~/.openclaw/skills/
--codebuddycodebuddy~/.codebuddy/skills/
--muxmux~/.mux/skills/
--pipi~/.pi/agent/skills/
--autohand-codeautohand-code~/.autohand/skills/
--rovorovo-dev~/.rovodev/skills/
--firebenderfirebender~/.firebender/skills/
--bobibm-bob~/.bob/skills/
--aider-deskaider-desk~/.aider-desk/skills/
(and 44+ more — see full list)

Combine multiple flags in one command:

bash
rolecraft install ./my-skill --cursor --claude --devin --copilot

Subcommand detail

rolecraft init [name]

Scaffold a new skill:

bash
rolecraft init my-skill     # creates ./my-skill/SKILL.md
rolecraft init              # creates ./SKILL.md

rolecraft install <source>

Install a skill from any source:

bash
rolecraft install ./path                             # local directory
rolecraft install owner/repo                         # GitHub shorthand
rolecraft install https://gitlab.com/org/project     # Git URL
rolecraft install git@github.com:owner/repo.git      # SSH URL
rolecraft install npm:package                        # npm package

Accepts: --yes, --dry-run, --global, --project, --all, --symlink, --frozen-lockfile, --no-mcp, agent flags.

rolecraft bundle <sources...>

bash
rolecraft bundle owner/skill1 owner/skill2 ./local
rolecraft bundle bundle.json
rolecraft bundle bundle.txt
rolecraft bundle create [name]

rolecraft use <source>

Preview without installing. Same source types as install.

bash
rolecraft use ./my-skill         # show files
rolecraft use owner/repo         # from GitHub
rolecraft use ./my-skill | head -50  # pipe to pager

rolecraft list

bash
rolecraft list                  # all installed skills
rolecraft list --json            # machine-readable JSON output
rolecraft list --project         # project-level only
rolecraft list --global          # global only

rolecraft remove <slug>

bash
rolecraft remove my-skill
rolecraft remove my-skill --dry-run

rolecraft update <slug>

Re-install from original source:

bash
rolecraft update my-skill

rolecraft setup [<source>]

bash
rolecraft setup                  # detect agents only
rolecraft setup ./my-skill       # detect + install
rolecraft setup owner/repo --yes

rolecraft search <query>

bash
rolecraft search code-review                  # GitHub search
rolecraft search code-review --interactive     # TUI picker
rolecraft search react --skills-sh             # skills.sh (experimental)

rolecraft check

No arguments. Checks all installed skills for newer versions.

rolecraft ci

Re-install all skills and MCP servers from lockfiles. Use --yes in CI.

rolecraft verify

Verifies SHA256 content hashes of all installed skills.

rolecraft doctor

bash
rolecraft doctor                # standard health check
rolecraft doctor --json         # JSON output for scripting
rolecraft doctor --network      # include GitHub connectivity test

Runs comprehensive system health checks: Node.js version, platform info, Git/npm availability, agent directories, lockfile schema validation, disk usage, orphaned directory detection, skill integrity (hash + symlink), MCP server configuration, and optional network connectivity (--network).

rolecraft watch [<slug>]

bash
rolecraft watch                 # watch all skills
rolecraft watch my-skill        # watch specific skill

rolecraft convert <source>

Converts between formats. Auto-detects direction:

bash
rolecraft convert ./skill/SKILL.md     # → .mdc
rolecraft convert ./rule.mdc            # → SKILL.md
rolecraft convert ./dir/                # directory, auto-detects format
rolecraft convert ./dir/ --output ./out
rolecraft convert ./skill --dry-run

rolecraft profile

bash
profile save <name>           # capture current config
profile apply <name>          # apply saved config
profile list                  # list all profiles
profile show <name>           # show profile details
profile diff <name>           # compare with current
profile edit <name>           # edit with $EDITOR
profile delete <name>         # remove profile
profile export <name>         # export as JSON
profile import <path>         # import from file/URL
profile link [name]           # link to project

rolecraft mcp

bash
mcp install <source> [flags]    # install MCP server
mcp list                        # list all MCP servers
mcp search <query> [flags]      # search MCP servers (--npm, --interactive)
mcp remove <name> [flags]       # remove MCP server

rolecraft agents-xml [--write]

Generates XML block for AGENTS.md. Use --write to auto-insert.

rolecraft completions bash|zsh|fish

bash
rolecraft completions bash >> ~/.bashrc
rolecraft completions zsh >> ~/.zshrc
rolecraft completions fish >> ~/.config/fish/completions/rolecraft.fish

rolecraft upgrade

Upgrades rolecraft to the latest npm version.