load-context
Skill0 starsChanged 6 months agoMITView on GitHub
Load relevant domain knowledge from the agent-knowledge-hub sub-hubs (however many exist; discovered dynamically) to spin up work on a topic. Use when resuming a project after a break, or when the user says "load context", "load-context", "spin up on X", "get me back into X", or "/load-context <topic>". Retrieves hub notes by topic via INDEX match, surfaces TL;DRs as a jump-start, dives into full notes on demand.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- nexus-a1/claude-skillstheir own version, first seen Sep 27, 2026
- ethanaubuchon/dossier-tradecrafttheir own version, first seen Sep 26, 2026
- igmarin/rails-agent-skillstheir own version, first seen Jul 30, 2026
- pantheon-org/tekhnetheir own version, first seen Jul 23, 2026
- ralphkrauss/agent-orchestratortheir own version, first seen May 2, 2026
- vishalmdi/ai-native-pm-ostheir own version, first seen Apr 23, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- vishalmdi/ai-native-pm-os★ 106same name
- igmarin/rails-agent-skills★ 27same name
- pantheon-org/tekhne★ 10same name
- ralphkrauss/agent-orchestrator★ 4same name
- ethanaubuchon/dossier-tradecraft★ 3same name
- nexus-a1/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hub-doctorSkill
- hub-lintSkill
- store-to-hubSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
No topic at all: browse mode: Do not ask for "one short phrase".
- Distinctive: line 36
Never silently return nothing: the semantic stage or browse mode always produces candidates or the catalog.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
load-context
Resume work fast by pulling the right hub knowledge for a topic, without dumping every note (bloat) or hand-feeding files. Scoped to hub domain knowledge only.
The INDEX-first read-ladder is the skill: one read of INDEX.md triages every note, TL;DRs confirm relevance, full bodies load only on demand. That ordering is what keeps context lean. Work-state and past-session history have other homes (your session-memory layer); the hub holds domain knowledge only.
Input
A topic, e.g. /load-context patient consent. The topic may be precise, vague ("something about patient... content?"), or absent. All three are valid; only the retrieval stage differs. Topic inference from the git branch is a future addition, not v1.
Procedure (two-stage retrieval)
Retrieval is two-stage by design: a deterministic fast path, and a semantic fallback that exploits the INDEX being tiny (one read covers every note). Never let a keyword miss become a silent zero.
Fast path for a crisp topic. Run the matcher (deterministic, cheap, testable):
node "${HUB_ROOT:-$HOME/workspace/agent-knowledge-hub}"/skills/load-context/bin/match.mjs "<topic>" --jsonIt scans each hub's
INDEX.md, scores entries by exact query-term hits, and returns the top matches withsummary,tldr, and the full-notepath. When exact matching finds nothing, it automatically falls back to fzf (fzf --filter, optional dependency; skipped silently if not installed) over the INDEX lines, and marks those resultsmatchType: "fuzzy". Present fuzzy results as "did you mean", not as confident hits.- Semantic stage, mandatory when any of these hold: the topic is vague or hedged ("there was this work about...", "I'm not sure what it was called"), the matcher returns zero results even after the fzf fallback, or the results look off for the question asked. Read EVERY sub-hub's
INDEX.mdin full (they are one-liners; this is a few hundred tokens by design) and judge semantically: present the 2-4 plausible candidates as "did you mean", with their one-liners. The user's fuzzy memory plus your reading of the whole catalog beats any keyword trick. - No topic at all: browse mode. Do not ask for "one short phrase". Show the catalog: each sub-hub with its note one-liners and works list, straight from the INDEXes. Let them point.
- Jump-start: present the selected notes, their one-line summaries, and TL;DRs. Keep it tight, this is orientation, not the full dump.
- Dive: offer to read the full body of specific notes. Read a note in full only when the work actually needs it. For directory entries (e.g.
works/patient-consent/), list the files in that dir and offer to open specific ones.
Never silently return nothing: the semantic stage or browse mode always produces candidates or the catalog.
Hubs
Defaults to every sub-hub under $HUB_ROOT/hubs/ (~/workspace/agent-knowledge-hub if unset). New sub-hubs are picked up automatically. Override with the LOAD_CONTEXT_HUBS env var (colon-separated absolute paths).
Optional, on top of the hub
- The hub is the curated layer; claude-mem is the passive episodic layer (see
docs/adr/0002-claude-mem-boundary-and-session-lifecycle.mdin the hub repo). For a richer prime, you may also consult claude-memmem-search("did we solve this before?") andtailthe active hub'slog.mdfor recent activity. These are optional context, not part of the deterministic match.
Notes
- Selection is deterministic keyword matching over
INDEX.md, so it is fast, cheap, and testable. The matcher is hub-only by design; claude-mem stays out of the scored retrieval. Quality depends on the hubINDEX.mdone-liners + per-note## TL;DRstaying current. - Tests:
cd ~/.claude/skills/load-context && node --test. - Eval (selection quality vs real hubs):
node evals/run.mjs(deterministic core, same result on any machine) andnode evals/run.mjs --fzf(adds the fuzzy cases; requires fzf, fails loudly without it).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

