Digital Food for the Analog Soul
by CLOUDWERX LAB
skills keeps your whole library of agent skills on disk and loads only the ones a task needs, when it needs them. Search takes a few milliseconds. Your agent's startup context stays tiny instead of carrying a catalog of every skill you own.
It's one small Rust binary that reads the standard skill format (a folder with a SKILL.md, optional references/, scripts/ and assets/), so everything you already have keeps working.
Skills are great, but the usual way of using them doesn't scale. Put a hundred of them where your agent looks and every single conversation starts by paying for the name and description of all hundred, whether you need them or not. The agent also gets worse at picking the right one when there are that many to choose from, and one careless read of a big skill can drop a couple hundred thousand tokens of docs into the context at once.
So I flipped it around. The library lives on disk. The agent gets one tiny instruction (skills skill prints it), and from then on it searches, loads and fetches only what it needs:
skills search "pdf merge" # find the skill
skills load pdf-tools # read its instructions
skills ref get pdf-tools merge # pull one reference page, not the whole folder
skills run pdf-tools split.py in.pdf # run a bundled script, only the output comes backMy own library is 130 skills in 3,377 files, about 14.8 million tokens. The instructions alone are around 400 thousand. Listing all of them takes 4 ms, and the agent only ever sees what it asked for.
- Fast. Native Rust, no runtime, about 4 ms to list a library of 130 skills.
- Progressive loading. Search, then load, then fetch one reference or run one script. Each step costs only what it returns.
- Guarded. Loading a whole reference folder is capped by a token limit unless you say
--force, so a slip can't flood the context. - A real manager.
newscaffolds a valid skill,installtakes skills from a git repo or a folder,validatechecks them against the format (including every link),removeasks first. - Slash commands on demand.
pinlinks a skill into an agent's own folder so it shows up as a slash command,unpintakes it away,doctorrepairs what breaks. - Self-teaching.
skills skillprints a guide built into the binary, so an agent can learn the whole tool with one command. - Clean output. Colors only when it's a terminal, so piping into a context window stays clean.
- Shell completions for fish, bash and zsh that know your skill names.
You need Rust 1.85 or newer to build it, or just grab a binary.
cargo install --git https://github.com/CLOUDWERX-DEV/skills-cliOr download a binary from the releases page, put skills on your PATH, and you're done. There's a PKGBUILD for Arch too.
Then point it at your skills (it already looks in ~/.agents/skills, ~/.claude/skills, ~/.codex/skills and ~/.gemini/antigravity-cli/skills):
skills config add ~/my-skills
skills listAdd this to your agent's instructions (its system prompt, rules file, whatever it reads at startup). It's the only thing that has to be in context:
### Skills
You have the `skills` CLI. Keep context lean by loading skills on demand instead of relying on a preloaded catalog.
1. Run `skills skill` once to read the full guide.
2. For a task in a specific domain, run `skills search <words>`.
3. Load what you need with `skills load <skill...>`. Never guess an API a skill documents.
4. Don't dump reference folders. Use `skills ref list|search|get <skill> ...`.
5. Run bundled scripts with `skills run <skill> <script> [args]`.The same guide is a proper skill in skills/skills-cli, so you can also install it where your agent reads skills:
skills install CLOUDWERX-DEV/skills-cli --skill skills-cliskills list # cards with descriptions and token weights
skills list --table # one line each
skills search containers # ranked search
skills load pdf-tools docx --deps # instructions, plus what they depend on
skills info pdf-tools # structure and token weight
skills files pdf-tools # every file, with size and tokens
skills which pdf-tools --ref merge # a path, for scripts
skills stats # the whole libraryskills ref list pdf-tools # what's there
skills ref search pdf-tools "merge pages" # search inside
skills ref get pdf-tools merging # fuzzy names work
skills ref all pdf-tools # everything, guarded by a 30,000 token limit
skills run pdf-tools split.py in.pdf # python, bash, fish, node or a binaryskills new pdf-tools --description "Work with PDF files. Use when a task involves a PDF."
skills install owner/repo # from GitHub
skills install https://example.com/x.git --skill pdf-tools
skills install ./some-folder --force
skills remove pdf-tools # shows what it would do
skills remove pdf-tools --yes
skills validate # the whole library, links includedskills pin pdf-tools --agents claude,codex # shows up as /pdf-tools
skills pinned
skills unpin --all # back to lean context
skills doctor --fix # repair dead links and permissionsSupported agents for pinning: claude, codex, agy, agents, opencode, pi and hermes.
skills completions installWhere it looks, in order: -d DIR flags, then $SKILLS_PATH (colon separated), then ./.agents/skills and ./.claude/skills in the current folder, then the config file, then the defaults above. skills config show prints what it found.
The config file is ~/.config/skills-cli/config.toml:
skills_dirs = ["~/my-skills", "~/.agents/skills", "~/.claude/skills"]
max_ref_tokens = 30000More in docs/skill-format.md.
- Scripts run as you.
skills runexecutes a script from a skill with your permissions, the same as running it yourself. Read a skill's scripts before you install it from somewhere you don't trust. See SECURITY.md. - Token counts are estimates. They're a quick approximation (about four characters a token), good for comparing sizes, not for billing.
- It never deletes through a link.
removeandunpinremove a link, never the folder it points at.
cargo test
cargo clippy --all-targetsThe tests build a throwaway library and home folder, so they never touch your real skills. CONTRIBUTING.md has the rest.
If it's useful to you, you can buy me a coffee. More from us at cloudwerxlab.com and github.com/CLOUDWERX-DEV.
MIT licensed. See LICENSE.
