Skills CLI
Workflow
Select only the steps needed for the requested operation. A list or discovery request finishes with its findings; it does not authorize installation, publication, reconciliation, or cleanup.
- Inspect current state with
bunx skills listfor project scope andbunx skills list -gfor global scope.- In this repository, use
skill-registry.jsonas the authoritative classification,sjskills planfor committed project intent, andsjskills plan --globalfor exact fixed-baseline state.
- In this repository, use
- Use
bunx skills find <query>orbunx skills add <source> --listto discover options.- When choosing a command, source, scope, or agent target—including initializing a skill—read references/cli.md for the CLI's accepted inputs and install-location facts.
- Install with explicit scope, skill selection, and agent targeting.
- Before installing or reinstalling a published skill, or moving a shared install to agent-specific paths, read recipes/install-and-migrate.md and use the matching recipe.
- In this repository, prefer
sjskillsover hand-written commands for both committed project intent and the fixed global baseline. Its private adapter materializes with explicit Codex and Claude Code targets;sjskillsowns verified placement, state, quarantine, and restore. - Byte equality alone does not grant reconciler ownership. Managed updates and removals proceed only while current content matches trusted state.
- Verify ordinary installs with the matching scope command. For this
repository's managed state, verify exact placement with
sjskills planfor a project orsjskills plan --globalfor the fixed global baseline; shared-root discovery may report incidental agent visibility. - Maintain or remove installs with the same scope and agent targeting used to create them.
- Before listing filtered installs, removing skills, running generic updates, restoring a lock file, or syncing package-provided skills, read recipes/manage-installs.md.
- For this repo's published skills, publish local changes before reinstalling from the remote source.
Guardrails
- Default to symlink mode; use
--copywhen the user requests it or for a scoped global install of selected repo skills. - Use
--skill '*'only when the user explicitly wants every skill from a source. In the currentskillsCLI,--allexpands to--skill '*' --agent '*' -y, which can unintentionally recreate shared~/.agents/skillsinstalls. - Never synthesize a Pi target for this repository's fixed global baseline; Pi discovers the selected shared-root copy.
- Publish changed repository skills before reconciliation. A local edit or unmerged branch is not present at a registry source pinned to
main. - For
sjskillsreconciliation, use the request's configured scope and review the plan before apply. A sync request supplies authority; global apply still requires the agent-reviewed JSON through--approved-planand its digest through--approved-plan-sha256. Use--yeswithin existing authority, preserve conflict checks, and never infer sync or restore from inspection or repository validation. - Treat installed skills as executable instructions; avoid untrusted sources.
- If managing dotfiles with chezmoi, avoid
chezmoi addon live skills directories.