skilletor CLI — installs and updates skills, agents and rules from remote sources for Claude Code, Codex and Hermes Agent. Use when adding a source, installing/uninstalling a skill/agent/rule, all of a type or a name pattern (`*@source`, `perl-*@source`) from a source, writing or installing a bundle (`bundles/<name>.yaml`, `bundle:name@source`, `install.bundles`), switching an item on/off per project via vars, editing a skilletor.json or its `targets`, shipping a rendered skill inside a plugi...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Skilletor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/getty-skilletor-993a9389)
---
name: skilletor
description: "skilletor CLI — installs and updates skills, agents and rules from remote sources for Claude Code, Codex and Hermes Agent. Use when adding a source, installing/uninstalling a skill/agent/rule, all of a type or a name pattern (`*@source`, `perl-*@source`) from a source, writing or installing a bundle (`bundles/<name>.yaml`, `bundle:name@source`, `install.bundles`), switching an item on/off per project via vars, editing a skilletor.json or its `targets`, shipping a rendered skill inside a plugin repo (`\"into\": \"plugin\"`), running sync/check/status, a skilletor hook printing a `getty-bun: ` line or failing or hanging on its first start (Bun runtime, `~/.getty`), asking 'where does this skill come from' or 'why did this file change', or before editing a file skilletor manages (including skilletor-rules.md and the skilletor pointer block in AGENTS.md)."
---
# skilletor — remote skills, agents and rules for Claude Code, Codex and Hermes Agent
## Running the CLI
- **Claude Code:** the plugin's `bin/` is on the Bash tool's `PATH`; `install.sh`'s `skilletor` also works.
- **Codex:** no `PATH` entry: `skilletor` on `PATH`, else `<plugin root>/bin/skilletor`, two directories
above this SKILL.md (`…/skilletor/<version>/skills/skilletor/SKILL.md` → `…/skilletor/<version>/bin/skilletor`);
`<version>` from that listed path, never from memory. Codex runs skilletor's hooks only once
trusted in `/hooks`, again after an update changes them; until then `sync` by hand.
- **Runtime:** Bun, pinned in the plugin's getty-bun starters (`bootstrap/getty-bun.*`), installed
under `~/.getty` on first use — no Node; a slow first hook after an install or update is
that download. Starters: Linux (glibc), macOS, Windows x64; no host has run them yet.
A `getty-bun: ` line (the starter's, exit 1), `agent-bun-runtime: HOOK_INPUT_INVALID` (the hook did
not run), each platform's limits, the CLI on native Windows: [references/runtime.md](references/runtime.md).
- **Hermes Agent:** `hermes skilletor <command>` runs the CLI the plugin uses; setup: [references/hermes.md](references/hermes.md).
## Do not hand-edit a managed file — change it in the source
Files skilletor owns are **build artifacts**: every `sync` re-renders them from the source
and overwrites local edits (the report names each). Edit the item **in its source** and
re-`sync`. Author mode: `"shared": { "local": "~/dev/skills" }` in your **user** config
overrides the same-named `git` source, read directly on every sync while that checkout exists.
| Type (under `~` or the project root) | Claude Code | Codex (`$CODEX_HOME` defaults to `~/.codex`) |
|---|---|---|
| skill | `.claude/skills/<name>/` | `.agents/skills/<name>/` |
| agent | `.claude/agents/.local.<name>.md` | `.codex/agents/.local.<name>.toml` (user: `$CODEX_HOME/agents/`) |
| rule | `.claude/rules/.local.<name>.md` | a section of `.codex/skilletor-rules.md` (user: `$CODEX_HOME/skilletor-rules.md`) |
Hermes Agent gets **skills only**: `<Hermes home>/skills/<name>/` (user), `.hermes/skills/<name>/`
(project; none while `codex` is a target there) — [references/hermes.md](references/hermes.md).
A file is managed when its path is in `<scope>/.claude/skilletor.lock.json` (Codex keys
`codex:skills/<name>` etc., Hermes `hermes:skills/<name>`, plugin `plugin:skills/<name>`) — check the lock before editing;
files not in it are yours. In `AGENTS.md` only the block between `<!-- skilletor:begin -->`
and `<!-- skilletor:end -->` is managed; in a `.gitignore` and the project's `.worktreeinclude`
only the one between `# >>> skilletor >>>` and `# <<< skilletor <<<`. A conflict blocks the
whole item, and `sync --force` can **delete** the user's own files: read
[references/sync.md](references/sync.md) before forcing, and when a report shows a conflict,
a partial item, an overlap or `git rm --cached` warning, or a due `check`.
## Commands
```bash
skilletor add [name] <spec> [--project] # add a source (resolves shorthand, trusts it), then sync
skilletor source list [--json] | source remove <name> [--project] [--force] # --force: even with installed items
skilletor available [source] [--json] # catalog of trusted sources: type, name, description, installed?
skilletor install <item>... [--project] # name@source (type:name@source if ambiguous), bundle:name@source
skilletor install 'rule:*@shared' 'skill:perl-*@shared' # wildcard/pattern: type prefix required, quote it
skilletor uninstall <item>... [--project] # [type:]name@source (no type: every list); wildcards, bundle: as written
skilletor sync | check | status # --scope user|project|all, --json, --project-dir <dir>
skilletor sync --force # overwrite and adopt unmanaged files reported as conflicts
skilletor trust <source> # confirm a project-declared source (shows the backend it trusts)
```
`add`, `install`, `uninstall`, `source remove` edit one `skilletor.json`, then sync; a config
error there → exit 2, the edit stays saved. `uninstall` or `source remove` of an entry or
source that config does not declare → exit 1, config untouched even with `--force`; the error
names what covers it or where else it is declared. `check` writes nothing; non-zero = a sync
is due. An option the command does not take → exit 2, nothing runs (`--project-dir` goes with
all); `-h` anywhere only prints usage, `-v` only as first argument.
## Sources
Sources use `skills/<name>/`, `agents/<name>.md`, `rules/<name>.md`; Claude plugin repos
work too (`skilletor add obra/superpowers`, `skilletor add anthropics` → anthropics/skills),
and a repo's own `.claude/` items (`skilletor add Getty/karr`). Skills anywhere else: set
`path` on the entry. A GitHub/GitLab/Codeberg/Hugging Face tree link
(`github.com/o/r/tree/<ref>`, `…/releases/tag/<tag>`) adds the repo pinned to `<ref>`. `add`
never replaces a source: to pin one already configured, set `ref` in its entry by hand
(`{ "ref": "v2" }` in `skilletor.local.json` pins a project's source on this machine). Read
[references/sources.md](references/sources.md) for `add`'s default name, every link form, its
exit-1 cases, `path`, and the rules for source names and entry fields.
## Config
The declaring file sets the scope: `~/.claude/skilletor.json` (user, installs under `~`),
`<project>/.claude/skilletor.json` (project, committed), `<project>/.claude/skilletor.local.json`
(machine-local, not committed; installs like project).
A project with committed `skilletor.json`, Claude among its targets, no `"claudeSettings": false`, and an identifiable, declarable skilletor marketplace may get the plugin requirement in committed `.claude/settings.json` at sync.
Commit an `… updated — commit it` result with `skilletor.json`; `skilletor.local.json` alone and Codex-only projects do not trigger this.
Unlike an unresolved project scope, a plugin addition that would change implicit targets skips only settings; items sync normally, and it writes neither `targets` nor provenance. Set explicit project `targets` and sync; it is not `check` drift.
A worktree move triggers a sync attempt; ambiguous project targets leave that scope untouched — check its move context and targets before a hand `sync` there. Details: [references/sync.md](references/sync.md).
```json
{
"sources": {
"shared": { "git": "https://github.com/Getty/skills", "ref": "main" },
"team": { "url": "https://skills.example.com/skills.tar.gz" },
"mine": { "local": "~/dev/my-skills" }
},
"install": { "skills": ["perl-moo@shared"], "agents": ["karr@shared"],
"rules": ["commit-style@team"], "bundles": ["perl@shared"] },
"vars": { "kubernetes": true }, "gitignore": true, "checkInterval": 1800
}
```
- Only `skill`, `agent`, `rule` are installable — never hooks, settings or MCP configs.
- `{ "skill": "name@source", "into": "plugin" }` ships a skill in this plugin repo: [references/sync.md](references/sync.md).
- `ref` (git) is a plain branch, tag or commit name — omit it, never `""`, for the remote's
HEAD; `url` is `https://` only. `ref` and `path` merge project < user < local, replaced whole.
- `gitignore` (default true: commit `skilletor.json` and each `.gitignore` the report names)
and `checkInterval` (user file only): [references/sync.md](references/sync.md).
- `targets` (any of `claude`, `codex`, `hermes`) in the user file is the machine allowlist
and user-scope set; unset detects Claude/Codex as machine targets (`hermes` still needs explicit user opt-in). Projects
use local `targets` > committed `targets` > actual local harness evidence, inside that allowlist.
Skilletor-owned generated files and empty settings or settings with only skilletor-generated plugin/marketplace declarations are not evidence. No evidence
bootstraps a sole machine target; several stay untouched and warn. Explicit project `targets`
can choose both harnesses in a fresh checkout; an invoking hook never changes them. Details: [references/codex.md](references/codex.md).
### Wildcards and name patterns — `*@source`, `perl-*@source`
`"rules": ["*@shared"]` (or `"rule:*@shared"`) declares every rule the source offers; `*`
matches anywhere in the name (`"skills": ["perl-*@shared"]`, `"rule:*-style@shared"`),
re-expanded on every sync. A pattern matching nothing warns; a bare `*` stays silent. An
explicit entry beats a wildcard (warning if from another source). A source that can't be
resolved (offline, untrusted, broken) keeps everything it installed.
An item installed by a wildcard or bundle can't be uninstalled by name: uninstall
`type:*@source` / `bundle:name@source`, or gate the item via vars (empty render → skipped).
## Bundles — `install.bundles`
A source's `bundles/<name>.yaml` (or `.yml`) names a set of items; a config declares it
once. Vars: `source defaults < bundle < user < project < local`. A bundle naming another
source's items (`name@<address>`): `install bundle:` offers to add it (no TTY: exit 1,
prints `skilletor add …`); **`sync` and hooks never add sources** — they warn and skip those
items. Put an agent and the skills its `skills:` list names in one bundle (a user agent
never sees project skills). Read [references/bundles.md](references/bundles.md) before
writing one, and on a bundle error or a `skills not installed` warning.
## Templates
A source file ending in `.njk` is rendered with Nunjucks (installed with `.njk` stripped);
every other file is copied byte for byte. A `.njk` main file that renders empty (after its
frontmatter) switches the item off in that scope and target, installed copy removed. A `{% if %}`
in frontmatter opens with `{%-`, or its blank line silently truncates a `skills:` list. Read
[references/templates.md](references/templates.md) before writing or debugging a template
(context variables, undefined `vars.*`, `f` beside `f.njk`, the on/off pattern).
## Trust
`skilletor add` (or your own user config or `skilletor.local.json`) trusts a source. A
backend from a cloned repo's committed `skilletor.json` — a source only it declares, or a
`local`/`git`/`url` it adds to one of yours that ends up used — is neither fetched nor
rendered until `skilletor trust <name>`, which trusts exactly the backend in use; a changed
address or a switch of that backend (a `local` dir appearing or vanishing) lapses it. A
project never changes what your user-scope items are built from. Trust means code
execution, the same level as installing a plugin.