prime-context
Skill1 starsChanged 5 months agoMITView on GitHub
Load durable, sourced research about a topic into the current context. Use when the user says "prime context," asks an agent to investigate and remember a topic, wants prior topic research reused, or wants relevant discoveries preserved during the rest of the same session.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- rodrigopg/claude-skill-prime-contexttheir own version, first seen Jul 31, 2026
- HermeticOrmus/prime-context-skillstheir own version, first seen May 25, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- rodrigopg/claude-skill-prime-context★ 1same name
- HermeticOrmus/prime-context-skills★ 0same 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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-homeSkill
- cohesiveSkill
- delegate-minimalSkill
- deploy-nsitesSkill
- ferry-search-greeceSkill
- hash-outSkill
- high-levelSkill
- meta-feedbackSkill
- nip60Skill
- repo-marketingSkill
- runbookSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 14 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Use <caller-home>/research as the research root.
- Very specific: line 36
Search the entire research root for prior entries that match the topic by directory name, topic, aliases, and note content.
- Distinctive: line 40
If relevant prior research exists, read it and return all relevant absolute note paths with a compact synthesis.
- Distinctive: line 43
If no relevant entry exists, investigate the topic.
- Distinctive: line 47
Write the new research to:
- Distinctive: line 54
Do not perform the delegated lookup in parallel with a second lookup.
- Distinctive: line 60
Every note must contain YAML frontmatter followed by concise Markdown:
- Very specific: line 96
Use kind: "follow-up" for later discoveries.
- Distinctive: line 103
After the subagent returns:
- Distinctive: line 105
Read every relevant note path yourself.
- Distinctive: line 106
Treat the topic as primed for the remainder of the current session.
- Distinctive: line 108
Every bullet must contain between five and ten words.
- Distinctive: line 110
Put the note path or paths on one short, unbulleted line after the bullets.
- Distinctive: line 111
Add one terse, unbulleted caveat only when research is stale or uncertain.
- Distinctive: line 112
Do not dump the full research unless the user asks.
- Very specific: line 120
Create a sibling entry at <research-root>/<topic-slug>/<new-note-slug>/index.md.
- Very specific: line 122
Use kind: "follow-up", the same topic_slug, the current session ID, and sources for the new evidence.
- Distinctive: line 124
Keep the entry atomic: record only the new insight and its relationship to the primed topic.
- Distinctive: line 128
Do not save incidental mentions, unsupported speculation, secrets, or private credentials.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prime Context
Prime the calling agent with durable research owned by that agent. Delegate the lookup and any missing research, then read the resulting notes yourself before confirming what was loaded.
Resolve ownership
- Identify the calling agent before spawning a subagent. Prefer the stable
Agentidentity from runtime context; never use a session handle or the delegated subagent's identity. - Normalize the identity to lowercase
[a-z0-9._-], replacing other runs with-. Useagentonly when no stable identity exists. Resolve or create the caller's home with:
~/.agents/skills/agent-home/scripts/resolve-agent-home.sh <agent-id>- Use
<caller-home>/researchas the research root. Pass that exact absolute path to the subagent so it cannot accidentally write into its own home.
Prime a topic
Derive a stable, lowercase hyphenated topic-slug from the subject. Keep it
broad enough that later research on the same subject lands together.
Spawn one subagent with the raw topic, caller identity, absolute research root, topic slug, and current session identifier when available. Instruct it to:
- Search the entire research root for prior entries that match the topic by
directory name,
topic,aliases, and note content. Do not assume an exact directory match is the only match. Treat a missing research root as no prior research, then create it before writing. - If relevant prior research exists, read it and return all relevant absolute note paths with a compact synthesis. Do not repeat the research merely to produce a fresh file.
- If no relevant entry exists, investigate the topic. Prefer live primary sources and the real local surface the user named. Record uncertainty and distinguish sourced facts from inference. Verify that every cited source directly supports the finding attached to it.
Write the new research to:
<research-root>/<topic-slug>/<note-slug>/index.mdChoose a concise, specific
note-slug; never overwrite an existing entry.- Return the exact written or reused paths and a compact synthesis.
Do not perform the delegated lookup in parallel with a second lookup. One subagent owns the prior-entry decision and research write so two actors cannot create duplicate notes.
Note contract
Every note must contain YAML frontmatter followed by concise Markdown:
---
topic: "Human-readable topic"
topic_slug: "stable-topic-slug"
slug: "specific-note-slug"
kind: "initial"
agent_id: "calling-agent-id"
session_id: "session-id-or-unknown"
created_at: "RFC-3339 timestamp"
updated_at: "RFC-3339 timestamp"
aliases:
- "searchable alternate phrase"
sources:
- title: "Source title"
locator: "URL, absolute file path with lines, or exact command"
type: "web"
accessed_at: "RFC-3339 timestamp"
---
# Specific note title
## Findings
- Sourced finding.
## Relevance
- Why this matters to the investigated topic.
## Open questions
- Remaining uncertainty, or `None identified.`Use kind: "follow-up" for later discoveries. Valid source types include
web, file, command, document, and conversation. Include at least one
source. Quote YAML strings when punctuation could make them ambiguous. Keep raw
excerpts short; synthesize instead of copying sources.
Load and confirm
After the subagent returns:
- Read every relevant note path yourself. Do not rely only on its synthesis.
- Treat the topic as primed for the remainder of the current session.
- Respond with two to five bullets confirming only the core understanding. Every bullet must contain between five and ten words. Keep each bullet terse; do not add explanations, citations, paths, or nested bullets.
- Put the note path or paths on one short, unbulleted line after the bullets. Add one terse, unbulleted caveat only when research is stale or uncertain.
- Do not dump the full research unless the user asks.
Capture later discoveries
While the topic remains primed in the same session, notice materially relevant new evidence encountered during other work. When it changes, extends, or corrects the loaded understanding:
- Create a sibling entry at
<research-root>/<topic-slug>/<new-note-slug>/index.md. - Use
kind: "follow-up", the sametopic_slug, the current session ID, and sources for the new evidence. - Keep the entry atomic: record only the new insight and its relationship to the primed topic. Do not duplicate an existing note.
- Mention the captured follow-up in the next natural user-facing update.
Do not save incidental mentions, unsupported speculation, secrets, or private credentials. Do not create project planning files; these are private agent research notes only.
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.

