skills/brain/SKILL.md
Knowledge graph engine — search, analyze, and manage AI agent brains with confidence scoring, autoschema, and multimodal support.
npx skillsauth add automagik-dev/genie brainInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Search, analyze, and manage knowledge brains powered by genie-brain v0.1.0. Brains are Postgres-backed, Obsidian-compatible knowledge vaults with BM25 + vector search, confidence scoring, and agentic autoschema.
Brain must be installed: genie brain install
If not installed, guide the user to run the install command.
genie brain init --name <name> --path <path> [--type gtm|pm|engineering|research|personal|generic] [--from <raw-content-path>] [--mode automatic|guided]
Creates an Obsidian-compatible vault with directory structure, templates, and Postgres registration.
genie brain create --name <name> [--owner <type:id>] [--lifecycle permanent|ephemeral|archived] [--type <type>] [--ttl <duration>] [--description <text>]
For runtime brains that don't need a filesystem vault. Owner format: agent:genie, task:123.
genie brain archive <brain-id>
Marks brain as archived. Still searchable, no longer accepts updates.
genie brain migrate
Creates or updates all brain tables. Idempotent — safe to re-run.
genie brain update --brain <id> [--path <path>] [--no-embed] [--skip-if-locked] [--verbose] [--budget-cents <num>]
Walks brain directory + mounts, chunks text, computes embeddings, upserts to Postgres. Hash-based skip for unchanged files. Advisory lock prevents concurrent runs.
genie brain process --brain <id> [--path <path>]
Processes files in to_process/:
genie brain watch start|stop|status --brain <id> [--path <path>] [--manual]
Watchdog on to_process/ directory. Auto-runs process + update when files appear.
genie brain mount <path> --as <alias> --brain <id> [--path <brain-path>]
Creates _mounts/<alias> symlink in brain vault. Mounted content is included in update scans and appears in Obsidian.
# Example: mount a codebase into an engineering brain
genie brain mount /home/user/project --as codebase --brain agent:genie:engineering
genie brain unmount <alias> --brain <id> [--path <brain-path>]
Removes symlink and DB entry. Mounted docs no longer indexed on next update.
genie brain search "<query>" --brain <id> [--limit <num>] [--min-confidence <float>] [--strategy rag|cag] [--explain]
Returns ranked results with confidence level. --explain shows scoring breakdown.
Always search before answering domain questions. If confidence is LOW/NONE, say so — don't hallucinate.
genie brain get <path|#docid> --brain <id>
Fetch full document by file path or document ID (e.g., #abc123).
genie brain analyze "<query>" --brain <id> [--path <path>] [--thinking high|medium|low] [--mode classify|cluster|synthesize|digest|decision|profile]
Generates synthesized answers (not snippets) using the rlmx reasoning engine. Returns answer, sources, and cost.
genie brain link --brain <id> [--semantic] [--dry-run] [--detect-conflicts]
Generates 10 link types: tag-overlap, semantic, wikilink, caused, superseded, contradicts, supports, updates, extends, derives. Use --semantic for vector-similarity links (slower, more accurate).
genie brain health [--path <brain-path>] [--fix]
7-dimension score (each out of 100): Frontmatter, Structure, Links, Currency, Coverage, Consistency, Orphans. --fix auto-repairs: adds missing dates, converts tags, generates MOCs.
genie brain status
Lists all registered brains with file counts, chunk counts, mounts, health, query stats, and last update time.
genie brain attach <brain-id> --entity <type:id> --role owner|writer|reader
Entity format: agent:genie, task:123, team:platform. Role hierarchy: owner (full control) > writer (update + search) > reader (search only).
genie brain detach <brain-id> --entity <type:id>
genie brain list [--brain <id>] [--entity <type:id>]
Filter by brain, entity, or both.
genie brain traces --brain <id> [--limit <num>] [--failed] [--strategy <name>] [--purge] [--older-than <days>]
Lists search/analyze history with confidence, latency, cost, and gap detection. --failed shows only queries where the brain had LOW/NONE confidence. --purge deletes traces older than N days (default: 90).
genie brain strategy show --brain <id>
genie brain strategy set "<pattern>" <strategy> --brain <id> [--reason <text>]
genie brain strategy rm "<pattern>" --brain <id>
Route queries matching a glob pattern to a specific strategy. Example: genie brain strategy set "deployment*" cag --reason "needs full document context".
genie brain cache --estimate --brain <id>
Shows token counts, per-query cost with and without caching, and break-even query count.
Combines three search backends via Reciprocal Rank Fusion (RRF):
Best for: factual lookups, specific topics, quick answers.
Best for: synthesized answers, complex reasoning, cross-document analysis. Higher per-query cost but cached after first run (90% savings on repeats).
Use --strategy cag to force CAG, or configure per-brain routing with genie brain strategy set.
| Level | Top Score | Distribution | Agent Action | |-------|-----------|-------------|-------------| | FULL | >= 0.80 | 3+ results >= 0.60 | Use directly, cite sources | | HIGH | >= 0.70 | 2+ results >= 0.50 | Use with confidence | | PARTIAL | >= 0.50 | 1+ results >= 0.40 | Use + supplement if needed | | LOW | >= 0.30 | any | Go external, mention brain gap | | NONE | < 0.30 | any | Research externally, don't guess |
Gap detection: Automatically flags LOW/NONE results and suggests action: use_brain, supplement, go_external, research_needed.
Authority scoring affects ranking: hand-written docs score higher than derived/inferred content. Frontmatter confidence: high|medium|low also weights results.
| Type | Use Case | Base Folders |
|------|----------|-------------|
| gtm | Marketing, competitive intel | Intelligence/, DevRel/, Company/ |
| pm | Product management | Backlog/, Roadmap/, Specs/ |
| engineering | Architecture, code | Architecture/, Decisions/, Runbooks/ |
| research | R&D, papers | Papers/, Notes/, Experiments/ |
| personal | Personal knowledge (PARA) | Projects/, Areas/, Resources/ |
| generic | Auto-decided by content | (autoschema decides) |
genie brain search "<topic>" --brain <id>.md file with YAML frontmatter to brain/to_process/genie brain process --brain <id> to classify and indexgenie brain update --brain <id> to sync to Postgresgenie brain mount /path/to/docs --as external --brain <id>genie brain update --brain <id> to index mounted contentgenie brain attach <brain-id> --entity agent:other --role readerwriter role if the other agent should contribute contentgenie brain traces --brain <id> --failed to see gap queriesupdategenie brain strategy set "<pattern>" cag if certain queries need full-context answersgenie brain status for dashboardbrain/to_process/testing
Wire a Genie agent to an Omni channel in one canonical flow — register the agent, bind to an instance, verify the round-trip. Replaces the 5+ command legacy chain.
data-ai
Dispatch trace subagent to investigate unknown issues — reproduces, traces, and reports root cause for /fix handoff.
data-ai
Investigate bugs comprehensively — cascade through /trace, capture browser evidence, extract observability data, and auto-create a GitHub issue with all findings.
data-ai
Full PM playbook — triage backlog, prioritize, assign, track, report, escalate. Copilot, autopilot, or pair modes.