/mega-brain:ingestfrom Mega Brain
Creates or updates a single OKF concept file from raw input such as schema dumps, API docs, or user descriptions. Use when documenting tables, metrics, APIs, services, or business concepts in a knowledge base.
Ships in Mega Brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turns raw input (schema dump, API doc, user description, table definition) into one OKF-formatted .md file committed to the knowledge base.
Look for existing OKF files: any .md with type: frontmatter, or index.md / log.md in the project. If none exist, stop and tell the user to run /mega-brain:init first.
If .mega-brain.json defines dir, save new concepts under that directory. Otherwise, choose a sensible location (docs/, project root, etc.) consistent with existing OKF files.
Check if a concept with the same name already exists. If so, ask whether to update it or create a new one.
One .md file per concept. Only type is required:
---
type: <concept type>
title: <display name>
description: <one sentence, plain language, no jargon>
resource: <URL to the actual resource, if any>
tags: [<tag1>, <tag2>]
timestamp: <ISO 8601 date>
---
<body: exact schema, formula, join patterns, examples, caveats>
| Type | Use for |
|---|---|
BigQuery Table | BQ tables with schema |
BigQuery Dataset | BQ datasets |
Table | Non-BQ database tables |
Metric | KPI or business metric with formula |
API | REST/GraphQL endpoints |
Runbook | Operational procedures |
Concept | Business or domain terminology |
Service | Internal microservices |
Pipeline | ETL or data pipelines |
Types are freeform — add your own.
description: one sentence, plain languageresource URL if there's a live resource (BQ console URL, API endpoint, dashboard)[Name](relative-path.md) — this builds the knowledge graphdocs/tables/<slug>.md or <config-dir>/tables/<slug>.md)index.md: - [Title](path) — descriptionlog.md: <date> — added <title>timestampdescription to one sentence — push additional detail into the bodyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub guhcostan/claude-mega-brain --plugin mega-brain4 skills in this plugin
/claude-mega-brainOKF knowledge navigation. ALWAYS use this skill the moment a `<mega-brain>` block appears in session context — it means the project has documented concepts and you must consult them before answering questions about data, schemas, metrics, APIs, or systems. Also trigger when the user asks about a table, column, metric definition, service, or API endpoint and there's any chance it's documented in the project. When in doubt, read the file directly./initInitialize OKF knowledge base files in the current project. Use when the user wants to start documenting their project for claude-mega-brain, or when the user says "init mega brain", "setup the knowledge base", "cria o okf", "inicializa o mega brain", "quero usar o mega brain", "criar a estrutura do knowledge base", or asks how to get started with the plugin./migrateScan the project and migrate existing documentation into OKF format. Use when the user wants to populate the knowledge base from existing docs, README, schemas, API specs, runbooks, or any structured project knowledge. Trigger on "migrate to okf", "populate the knowledge base", "scan my docs", "convert docs to okf", "importar documentação", "migrar para okf", "popular o knowledge base", "lê meus docs e cria o okf", "generate okf from existing docs", or when the user points at a docs folder and asks to "put it in the knowledge base". If no OKF files exist yet, run /mega-brain:init before migrating.Other plugins' skills for the same job