Skip to content

CLI Flags Reference

Global

Terminal window
skillx [command] [options]
FlagDescription
--versionPrint version information
--helpPrint help information

skillx run

Terminal window
skillx run <source> [prompt] [options]

Arguments

ArgumentPositionRequiredDescription
source1YesSkill source (local path, github: prefix, or GitHub URL)
prompt2NoPrompt text to pass to the agent

Flags

FlagShortTypeDefaultDescription
--file-fstringRead prompt from a file path
--stdinboolfalseRead prompt from stdin
--agentstringauto-detectAgent name: claude-code, codex, copilot, cursor, universal
--scopestringglobalInjection scope: global or project
--attachstring[]Attach files for the agent (repeatable)
--no-cacheboolfalseForce re-fetch, skip cache
--skip-scanboolfalseSkip the security scan
--yesboolfalseAuto-confirm WARN level risks
--yoloboolfalsePass permission-skip flags to the agent
--timeoutstringMax run duration (e.g., 30m, 2h, 300s)

Prompt Resolution Priority

  1. Positional prompt argument
  2. --file / -f flag
  3. --stdin flag
  4. No prompt (agent launches without one)

Duration Format

The --timeout flag accepts human-friendly durations:

SuffixUnitExample
sSeconds300s
mMinutes30m
hHours2h
dDays1d

Examples

Terminal window
skillx run ./my-skill "prompt"
skillx run -f prompt.txt github:org/repo/skill
echo "prompt" | skillx run --stdin ./skill
skillx run --agent codex --yolo --timeout 1h ./skill "prompt"
skillx run --scope project --attach data.csv ./skill "analyze"

skillx install

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

Arguments

ArgumentPositionRequiredDescription
sources1+NoSkill source(s). If omitted, installs from skillx.toml

Flags

FlagTypeDefaultDescription
--agentstringauto-detectTarget a specific agent (conflicts with --all)
--allboolfalseInstall to all detected agents (conflicts with --agent)
--scopestringglobalInjection scope: global or project
--no-cacheboolfalseForce re-fetch, skip cache
--skip-scanboolfalseSkip security scan
--yesboolfalseAuto-confirm WARN level risks
--no-saveboolfalseDon’t save to skillx.toml
--devboolfalseInstall as dev dependency
--prodboolfalseOnly install production dependencies, skip dev
--pruneboolfalseRemove installed skills not in skillx.toml

Examples

Terminal window
skillx install github:org/skills/pdf
skillx install --all --dev github:org/skills/testing
skillx install # from skillx.toml
skillx install --prod --prune # production only, prune extras

skillx uninstall

Terminal window
skillx uninstall <name...> [options]

Arguments

ArgumentPositionRequiredDescription
names1+YesSkill name(s) to uninstall

Flags

FlagTypeDefaultDescription
--agentstringOnly remove from a specific agent
--keep-in-tomlboolfalseKeep the entry in skillx.toml
--purgeboolfalseAlso remove cached files

Examples

Terminal window
skillx uninstall pdf-processing
skillx uninstall formatter --agent cursor
skillx uninstall old-skill --purge

skillx list

Terminal window
skillx list [options]

Flags

FlagTypeDefaultDescription
--agentstringFilter by agent
--scopestringallFilter by scope: project, global, or all
--jsonboolfalseOutput as JSON (to stdout)
--outdatedboolfalseCheck for available updates

Examples

Terminal window
skillx list
skillx list --agent claude-code
skillx list --json | jq '.[].name'
skillx list --outdated

skillx update

Terminal window
skillx update [names...] [options]

Arguments

ArgumentPositionRequiredDescription
names1+NoSkill name(s) to update. If omitted, checks all

Flags

FlagTypeDefaultDescription
--agentstringOnly update for a specific agent
--dry-runboolfalseShow what would be updated without applying
--skip-scanboolfalseSkip security scan
--yesboolfalseAuto-confirm (skip update prompt)

Examples

Terminal window
skillx update
skillx update --dry-run
skillx update pdf-processing --yes

skillx init

Terminal window
skillx init [options]

Flags

FlagTypeDefaultDescription
--from-installedboolfalsePre-populate with currently installed skills

Examples

Terminal window
skillx init
skillx init --from-installed

skillx scan

Terminal window
skillx scan <source> [options]

Arguments

ArgumentPositionRequiredDescription
source1YesSkill source to scan

Flags

FlagTypeDefaultDescription
--formatstringtextOutput format: text, json, or sarif
--fail-onstringdangerExit code threshold: info, warn, danger, block

Output Routing

  • text format: output to stderr
  • json / sarif format: output to stdout (pipeable)

Examples

Terminal window
skillx scan ./my-skill
skillx scan --format json github:org/repo/skill
skillx scan --format sarif ./my-skill
skillx scan --fail-on warn ./my-skill

skillx agents

Terminal window
skillx agents [options]

Flags

FlagTypeDefaultDescription
--allboolfalseShow all known agents, including undetected

Examples

Terminal window
skillx agents
skillx agents --all

skillx info

Terminal window
skillx info <source>

Arguments

ArgumentPositionRequiredDescription
source1YesSkill source to inspect

Show metadata parsed from the skill’s SKILL.md frontmatter.

Examples

Terminal window
skillx info ./my-skill
skillx info github:org/repo/skill

skillx cache

Terminal window
skillx cache <subcommand>

Subcommands

SubcommandDescription
lsList all cached skills with source and timestamp
cleanRemove all cached skill entries

Examples

Terminal window
skillx cache ls
skillx cache clean

Environment Variables

VariableDescription
GITHUB_TOKENGitHub personal access token for private repositories

Exit Codes

CodeApplies ToMeaning
0All commandsSuccess
1All commandsError or threshold exceeded

For skillx scan, exit code 1 means findings were found at or above the --fail-on threshold. For skillx run, exit code 1 means the run could not complete (source resolution failed, scan blocked, agent error, etc.).