How skillgram operates
Three plates. No screenshots, no runtime required: the loop, the files it writes, and the arithmetic that decides which skills a repo is offered.
The loop, on one page
The library is the store; a project is a view of it; the usage record is what the view remembers. Everything below is a command you can run, not a dataflow diagram of internals.
- One store. Every skill exists once, in the hub. Nothing is copied into an agent.
- Views, not copies. Each harness gets links into that store, so fifty agents cannot drift from each other.
- The set is a project file.
usewrites.agents/skills.json;mountmaterialises it in every harness layout the project needs. - The record is declared.
touchandusewrite who used what, from which harness. skillgram cannot see what an agent reads, and never pretends to. - Taste is explicit. A seed (
skillgram seed <skill>) outranks the ranking in every futurebootstrap;--neverdoes the opposite.
What
mount --apply leaves in a repoThe dangerous part of a link is that git does not know what one is: it sees a directory and would commit the skill as a copy. So the scope is tracked and the links are not.
<repo>/ ├── AGENTS.md + protocol block ├── .gitignore + links block ├── .agents/ │ ├── config.json tracked · project name │ ├── skills.json tracked · the set + hashes │ └── skills/deploy → hub link · ignored ├── .claude/skills/deploy → hub link · ignored ├── .codex/skills/deploy → hub link · ignored ├── .cursor/skills/deploy → hub link · ignored └── … one dir per installed harness
- Tracked
- The two JSON files are the project's memory: what it has, with the hash that detects drift. Commit them — that is what the next harness reads.
- Ignored
- A delimited block in
.gitignorecovers every directory the mount writes, sogit add -Acannot turn a link into a copy. Idempotent; delete the block to undo it. - Protocol
- The block between
<!-- skillgram:protocol:begin -->markers tells any agent, in any harness, to read the record before choosing and to declare what it used. - Reversible
skillgram unuse <skill>…drops links and manifest entries; nothing in the hub is touched.
How a candidate earns its place
Deterministic scoring, no model in the loop: where a tag appears decides its weight, anything under the line is dropped instead of padding the list, and a seed comes first whatever its score.
| Where the tag appears | Weight |
|---|---|
| skill name | 3 |
| skill category | 2 |
body of SKILL.md | 1 |
| below 2 — dropped | — |
| Real repo: go + vite + react | before | after |
|---|---|---|
| a React skill by name | tie | 1st |
| a body-only mention | tie | — |
| godmode (“go” as a fragment) | listed | gone |
| nodejs-keccak256 (for React) | listed | gone |
| a seeded skill | — | first |
- A tag is a word
gomatchesgolang-patternsand notgodmode;tsmatchestypescript;nodedoes not matchnodejs-keccak256. Aliases handle the tags that are not words.- Signals are the repo's, not the root's
- Manifests from the root and its immediate subdirectories
(
backend/go.mod,frontend/package.json), and only dependencies that name a stack become tags. A flattened lockfile independenciesis not a stack. - Ties break on evidence
- Score, then how many distinct tags matched, then the shorter name. Alphabetical order is never the reason a skill is recommended.
- Taste overrules
seedis a decision, so it is not scored: the seeded skill is offered first, andbootstrap --applypromotes it even with no LLM configured.