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.

skillgram 1.10 links, never copies stdlib only ← back to Overview
Plate I
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.

01 · store ~/.agents/skills <category>/<skill>/ SKILL.md · the only copy SKILLMETA.json · hash one file, every harness reads it as its own 02 · views Reasonix .reasonix/skills Claude Code .claude/skills Codex .codex/skills + 51 more, same library links 03 · the set <repo>/.agents config.json · project name skills.json · the set, with hashes skills/<name> → link committed · the memory mount 04 · the record use_count · last_used last_used_by · by_harness declared, never observed touch the next session reads this file 05 · taste skillgram seed qring-anti-slop always recommended bootstrap signals + seeds → the set
  1. One store. Every skill exists once, in the hub. Nothing is copied into an agent.
  2. Views, not copies. Each harness gets links into that store, so fifty agents cannot drift from each other.
  3. The set is a project file. use writes .agents/skills.json; mount materialises it in every harness layout the project needs.
  4. The record is declared. touch and use write who used what, from which harness. skillgram cannot see what an agent reads, and never pretends to.
  5. Taste is explicit. A seed (skillgram seed <skill>) outranks the ranking in every future bootstrap; --never does the opposite.
Plate II
What mount --apply leaves in a repo

The 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 .gitignore covers every directory the mount writes, so git add -A cannot 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.
Plate III
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 appearsWeight
skill name3
skill category2
body of SKILL.md1
below 2 — dropped—
Real repo: go + vite + reactbeforeafter
a React skill by nametie1st
a body-only mentiontie—
godmode (“go” as a fragment)listedgone
nodejs-keccak256 (for React)listedgone
a seeded skill—first
A tag is a word
go matches golang-patterns and not godmode; ts matches typescript; node does not match nodejs-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 in dependencies is 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
seed is a decision, so it is not scored: the seeded skill is offered first, and bootstrap --apply promotes it even with no LLM configured.
Overview Architecture & Evidence Install Flow EdgePass README Changelog