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:

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#

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:

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:

Three flags help when adopting existing setups:

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]

Receive my updates

YY's Random Walks — Science, academia, and occasional rabbit holes.

YY's Bike Shed — Sustainable mobility, urbanism, and the details that matter.

×