Skill Manager
Project-scoped declarative skill manager for coding agents that load skills from ./.agents/skills/ (and optionally ~/.agents/skills/).
One source, many projects, slim globals. Each skill lives once in a cached Source. Projects get symlinks (Links), not copies. Keep agent-global skills minimal; declare per project what you actually need.
Compatible with any agent that discovers skill directories containing SKILL.md under those paths (pi is one example).
Project Links live under ./.agents/skills/; user-global Links under ~/.agents/skills/ are managed with the same model via --global (see Global skills).
Features
- Declare and sync project skills — write
.skill-manager.json, runskill-manager sync - Inspect source and link status —
skill-manager list(linked/external/broken/unlinked) - Enable / disable — interactive filterable picker (TTY) or non-interactive batch
enable <repo> <name>.../disable <name>... - Manage source cache —
skill-manager source list|add|remove|update|available-skills - Global skills -
--globalflag applies any command to user-global skills (~/.skill-manager.json,~/.agents/skills/) - Scripting / CI — every command writes one compact JSON object when stdout is not a terminal (see Output); no flag to remember
Install
uv tool install cnife-skill-manager
# or: pipx install cnife-skill-manager
# from source (dev):
uv tool install .
# or run in-place:
uv run skill-manager
Configure
Create ./.skill-manager.json in your project:
{
"skills": [
{"name": "read", "repo": "tw93/Waza", "path": "skills/read"},
{"name": "kami", "repo": "tw93/Kami", "path": "."}
]
}
name: symlink name under./.agents/skills/(single path component; duplicates error)repo: GitHubowner/repo(both parts must be safe slug components)path: skill directory inside the repo (.for repo-root skills; must containSKILL.md; path traversal is rejected)
Usage
skill-manager sync # clone/fetch sources, link declared skills
skill-manager list # show sources and skill status
skill-manager enable # interactive TTY: filterable source → multi-select skills
skill-manager enable <repo> <name>... # non-interactive batch enable (path derived from cache)
skill-manager enable --all ... # include hidden/internal skills when resolving
skill-manager disable # interactive TTY: multi-select enabled skills
skill-manager disable <name>... # non-interactive batch disable
On a terminal, skill-manager list is a sectioned, column-aligned table:
Sources
╭──────────┬──────────┬───────╮
│repo │ HEAD │ status│
├──────────┼──────────┼───────┤
│tw93/Waza │ 7f7a1c8e │ cached│
╰──────────┴──────────┴───────╯
Skills
╭─────────┬────────┬────────┬───────────┬────────────────╮
│name │ status │ global │ repo │ path │
├─────────┼────────┼────────┼───────────┼────────────────┤
│read │ linked │ │ tw93/Waza │ skills/read │
│research │ linked │ │ tw93/Waza │ skills/research│
╰─────────┴────────┴────────┴───────────┴────────────────╯
nameis the bare skill name;statusis one actionable word per row:linked= normal,unlinked/broken= fixable withskill-manager sync,external= the link points elsewhere and is left aloneglobalcarries a cross-scope mark:⊕= also enabled globally from the same source,⚠= enabled globally from a different source (a conflict to resolve). Whichever mark appears is explained by the legend under the tablerepoandpathsit on the right: the low-value long fields never push the important ones off screen, and a narrow terminal folds a longpathrather than clipping it- Status words are colored by meaning (
linkedgreen,brokenred,external/unlinkedyellow);NO_COLORkeeps the table structure and drops the color - Long operations show one in-place progress line that leaves no residue; each operation ends as exactly one result line (
✓ repo action commit,✓ skill linked target) - Paths in
enable/disable/syncoutput are shown relative to the current directory when possible (.agents/skills/read), else~-abbreviated (~/.skill-manager.json), else absolute doctorgroups problems into one section per code, busiest code first, and states a fix once per section when every problem in it shares one; when fixes differ, each row keeps its ownfixcolumn
Batch enable / disable
enable and disable accept multiple skills in one invocation:
skill-manager enable tw93/Waza read write kami # enable several skills from one repo
skill-manager disable read write # disable several skills
- enable is atomic: every name is validated first; if any is missing or ambiguous, nothing is applied and all problems are reported at once (exit 1). Already-enabled names are idempotent no-ops. The whole batch syncs once.
- disable is lenient: disabling a name that is not enabled is a no-op, never an error.
- Interactive picker (TTY only): type to filter, ↑/↓ move, space toggle, Enter confirm, Esc clears filter then cancels, Ctrl-C cancels.
enableis two steps (source, then skills; already-enabled rows are locked).disableis one multi-select over current declarations. Non-TTY interactive attempts error with exit 1.
Global skills
Add --global to any of sync / list / enable / disable to target user-global skills instead of the project. The user's home is treated as a project: declarations live in ~/.skill-manager.json and links land in ~/.agents/skills/. Sources and the cache are shared across scopes.
skill-manager --global sync # link globally-declared skills into ~/.agents/skills/
skill-manager --global list # show global skills status
skill-manager --global enable <repo> <name>... # declare globally + sync (batch)
skill-manager --global disable <name>... # remove global declarations + links (batch)
skill-manager --global list | jq '.data.skills' # JSON when stdout is piped
Running skill-manager from ~ without --global targets ~/.skill-manager.json too (home is the global project) — intentional, not a collision.
Project vs. global scope
The two scopes answer different questions. The project declaration
(./.skill-manager.json, committed with the repo) is team-shared: it says
which skills the project needs for everyone working on it. The global
declaration (~/.skill-manager.json) is personal preference: it says which
skills you want everywhere, independent of any project.
Declaring the same skill in both scopes is a supported scenario when both come
from the same source — the project enables it for collaborators, you enable it
globally for yourself. list marks such benign overlap with ⊕; enabling the
same name from different sources across scopes is a hard error with a
resolution hint. The source cache is shared: a source is cloned once and both
scopes link against it.
Only sync and source update ever update already-cached sources. enable
and source add may clone a missing source (registering it in the global
config) but never pull — a cached clone is used as-is, however stale.
Source repository management
skill-manager source list # list registered sources and HEAD status
skill-manager source add <owner/repo> # add and clone a new source
skill-manager source remove <repo> # remove source (cache + config)
skill-manager source update [repo] # update one or all sources
skill-manager source available-skills [repo] # list skills in the cache (no project config)
skill-manager source available-skills --all # include hidden/internal skills
sync is idempotent and never overwrites an existing non-tool symlink (it skips with a notice). Sources are derived from the declared skills' repo fields.
Cache shape. A Source cache is a sparse slice, not a full mirror: it is cloned with git clone --filter=blob:none --sparse (history kept in full) and its working tree materializes only the directories that contain a SKILL.md — plus root-level files. The set is unfiltered, so hidden and noise directories (node_modules/…, .archive/…) land too; anything --all can discover is therefore on disk. A repo whose root holds SKILL.md is materialized whole, since such a skill's assets may live anywhere.
sync / source update re-derive the slice on every pull, so upstream skill directories appear after one update, and a pre-existing full clone is slimmed in place — no migration step. Need the full tree back? Run git's own command:
git -C ~/.cache/skill-manager/repos/<owner>/<repo> sparse-checkout disable
Slicing touches the working tree only; objects outside it are fetched lazily from origin when needed, so history commands (git log -p, git diff) need the network and fail slowly when the remote is unreachable, while rev-parse / status / ls-tree (what doctor, sync and discovery use) stay offline-safe. Shrinking .git after heavy lazy fetching means removing the source and adding it again. Requires git 2.36+: the slice is applied with git sparse-checkout set --cone --skip-checks (cone mode landed in 2.35, the flag that declares these names directories in 2.36), and cone mode is what keeps root files and takes skill directory names literally instead of as patterns. Older git fails loudly rather than materializing the wrong paths; blobless partial clones date back to 2.19. A server that rejects --filter degrades to a normal clone: less saving, no failure.
Cold start (new source, no hand-edited JSON)
skill-manager source add <owner/repo> # clone + register globally
skill-manager source available-skills <owner/repo> # optional: discover skill names
skill-manager enable <owner/repo> <name> # declare in project + sync
Non-interactive enable <owner/repo> <name> clones a source that is not yet cached and registers it in the global config — the same registration sync performs — then declares the skill and syncs the batch. It never pulls: a source that is already cached is used as-is, however stale. The repo-less form enable <name> resolves names across cached sources only and never clones; for that form, introduce sources with source add (or declare in .skill-manager.json and sync).
Source skill discovery
source available-skills and enable share one scanner over the cached Source checkout:
- Default: skip noise directories (
node_modules,dist,build,__pycache__), directories whose names start with.(e.g..git,.archive,.curated), and skills whose frontmatter hasmetadata.internal: true. --all: include those hidden/internal skills. Skill-root truncation still applies: a directory that containsSKILL.mdis one skill and is not walked further.- Declared skill
pathvalues (including under.archive/) are unaffected —sync/liststill honor project config as written.
Layouts like skills/.curated/... therefore need --all to appear in discovery (stricter default than some installers that whitelist curated paths).
The cache materializes every directory holding a SKILL.md, so this scanner sees exactly the skills a full clone would.
Output
Output has two tracks, and stdout alone decides which one runs — is it a terminal or not?
- Human output (stdout is a TTY): Rich rendering. Structured data becomes sectioned, box-drawn tables; progress, empty states and errors stay a plain line stream that never pretends to be a table. Errors are
✗ Error: …on stderr. - JSON output (pipe, redirect, CI): one compact JSON object on stdout, no color, no progress lines.
skill-manager list | jq '.data.skills[].name' # JSON: no flag to remember
skill-manager doctor > report.json # JSON here too
Success is {"ok":true,"data":…}; failure is
{"ok":false,"error":{"code","message"}} (exit 0 / 1 / 2 for success /
business error / usage error). Separators are tight (, and : carry no
space), so a reader pays no tokens for decoration. A usage error on a pipe is
the same JSON envelope rather than click's ASCII help, so one parser reads
every failure. Field shapes are unchanged, so existing paths like
jq '.data.problems[].code' keep working. --help / --version /
--show-completion are CLI metadata: they stay click-native on both tracks.
In project scope, list and enable JSON include a per-skill boolean
enabled_globally (matched by skill name against ~/.skill-manager.json).
It is omitted under --global. If the global declaration exists but cannot be
read, the command still succeeds, values are false, and a top-level
warnings: [{code: "global_config_error", message}] is added. Human list
shows the same overlap in the global column (⊕ same source, ⚠ different
source); interactive enable uses ✓ (project-locked) and ⊕ (global) glyphs
without blocking selection.
Paths (XDG)
| What | Path |
|---|---|
| Global config | $XDG_CONFIG_HOME/skill-manager/config.json (default ~/.config/skill-manager/config.json) |
| Source cache | $XDG_CACHE_HOME/skill-manager/repos/ (default ~/.cache/skill-manager/repos/) |
| Project skills | ./.agents/skills/ |
| Global skills declaration | ~/.skill-manager.json |
| Global skills | ~/.agents/skills/ |
A Source cache is a sparse slice of its repo — an ordinary git worktree you can run git in, but with only the skill directories materialized (see Source repository management).
Roadmap
The What — actionable tickets — lives in the issue tracker. This section is the Why: the shape skill-manager is growing toward.
Dual-user design
skill-manager has two users, and every surface must serve both:
- Humans — an interactive CLI, and a project config (
.skill-manager.json) simple enough to read and edit by hand. - Agents — batch-friendly flags and machine-readable output for scripts, CI, and AFK coding agents.
Any source
A Source shouldn't be locked to owner/repo on GitHub. Arbitrary Git URLs and local directories should qualify too. Pinning a Source to a specific commit or tag for reproducibility is a lower-priority future direction.
One model, project and global
Project Links and user-global Links (~/.agents/skills/) share one declaration-and-sync model via the --global flag: keep globals slim, declare per project what you actually need.
Release files for cnife-skill-manager 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cnife_skill_manager-0.11.0.tar.gz | 118.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cnife_skill_manager-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 167.8 kB
Release files / cnife_skill_manager-0.11.0.tar.gz
| Download URL | cnife_skill_manager-0.11.0.tar.gz |
|---|---|
| Size | 118.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9e581ca6662f019e2255535b3eab23d41fd612c631c2d4defb6bebc46bc2ee5
|
|
BLAKE2b-256 checksum How to use checksums |
c224fc7155baee7dee7a15993ba3d19cb45ca8da5f6d9444fdff3b573d793a6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency logRelease files / cnife_skill_manager-0.11.0-py3-none-any.whl
| Download URL | cnife_skill_manager-0.11.0-py3-none-any.whl |
|---|---|
| Size | 48.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e16f26cde1542d43607690ecf2edb2e909029bf0bd406b2bfe2cd1b43e7c98c6
|
|
BLAKE2b-256 checksum How to use checksums |
070401d2550032b59627e0687df0eceeef94ad9939ec39d6ccfc4ef58c241014
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.
Transparency log