okf-context
Skill1 starsChanged 14 days agoMITView on GitHub
Use the codebase's generated OKF documentation under .buddhi/docs/ and Buddhi MCP code-graph tools as the first source of truth for understanding code, before reading raw source files.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11ySkill
- agents-mdSkill
- antislop-codeSkill
- antislop-copywritingSkill
- antislop-humanSkill
- antislop-layoutmobileSkill
- antislopSkill
- antislop-uiSkill
- askSkill
- audit-agentsSkill
- audit-choicesSkill
- audit-performanceSkill
- audit-testsSkill
- auto-researchSkill
- close-specSkill
- code-reviewSkill
- compare-screenshotsSkill
- debugSkill
- design-mdSkill
- design-with-imagesSkill
- document-codebaseSkill
- eli5Skill
- eval-skillsSkill
- explore-unknownsSkill
- handoff-specSkill
- implementSkill
- learnSkill
- marketing-pagesSkill
- memorySkill
- preview-shotsSkill
- quick-planSkill
- ratchet-filesSkill
- refactor-cleanSkill
- rememberSkill
- repoagent-doc-generationSkill
- retroSkill
- reviewSkill
- rtkSkill
- screenshot-critiqueSkill
- specifySkill
- spec-planSkill
- spec-tasksSkill
- statusSkill
- system-designSkill
- verifySkill
- write-docsSkill
- write-skillsSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Check OKF documentation: Start at .buddhi/docs/index.md (bundle root) to see what's documented, then descend into the relevant …
- Distinctive: line 23
Use this for structural questions ("what calls this", "what depends on this", finding symbols or architectural components).
- Distinctive: line 27
Use this to inspect source files with AST pruning and entropy filtering to stay within token budget while preserving critical structure and …
- Very specific: line 29
Graceful fallback: If the Buddhi MCP server is not active or docs are missing/stale, fall back to querying .buddhi/graphs/tree-graph.db / …
- Very specific: line 32
Maintain freshness: If you generate or substantially change code such that existing OKF docs go stale, suggest running the …
- Distinctive: line 36
Never treat an OKF doc as authoritative over the actual source code — it's a cache of understanding, not the ground truth.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Prefer OKF docs and Buddhi MCP tools over re-reading raw source
This codebase has (or can have) machine-generated, dependency-aware documentation
under .buddhi/docs/, written as Open Knowledge Format (OKF) markdown, along with a
connected Buddhi MCP server providing graph-aware code search and reading. Reading these
first is cheaper and more reliable than re-deriving understanding from raw source every time.
How to use it
- Check OKF documentation: Start at
.buddhi/docs/index.md(bundle root) to see what's documented, then descend into the relevant subdirectory's ownindex.md. Open concept.mdfiles to inspect module summaries, entities, and call relationships. - Query the code graph via MCP tools:
buddhi_search(query, mode="full"|"signatures"|"map"): Use this for structural questions ("what calls this", "what depends on this", finding symbols or architectural components). It performs community-aware, topology-driven retrieval across the code graph.buddhi_read(filepath, mode="auto"|"signatures"|"map", budget=4000): Use this to inspect source files with AST pruning and entropy filtering to stay within token budget while preserving critical structure and type signatures.
- Graceful fallback: If the Buddhi MCP server is not active or docs are missing/stale,
fall back to querying
.buddhi/graphs/tree-graph.db/tree-graph.jsondirectly or reading raw source files. - Maintain freshness: If you generate or substantially change code such that existing OKF
docs go stale, suggest running the
/document-codebaseskill (seerepoagent-doc-generationskill) to refresh the documentation and graph.
Never treat an OKF doc as authoritative over the actual source code — it's a cache of understanding, not the ground truth. When the two conflict, the source wins and the doc needs regenerating.
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.

