<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
bcharleson/crystallized-intelligence/use-crystallized-brain
──Details
PublishedOctober 22, 2026 at 11:30 PM
Content Hashsha256:6e1316b3e61fa30e...
Git SHA412b5485fdc1
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 94 lines · 3.2 KB

version: "1.0.0" name: use-crystallized-brain description: >- Layer-first retrieval from a Crystallized Intelligence for Agents brain via CLI or MCP. Use when BRAIN_ROOT is set, brain MCP tools are available, or the user asks to query/bootstrap/expand a domain brain without loading the full corpus.


Use Crystallized Brain

Procedure for agents. The brain holds mastery; this skill holds how to retrieve it cheaply.

When to use

  • User or project has BRAIN_ROOT pointing at a brain (brain.yaml + corpus/)
  • MCP server exposes brain_bootstrap, brain_expand, brain_search, brain_get_document
  • Domain question needs curated knowledge, not a repo-wide file dump

Setup (once per machine)

bash
export BRAIN_ROOT=/path/to/your-brain # or examples/demo-brain in this repo

MCP: see docs/AGENT-INTEGRATION.md and docs/mcp-config.example.json.

Retrieval protocol (always follow)

  1. Bootstrap first — brain bootstrap <domain> or brain_bootstrap(domain)
  • Loads _crystal/seed.md + principles.md (~200–2.5K tokens)
  • Enough for orientation and most routine answers
  1. Expand only if needed — brain expand <domain> --query "..." --max-tokens 4000 --max-tier 3
  • Tier-ranked: lower source_tier wins (0 = first-party)
  • Default max_tier=3 unless user explicitly wants transcripts/social (4–5)
  1. Search for paths — brain search <domain> "keyword" when you need filenames, not full bodies
  1. Get one file — brain get <domain> <relative-path> for a single document
  1. Never read entire sources/ trees or bulk-load corpus/ into context

Conflict resolution

When documents disagree:

  1. Lower quality.source_tier (from frontmatter) wins
  2. Higher quality.verification wins (canonical > expert_verified > …)
  3. Higher quality.confidence wins
  4. Prefer _crystal/ over knowledge/ over sources/ for operational answers

CLI examples

bash
python tools/bin/brain.py domains
python tools/bin/brain.py bootstrap specialty-coffee
python tools/bin/brain.py bootstrap b2b-discovery
python tools/bin/brain.py expand b2b-discovery --query "disqualify" --max-tokens 4000 --max-tier 3
python tools/bin/brain.py search b2b-discovery "qualification"

All retrieval commands emit JSON with tokens_approx — stay within budget.

MCP tool mapping

StepMCP tool
List domainsbrain_list_domains
Bootstrapbrain_bootstrap
Expandbrain_expand
Searchbrain_search
Single docbrain_get_document

Maintainer vs consumer

RoleAction
Consumer agentBootstrap → expand → get only
MaintainerEdit corpus, run classify, crystallize, verify (see README)

Do not crystallize or rewrite corpus unless the user is maintaining the brain.

Token budget

OperationTypical tokens
bootstrap200 – 2,500
expand (max 4000)≤ 4,000
searchsnippets only
getone file

If bootstrap + one expand is insufficient, ask the user to narrow the question or add curated knowledge/ — do not escalate to full-corpus reads.

All versions