agentleFS
Kastalien-ResearchKastalien-Research/thoughtbox/.agents/skills/knowledge/SKILL.md

knowledge

Skill64 starsChanged 4 months agoMITView on GitHub

Unified cross-store knowledge query. Searches MEMORY.md, Thoughtbox knowledge graph, git history, and assumption registry in parallel, returning results with provenance.

13 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search all knowledge stores for: $ARGUMENTS

    line 9
  2. Very specific:

    MEMORY.md: Search the auto memory file at .Codex/projects/*/memory/MEMORY.md for the query terms using Grep

    line 17
  3. Very specific:

    Thoughtbox Knowledge Graph: Use ToolSearch to load thoughtbox_execute, then search entities and observations matching the query via …

    line 18
  4. Very specific:

    Git History: Run git log --all --oneline --grep="$ARGUMENTS" -20 for commit history

    line 19
  5. Very specific:

    Assumption Registry: Search .assumptions/*.jsonl for matching assumption records using Grep

    line 20
  6. Very specific:

    DGM Patterns: Search .dgm/fitness.json for patterns matching the query using Grep

    line 21
  7. Very specific:

    Session Handoffs: Search .sessions/handoff-*.json for relevant context using Grep

    line 22
  8. Distinctive:

    Check for cross-references (does this result reference other stores)

    line 30
  9. Very specific:

    If a store doesn't exist yet (e.g., .dgm/fitness.json not created), skip it silently

    line 59
  10. Very specific:

    If Thoughtbox MCP tools aren't available, skip the knowledge graph search

    line 60
  11. Distinctive:

    Always show which stores were searched and which returned nothing — gaps are informative

    line 61
  12. Distinctive:

    If the query is broad, suggest more specific sub-queries

    line 62

“Common” is measured: kept by at least 6 in 10 of the 12 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.

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

Search all knowledge stores for: $ARGUMENTS

Workflow

Phase 1: Parallel Search (Observe)

Execute all searches in parallel:

  1. MEMORY.md: Search the auto memory file at .Codex/projects/*/memory/MEMORY.md for the query terms using Grep
  2. Thoughtbox Knowledge Graph: Use ToolSearch to load thoughtbox_execute, then search entities and observations matching the query via tb.knowledge.listEntities({ name_pattern: "..." }) and tb.knowledge.queryGraph(...)
  3. Git History: Run git log --all --oneline --grep="$ARGUMENTS" -20 for commit history
  4. Assumption Registry: Search .assumptions/*.jsonl for matching assumption records using Grep
  5. DGM Patterns: Search .dgm/fitness.json for patterns matching the query using Grep
  6. Session Handoffs: Search .sessions/handoff-*.json for relevant context using Grep

Phase 2: Collate and Rank (Orient)

For each result found:

  1. Note the source store (provenance)
  2. Note the freshness (when was this last updated/verified)
  3. Note the relevance (how closely does it match the query)
  4. Check for cross-references (does this result reference other stores)

Phase 3: Present Results (Act)

Present results grouped by relevance, with provenance:

## Knowledge Query: "{query}"

### High Relevance
- [MEMORY.md] {finding} (line {N}, updated {date})
- [Thoughtbox] Entity: {name} — {observation} (created {date})

### Medium Relevance
- [Git] {commit-hash}: {message} ({date})

### Low Relevance
- [Assumptions] {assumption} (confidence: {N}%, last verified: {date})

### Cross-References
- Thoughtbox entity "{name}" relates to git commit {hash}

### Gaps
- No results found in: {store1}, {store2}
- Consider adding knowledge about "{query}" to {suggested_store}

Notes

  • If a store doesn't exist yet (e.g., .dgm/fitness.json not created), skip it silently
  • If Thoughtbox MCP tools aren't available, skip the knowledge graph search
  • Always show which stores were searched and which returned nothing — gaps are informative
  • If the query is broad, suggest more specific sub-queries

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.