skillroom CLI
Skillroom CLI reference
The skillroom binary reads the same skill folders, skillroom-library.json file, and change journal as the desktop app. Every command supports --json so you can script it from a shell or let an AI agent query your library safely.
Global flags and safety model
- Machine-readable output: Pass
--jsonanywhere on the command line to print pretty JSON. Failures emit{"error": "..."}on stdout and exit non-zero. - Plan-first folder changes: Commands that touch skill folders (
state,preset,link-agents) only print their file plan and estimated token delta by default. Nothing changes on disk until you rerun with--yes. Pass--dry-runto enforce preview-only mode. - Full journal undo: Every applied folder change gets an operation ID recorded in the shared journal. Run
skillroom undoto reverse the last change, orskillroom undo <id>for a specific one. - Read-only settings: The CLI reads your existing profile settings and never silently creates or rewrites them.
Inspecting skills and session token cost
These commands never write to disk. Skill names match either the frontmatter name or the skill's folder name.
| Command | What it does | Flags |
|---|---|---|
| skillroom agents | Show each detected agent's skill folders, symlink targets, and deduplicated skill roots. | --json |
| skillroom list | List every skill with its state, origin, session token cost, and folder path. | --state <active|on-call|mixed|parked>, --origin <owned|public>, --agent <claude-code|codex|universal>, --attention, --search <text>, --json |
| skillroom show <name> | Inspect one skill by skill name or folder name: per-agent load behavior, lock origin, real path, symlinks, file count, token estimate, lint, and overlaps. | --json |
| skillroom cost | Estimate session token cost per agent (loaded and on-call counts) and list the most expensive loaded skills. | --top <N> (default 10), --json |
| skillroom lint [name] | Check SKILL.md frontmatter, description length, broad triggers, dated claims, missing boundaries, and agents/openai.yaml. | --warnings (hide notes), --json |
| skillroom overlap | Find competing skill description pairs using local TF-IDF cosine similarity (no model calls). | --threshold <0..1> (default 0.3), --json |
Recording ratings, categories, tags, and notes
Metadata commands edit only skillroom-library.json and run immediately without--yes. Every command accepts --json.
| Command | What it does |
|---|---|
| skillroom rate <0-5> <names...> | Rate one or more skills from 1 to 5 stars. Pass 0 to clear. |
| skillroom flag <keep|drop|none> <names...> | Mark skills to keep or drop (also accepts pick, reject, or clear). |
| skillroom category <name|none> <names...> | Assign a category by case-insensitive name or ID, or pass none to clear. |
| skillroom tag <tag> <names...> | Add a tag to one or more skills. |
| skillroom untag <tag> <names...> | Remove a tag from one or more skills. |
| skillroom note <name> "<text>" | Replace the saved notes for one skill. |
| skillroom review <names...> | Mark one or more skills as reviewed. |
Changing states, presets, and agent links
These commands modify skill files, symlinks, or ~/.agents/.skill-lock.json through the same planner and journal as the desktop app. Run them without --yes first to review the plan.
| Command | What it does | Flags |
|---|---|---|
| skillroom state <load|on-call|park> <names...> | Set skills to Automatic (load), Manual (on-call), or Parked (park). Previews every file change and token delta first. | --yes, --dry-run, --json |
| skillroom preset "<name>" | Switch to a saved preset by name or ID so only that setup's skills load automatically. | --yes, --dry-run, --json |
| skillroom link-agents | Link installed agents that do not natively read ~/.agents/skills (such as Claude Code and Antigravity) to the shared folder, preserving app-managed entries like Claude's synced/. | --yes, --dry-run, --json |
| skillroom undo [id] | Reverse the most recent undoable journal operation, or a specific operation ID. | --json |
State names: app labels vs CLI values
The desktop interface uses plain labels, while CLI filters and --json output use kebab-case identifiers:
| Desktop label | --state / JSON | state target | Behavior |
|---|---|---|---|
| Automatic | active | load | Description loads into every session. |
| Manual | on-call | on-call | Callable by name; costs 0 tokens at session start (Claude Code and Codex). |
| Differs by agent | mixed | — | Agents disagree on whether the skill loads automatically or stays on call. |
| Parked | parked | park | Moved out of every agent's folder with a restore sidecar and lock backup. |
Common workflows
1. Audit session token cost and description issues
# See per-agent session token totals and top 15 skills
skillroom cost --top 15
# Find skills whose agents disagree or that have lint warnings
skillroom list --attention --json
# Check for competing skill descriptions (default threshold: 0.3)
skillroom overlap --threshold 0.352. Preview, apply, and undo a state change
# Preview moving two skills to Manual (on-call) — touches nothing
skillroom state on-call react-best-practices sql-tuning
# Apply the plan once verified
skillroom state on-call react-best-practices sql-tuning --yes
# Reverse the last operation if needed
skillroom undo3. Switch presets or link agent folders
# Preview linking Claude Code and Antigravity to ~/.agents/skills
skillroom link-agents
skillroom link-agents --yes
# Switch into a saved preset
skillroom preset "Writing week" --yes