Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/dimknaf/braindb/braindb-agentnpx skills add dimknaf/braindb --skill braindb-agentgit clone --depth 1 https://github.com/dimknaf/braindbWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00040 | $0.03083 |
| Opus 5 | $0.00020 | $0.01541 |
| Sonnet 5 | $0.00008 | $0.00617 |
| Haiku 4.5 | $0.00004 | $0.00308 |
Grade A, and why
braindb-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
!`curl -sf http://localhost:8000/health > /dev/null 2>&1 && echo "OK" || echo "BRAINDB_DOWN"` How it starts
The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
BrainDB Memory Agent
BrainDB has its own internal agent (LiteLLM with pluggable provider via LLM_PROFILE; defaults to deepinfra/google/gemma-4-31B-it) that handles all memory operations. You don't call individual endpoints — you ask the agent in plain English via one endpoint: POST http://localhost:8000/api/v1/agent/query.
Health check:
!curl -sf http://localhost:8000/health > /dev/null 2>&1 && echo "OK" || echo "BRAINDB_DOWN"
If the output contains BRAINDB_DOWN, the memory database is not running. Do this:
- Ask the user: "BrainDB isn't running. Do you want me to start it for you?"
- Find the braindb repo — look for a directory that has ALL of these:
docker-compose.ymlat the rootbraindb/main.pypyproject.tomlwithname = "braindb"Search in: current dir, parent dirs (up to 3 levels), common locations like~/source/repos/**/braindb/.
- Start it:
cd <braindb-path> && docker compose up -d - Cache the path:
echo "<braindb-path>" > ~/.claude/skills/braindb-agent/.repo_path - Wait for it: poll
curl -sf http://localhost:8000/healthfor up to 30 seconds. - If healthy, proceed. If the user declines or start fails, proceed WITHOUT memory.
TOOL PRIORITY (read this first)
The agent has a clear order of tools it should reach for. When you phrase a request, lean into the sophisticated tools — don't ask it to "run SQL" for anything to do with recall or understanding.
- Query-driven recall — "what do we know about X?" → the agent calls
/memory/context(keyword-mediated fuzzy + embedding + graph + ranking, with diversity quotas). The default for ALL discovery and understanding. - Entity-driven neighbourhood — the agent's
view_treereturns a nested JSON tree (root keyed byentity_type,childrenarrays per node, 1-N hops out, keyword + retired-wiki noise filtered by default,_truncatedmarker if more remain). Especially useful when an entity ID is already in hand — often sharper than another query about the same entity. On hub entities passmax_depth=3for narrative chains. - Multi-step investigation — "investigate / disambiguate / resolve X" → the agent delegates to a subagent. Keeps the main context clean.
- Direct lookups —
view_entity_relations,get_entity,list_entitiesfor narrow questions. search_sql⚠ exception only — for explicit aggregates (counts, GROUP BY, activity-log joins). Never for finding / understanding / "what's related to" — those are jobs for the tools above.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 242 lines · 40 tokens per session scan A 92296a586c4a
braindb-agent is a skill published in the GitHub repository dimknaf/braindb (107 stars, last pushed 12d ago), licensed Apache-2.0. It adds 40 tokens to every session and 3,083 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). For CREATING new documents (report, memo, letter, résumé, contract from scratch), call the built-in tool renderDocx instead — it renders Markdown to .docx in milliseconds without forking Node.js. This skill…
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…
skill-authoring
Author SKILL.md skills: frontmatter, validator limits, structure.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
gzh_article
公众号图文创作 / 推文 / 官方号文章 (official account article) — 端到端:选题→搜集→成文→配图→去AI化→公众号内联样式排版→交付/草稿箱。honors user persona & style memory.
pptx
Use this skill any time a .pptx file is involved in any way - as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with…