skillink
2026-11-25
A manifest-driven symlink manager and offline catalog for AI skills. Keep skills in their own Git repositories, declare which ones each agent receives, and inspect the resulting links.
Why#
Using AI skills across Claude Code, OpenAI Codex, and pi quickly gets annoying. Each agent comes with its own skill directory, plugin or marketplace system, and quirks. On top of that, a few practical tensions pile up:
- Multiple agent systems: Each harness looks in a different place (
~/.claude/skills/,~/.codex/skills/,~/.pi/agent/skills/,~/.agents/skills/) and pushes its own plugin mechanism. Keeping track of what is installed where—and avoiding duplicate loading across plugins and local directories—turns into tedious bookkeeping. - Fragmented distribution: Skills circulate in all kinds of ways—plugin marketplaces, package-manager installers, repo bundles, or plain text files. Underneath that packaging sits the same common denominator: a folder with a
SKILL.mdfile (and optional supporting files). Skillink works directly at that layer. - Multiple repos with different visibility: Skills naturally split across repositories by audience: private personal skills (in dotfiles or a personal repo), team or lab skills, and public collections. Some personal skills should stay off a work or institutional agent profile, and personal wrappers sometimes intentionally replace a shared team skill of the same name.
- Different models need different levels of detail: A concise
SKILL.mdworks well for frontier (“smarter”) models, whereas smaller or local (“dumber”) models often need more explicit step-by-step instructions. Forking the whole skill folder just to expand the prompt duplicates its scripts and references. - Dependencies and supply-chain risk: Many skill managers pull in Node/npm dependency trees, fetch skills automatically from remote registries, or run third-party setup code. With AI agents that can execute commands and read local files, a large installer stack adds unnecessary supply-chain attack surface.
What I wanted was a minimal, plain-text setup: keep skills in their own Git repositories, declare in one manifest which skills and instruction variants each agent profile receives, review upstream updates before they go live, and keep the tool itself tiny and dependency-free. No npm, no third-party packages, no background daemon, no remote registry, and no auto-cloning.
That’s skillink.
Key ideas#
- One manifest across all agents: A single TOML file (
skills.toml) declares local[sources](private, team, public) and named[profiles.<name>]targets withinclude,exclude, and optionalvariants. - Zero third-party dependencies: Pure Python 3.11+ standard library (including a small stdlib YAML frontmatter parser), ~1,280 lines across five files. Runs with plain
python3or uv. Installation never touches the network and never executes code from a skill. - Skills stay in their own repositories: Skillink creates symlinks to existing local checkouts. You clone, inspect, and manage repos with your normal Git workflow.
- Per-profile instruction variants: A profile can swap a skill’s default
SKILL.mdforvariants/<name>.md—for instance, giving a smaller model more detailed instructions—while sharing the skill’sscripts/,references/, and other supporting files. - Safe-by-default updates and auditing: Source updates fetch and summarize incoming commits first (
--difffor full diffs,--applyto fast-forward). Installation blocks symlinks that escape a source root, and--auditflagssource/*wildcards, newly appeared wildcard skills, scripts, executables, hidden dotfiles, and internal symlinks. - Tracked symlink ownership: Each target directory stores a
.skillink.jsonrecord tied to one manifest and profile. Reconciliation prunes only links Skillink owns and refuses to overwrite modified entries or unrelated files. - Built-in offline catalog: Generate a single self-contained HTML file with search, source and profile filters, and expandable instructions read directly from your local skill files.
Setup and quick start#
Skillink is an early prototype extracted from my dotfiles setup, released under the MIT license. It requires Python 3.11+ (stdlib only) and Git.
Clone the repository and try the bundled example first:
git clone https://github.com/yy/skillink
cd skillink
python3 bin/list_skills.py --manifest examples/skills.toml
python3 bin/install_skills.py demo --manifest examples/skills.toml --dry-run
python3 bin/install_skills.py demo --manifest examples/skills.toml
python3 bin/install_skills.py demo --manifest examples/skills.toml --check
python3 bin/install_skills.py demo --manifest examples/skills.toml --audit
python3 bin/list_skills.py --manifest examples/skills.toml --open
The demo installs a single greeting skill into .demo/skills/ inside the checkout and leaves your agent directories untouched. Every script also works via uv run if you prefer uv to supply Python 3.11+.
For everyday use, keep skills.toml in your dotfiles repository (for example, ~/git/dotfiles/skillink/skills.toml) and link it into your user config directory once:
mkdir -p ~/.config/skillink
ln -s ~/git/dotfiles/skillink/skills.toml ~/.config/skillink/skills.toml
All three scripts resolve the manifest in the same order: --manifest, then SKILLINK_MANIFEST, then $XDG_CONFIG_HOME/skillink/skills.toml (defaulting to ~/.config/skillink/skills.toml). Relative source and target paths resolve from the real manifest file, even when accessed through that symlink.
Manifest format#
skills.toml has three top-level keys: format_version (currently 1), sources, and profiles.
format_version = 1
[sources]
personal = "../skills"
team = "../../team-skills/skills"
public = "../../public-skills/skills"
[profiles.claude]
target = "~/.claude/skills"
include = ["personal/*", "team/*", "public/check-refs"]
exclude = ["team/new-project"]
[profiles.pi]
target = "~/.pi/agent/skills"
include = ["personal/review", "public/check-refs"]
[profiles.pi.variants]
"public/check-refs" = "detailed"
Each [profiles.<name>] table accepts four fields:
| Field | Required | Meaning |
|---|---|---|
target |
Yes | Directory receiving the installed skill symlinks. |
include |
Yes | List of source/skill identifiers or source/* selections. May be empty. |
exclude |
No | Exact included identifiers to remove after expansion. Defaults to []. |
variants |
No | Map of selected identifiers to variant names. Defaults to {}. |
A few strict rules catch mistakes before any link changes:
source/*selects immediate child directories containingSKILL.md, including future additions to that checkout. There is no recursive discovery or general glob syntax. For third-party public repos, explicitsource/skillentries avoid silently picking up new skills on future installs.- Every skill installs under its directory name (without the source prefix), and its YAML frontmatter
namemust match that directory name (lowercase letters, digits, and single hyphens, up to 64 characters), along with a nonemptydescriptionand instruction body. - Selecting the same installed skill name from two sources is an error until you exclude one explicitly.
- Exclusions must match an included identifier, and only sources referenced by the chosen profile need to exist locally.
- Profiles are independent and have no inheritance. Each profile manages only its own
targetdirectory; extra discovery paths and plugins remain configured in the agent itself.
Variants#
By default, each selected skill links directly to its source folder, using SKILL.md (typically kept concise for frontier models). When a profile targets a smaller or less capable model that needs more explicit guidance, you can place a complete alternative skill file under variants/:
check-refs/
├── SKILL.md
├── variants/
│ └── detailed.md
├── scripts/
└── references/
Selecting "public/check-refs" = "detailed" in [profiles.<name>.variants] creates a real directory for check-refs in the target, symlinks SKILL.md to variants/detailed.md, and symlinks every other sibling entry (scripts/, references/, etc.) while omitting variants/. The variant file must keep the canonical frontmatter name and exist on disk; there is no silent fallback.
Safety, ownership, and migration#
Each target directory holds a .skillink.json file recording the manifest path, profile name, and every link Skillink owns. Before writing anything, the installer validates the manifest, checks every selected skill file, verifies symlink boundaries, and checks the target directory for conflicts. Unrelated files stay untouched, and Skillink refuses to overwrite a managed link that was modified externally.
Built-in safety checks target common supply-chain issues when pulling skills from third-party repositories:
- Symlink-escape blocking: Any symlink inside a selected skill (or a symlinked skill directory itself) that resolves outside its configured source root is rejected before installation changes any links.
SKILL.mdand selected variant files must resolve inside their own skill directory. - Wildcard arrival notices: When a profile already has a
.skillink.json,--dry-runand normal installs annotate newly appeared wildcard skills with(new via source/*). - Profile auditing (
--audit): Inspects a profile without changing links and flagssource/*wildcards, newly discovered wildcard skills, executable files, script files (.sh,.py,.js, etc.), hidden dotfiles, and internal symlinks, exiting1when findings are reported.
Three flags help when adopting existing setups:
--safe: adds missing skills only and leaves existing and obsolete entries alone.--migrate: adopts existing symlinks pointing into configured source roots, and can replace a whole-directory symlink to a manifest source with individual skill links.--import-state PATH: imports a compatible version-1 ownership file in the target directory (such as a predecessor.dotfiles-skills.json), verifies all recorded links, writes.skillink.json, and archives the original as<filename>.migratedwithout changing any skill symlinks.
Offline catalog#
bin/list_skills.py inspects the manifest and reads descriptions and instructions directly from the local skill files:
python3 bin/list_skills.py # List all skills, descriptions, and profiles
python3 bin/list_skills.py citations # Search names and descriptions
python3 bin/list_skills.py --profile pi # Show one profile's skills and variants
python3 bin/list_skills.py --html # Write ~/.local/share/skillink/skills.html
python3 bin/list_skills.py --open # Generate the HTML catalog and open it
The HTML catalog is a single offline file with client-side search, source and profile filters, and expandable instruction blocks, with zero external assets. Because it embeds full local skill instructions and file paths, generated files are written with owner-only permissions (0600) and meant to stay local.
Updating sources#
Because installed skills symlink straight into your source checkouts, pulling a repository immediately changes what your agents read. bin/update_sources.py therefore defaults to a read-only fetch-and-review pass:
python3 bin/update_sources.py # Fetch and list incoming commits and changed files
python3 bin/update_sources.py --diff # Fetch and print full diffs of incoming changes
python3 bin/update_sources.py --apply # Fast-forward clean repos with git pull --ff-only
python3 bin/update_sources.py --dry-run # Preview without network requests
The updater resolves each configured source to its Git root and deduplicates shared checkouts. It skips dirty working trees and checkouts without a tracking branch—so detaching HEAD to a reviewed commit or tag pins a third-party repository cleanly—and exits nonzero if any checkout failed, diverged, or was skipped.
CLI reference#
# Install, check, audit, or migrate a profile
python3 bin/install_skills.py PROFILE [--manifest PATH] [--target DIR]
python3 bin/install_skills.py PROFILE --dry-run
python3 bin/install_skills.py PROFILE --check
python3 bin/install_skills.py PROFILE --audit
python3 bin/install_skills.py PROFILE --safe
python3 bin/install_skills.py PROFILE --migrate
python3 bin/install_skills.py PROFILE --import-state PATH [--dry-run | --check]
# Browse or export the catalog
python3 bin/list_skills.py [QUERY] [--profile PROFILE] [--manifest PATH]
python3 bin/list_skills.py [--html [PATH]] [--open]
# Fetch, review, or fast-forward clean source repositories
python3 bin/update_sources.py [--manifest PATH] [--dry-run]
python3 bin/update_sources.py [--manifest PATH] --diff
python3 bin/update_sources.py [--manifest PATH] --apply [--dry-run]