agentleFS
BuddhiliveBuddhilive/buddhi-cli/.agents/skills/okf-context/SKILL.md

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.

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
  1. Very specific:

    Check OKF documentation: Start at .buddhi/docs/index.md (bundle root) to see what's documented, then descend into the relevant …

    line 18
  2. Distinctive:

    Use this for structural questions ("what calls this", "what depends on this", finding symbols or architectural components).

    line 23
  3. Distinctive:

    Use this to inspect source files with AST pruning and entropy filtering to stay within token budget while preserving critical structure and …

    line 27
  4. Very specific:

    Graceful fallback: If the Buddhi MCP server is not active or docs are missing/stale, fall back to querying .buddhi/graphs/tree-graph.db / …

    line 29
  5. Very specific:

    Maintain freshness: If you generate or substantially change code such that existing OKF docs go stale, suggest running the …

    line 32
  6. Distinctive:

    Never treat an OKF doc as authoritative over the actual source code — it's a cache of understanding, not the ground truth.

    line 36

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Check OKF documentation: Start at .buddhi/docs/index.md (bundle root) to see what's documented, then descend into the relevant subdirectory's own index.md. Open concept .md files to inspect module summaries, entities, and call relationships.
  2. 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.
  3. 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.json directly or reading raw source files.
  4. Maintain freshness: If you generate or substantially change code such that existing OKF docs go stale, suggest running the /document-codebase skill (see repoagent-doc-generation skill) 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.