skillgram — One skill library, linked

Why We Stopped Linking 800 Skills Everywhere—and Built a Self-Curating Skill Hub

What happens when you use Claude Code, Codex, Cursor, Gemini, and OpenCode on the same machine? A candid look at our architecture, the hypotheses we tested, real telemetry from our workstations, and an invitation to try skillgram on yours.

skillgram 1.10 Python 3.9+ · stdlib only Windows junctions · POSIX symlinks · MCP stdio

1. The Fallacy vs. The Real Pain

When we started skillgram, our initial hypothesis was simple: "Keep one copy of every SKILL.md in ~/.agents/skills and link all of them into every coding agent." After living with 861 skills (89 MB) across 11 agent harnesses on Windows and Linux, we learned a hard truth:

The Fallacy: Saving SSD Megabytes 800 Markdown files take ~89 MB on disk. Saving megabytes on a modern SSD is not why you need a skill manager.
Pain #1: Context Rot (Token Bloat) Exposing 861 skills globally injects ~45,000 tokens of descriptions into every agent's system prompt on every session—degrading reasoning and routing accuracy.
Pain #2: Recursive Double-Loading Modern harnesses scan skills/ recursively. Linking both skills/<category> and skills/<skill> caused agents to load every skill twice (1,722 entries).
Pain #3: Untested Third-Party Slop Public skill directories are full of bloated, untested Markdown that collides with existing triggers or hides unsafe shell instructions.
Our thesis in 1.10: Disk links are for Single Source of Truth (fix a skill in Claude Code, and Codex/Cursor/Gemini immediately read the fix). Context is protected by Tiered Visibility (only seeds globally, project manifests per repo, and zero-token lazy reading via MCP).

2. Architecture: Three Tiers + Organic Curation

Instead of dumping the entire hub into every agent's global folder, skillgram separates storage, active exposure, and on-demand discovery:

1. ADMISSION & TRIAL skillgram gate <skill> Tokens · Injection · Collisions skillgram try <url> Isolated git worktree sandbox --accept seals upstream hash adopt --project . Absorbs local npx/git installs 2. SINGLE SOURCE OF TRUTH Active Hub (~/.agents/skills) Proven skills + SKILLMETA.json stack_hits · projects · unuse The Vault (_vault/) 0-hit skills archived safely 0 global links · 0 prompt tokens SQLite FTS5 Index Indexes Active Hub + _vault 3. TIERED AGENT EXPOSURE Tier 0: Global Seeds sync --seeds-only (2–5 skills) Tier 1: Project Scope use + mount (.agents/skills.json) Auto-unvaults on demand Tier 2: MCP Lazy Read skillgram_search + skillgram_read

3. Use Cases We Designed & Tested

Use Case A — Testing Third-Party Skills Without Polluting Your Workspace

Most developers do not write SKILL.md files from scratch—they discover skills like impeccable (UI craft) or dokploy (deployment) on GitHub and want to test them and pull upstream updates safely.

Because every skill is domain-specific, you cannot write one generic unit test for all of them. Instead, skillgram combines a deterministic Admission Gate with a disposable git worktree Trial:

# 1. Stage a third-party skill (or an upstream update) in a detached git worktree of your repo
python skillgram.py try https://github.com/author/impeccable --project ~/projects/my-next-app

# 2. Test it with your agent inside the isolated worktree, then either seal or discard:
python skillgram.py try impeccable --accept    # records upstream URL, commit SHA & verified hash
python skillgram.py try impeccable --reject    # removes the worktree and staging cleanly

Use Case B — Organic Curation: Let the LLM & Project Stack Vote

How do you know which skills actually work across hundreds of candidates? Real usage and survival.

4. Field Evidence: How It Performs on Our Machines

Below is the real telemetry from our primary Windows 11 development workstation running Claude Code, Codex, Cursor, Gemini CLI, Antigravity, Hermes, and Reasonix against a library of 861 skills:

89.0 MB Hub size across 861 skills in 18 categories
858 / 861 0-hit skills moved to _vault (still FTS5 searchable)
-99.4% Reduction in global junctions & startup prompt tokens
0 bytes Duplicated across agents after compact --apply

Real Output 1 — Compaction & Vault Audit on Workstation

$ python skillgram.py compact --vault-unused
hub: C:\Users\jics\.agents\skills (89,009,737 bytes)
native copies: 0 bytes | quarantine: 0 bytes | reclaimable: 0 bytes
dedupable: 0 (0 bytes) | unique native: 0 | divergent: 0
(dry-run: run `skillgram compact --apply --purge-quarantine` to reclaim space)
vault (_vault): 858 unused (0-hit) skills | 3 active (used/seeded)

Real Output 2 — Automated Admission Gate (skillgram gate)

Running skillgram gate on two real skills in our hub immediately surfaces token taxes and routing collisions against existing skills before they ever touch an agent's global prompt:

$ python skillgram.py gate skillgram/skills/brand-logo-extractor
skill: brand-logo-extractor (PASS)  hash: 7147b1bd3218f738
token budget: ~42 prompt tokens (always) | ~1570 body tokens (on read) | 1 aux files
contract (5 sections): ok | organic hits: 0 across 0 projects
routing collisions: imagegen (score 10), brand-voice (score 10), brand (score 9), powerpoint (score 8)

$ python skillgram.py gate skillgram/skills/anti-slop-guardrails
skill: anti-slop-guardrails (PASS)  hash: a791f6a5bef592c9
token budget: ~44 prompt tokens (always) | ~3046 body tokens (on read) | 0 aux files
contract (5 sections): ok | organic hits: 0 across 0 projects
warnings: SKILL.md is ~3046 tokens (>2500); split heavy reference text into references/
routing collisions: new-branch-and-pr (score 10), receiving-code-review (score 10), simplify-code (score 9)

Before vs. After on the Same Machine

Metric Naive Global Sync (Before) Tiered Hub + Vault + MCP (Now)
Skills discovered per agent 1,722 (861 flat + 861 via category links) 3 global seeds + 5–10 project skills
Global junctions on disk ~21,500 across agent homes < 80 (sync --seeds-only)
Startup system-prompt tax ~38,000 – 52,000 tokens every session ~150 tokens globally + on-demand skillgram_read
Access to the other 858 skills Always loaded in context (noisy) 100% indexed in FTS5; auto-unvaulted on use or read via MCP

5. Companion Ecosystem: skillgram + EdgePass

Managing an AI coding workstation has two halves: what your agents know (skills & instructions) and what your agents can execute and access (secrets, MCP daemons, tunnels, and local CI runners). We built skillgram and EdgePass so each lives cleanly on its own—zero hard dependency on the other—while snapping together automatically when both are present on the same machine:

Standalone: skillgram CLI + MCP server for SKILL.md governance: hub deduplication, contract & security gate, worktree trials, stack-affinity ranking, and zero-token vaulting.
Standalone: EdgePass Native desktop notch widget & control plane that injects OpenBao secrets into processes without exposing plaintext tokens in agent configs or logs, plus live LEDs for MCP servers and local GitHub Actions runners.
Connected via skillgram daemon EdgePass speaks to skillgram daemon over a local JSON-line pipe ({"op": "status"}, {"op": "sync"}) to surface real-time skill drift on a desktop LED and sync all harnesses in one click.
Discover the other half of the stack: Visit xhuk.github.io/EdgePass or the EdgePass GitHub repository (installable via winget install Xhuk.EdgePass) to see how secret injection, MCP health, and local runner supervision pair with skillgram.

6. Try It on Your Machine & Share Your Telemetry

If you run two or more coding agents (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, Aider), you can audit your current skill footprint in 60 seconds with zero external dependencies (Python 3.9+ stdlib only):

git clone https://github.com/Xhuk/skillgram
cd skillgram

# 1. See how many harnesses, native copies, and collisions you have right now:
python skillgram.py doctor

# 2. Measure duplicated bytes and 0-hit skills (dry-run, touches nothing):
python skillgram.py compact --vault-unused

# 3. Audit any skill's token cost, security, and trigger collisions:
python skillgram.py gate <path-to-any-skill>

# 4. Reclaim space, vault unused skills, and link only your seeds globally:
python skillgram.py compact --vault-unused --apply --purge-quarantine
python skillgram.py sync --seeds-only

Help us gather field evidence: Run python skillgram.py compact --vault-unused --json on your machine and share the JSON summary (or open a report with skillgram-report) in GitHub Issues. We are collecting real-world benchmarks on how many skills developers actually use per stack versus how many sit idle.