Skip to content

skillx install

Synopsis

Terminal window
skillx install [sources...] [options]

Persistently install skills into agent environments. Unlike skillx run, installed skills remain in place across sessions and are not cleaned up automatically.

Two modes of operation:

  • Explicit mode: skillx install <source1> [source2...] — install specified skills
  • Manifest mode: skillx install (no args) — install all skills from skillx.toml

Arguments

ArgumentRequiredDescription
sourcesNoSkill source(s): local path, github:/gist: prefix, or URL. If omitted, installs from skillx.toml

Options

FlagDefaultDescription
--agent <name>auto-detectTarget a specific agent (conflicts with --all)
--allInstall to all detected agents (conflicts with --agent)
--scope <scope>globalInjection scope: global or project
--no-cacheForce re-fetch, skip cache
--skip-scanSkip security scan
--yesAuto-confirm WARN level risks
--no-saveDon’t save to skillx.toml (by default, sources ARE saved)
--devInstall as dev dependency (saved under [skills.dev])
--prodOnly install production dependencies, skip dev
--pruneRemove installed skills not listed in skillx.toml

Install Modes

Explicit Mode

When one or more source arguments are provided, skillx installs those specific skills:

Terminal window
skillx install github:anthropics/skills/pdf-processing github:org/skills/formatter

By default, installed sources are saved to skillx.toml (if it exists). Use --no-save to skip saving.

Manifest Mode

When no source arguments are provided, skillx reads from skillx.toml and installs all listed skills:

Terminal window
skillx install

A summary is shown before installation begins:

Found 5 skills (3 new, 1 to update, 1 already installed)

Agent Selection

Agent selection follows this priority:

  1. --agent flag (explicit single agent)
  2. --all flag (all detected agents)
  3. skillx.toml [agent].targets list
  4. config.toml preferred agent
  5. Auto-detection

Conflict Handling

SituationBehavior
Active run session exists for the skillError — must clean up or wait for the run to finish
Skill already installed (same source)Upgrade to latest version
Unmanaged files exist at the injection pathPrompt Overwrite? [y/N]

Dependency Types

Skills can be categorized as production or dev dependencies:

  • Production ([skills]): Core skills needed for the project
  • Dev ([skills.dev]): Skills only needed during development (e.g., testing, debugging)

Use --dev to install as a dev dependency, and --prod to skip dev dependencies during manifest mode install.

Pruning

The --prune flag removes installed skills that are not listed in skillx.toml. This is useful for keeping your installed skills in sync with the manifest:

Terminal window
skillx install --prune

Skills with active run sessions are skipped during pruning.

Examples

Install a single skill

Terminal window
skillx install github:anthropics/skills/pdf-processing

Install to a specific agent

Terminal window
skillx install --agent cursor github:org/skills/formatter

Install to all detected agents

Terminal window
skillx install --all github:org/skills/testing

Install as dev dependency

Terminal window
skillx install --dev github:org/skills/debug-helper

Install from skillx.toml

Terminal window
skillx install

Install production only, prune extras

Terminal window
skillx install --prod --prune

Install without saving to skillx.toml

Terminal window
skillx install --no-save github:org/skills/one-off-tool