/mega-brain:initfrom Mega Brain
Initializes OKF knowledge base files (index.md and log.md) in a project for claude-mega-brain context injection. Detects project type and prompts for file location.
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.
Creates a minimal set of OKF files so claude-mega-brain can start injecting context at the next session. No dedicated folder required — files can live anywhere in the project.
Two files are enough to get started:
index.md — the knowledge map (put it at the project root or in docs/):
---
type: Index
title: <Project Name> Knowledge Base
description: Central reference for all project knowledge.
timestamp: <today ISO 8601>
---
# <Project Name>
## Tables / Data
<!-- [orders](docs/orders.md) — one-liner -->
## Metrics
<!-- [wau](docs/wau.md) — one-liner -->
## APIs
<!-- [auth](docs/auth.md) — one-liner -->
## Services
<!-- [payments](docs/payments.md) — one-liner -->
log.md — append-only changelog (same location as index.md):
---
type: Log
---
<today ISO date> — initialized OKF knowledge base
.md with type: frontmatter, or an existing index.md / log.md. If found, tell the user and stop.package.json, pyproject.toml, go.mod, etc.) to personalize the index template.docs/ as default. If .mega-brain.json has a dir field, use that subdirectory instead.index.md and log.md in the chosen location./mega-brain:ingest or create .md files with type: frontmatter anywhere in the project/mega-brain:migrate to auto-populate from existing schemas and docsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 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./ingestCreate or update a single OKF concept file from raw input. Use when the user wants to document a specific table, metric, API, service, or concept in the knowledge base — even if they say "add this to the okf", "documenta essa tabela", "cria um conceito pra isso", "adiciona no knowledge base", "register this API", or pastes a schema/description and says to save it. If no OKF files exist yet, suggest /mega-brain:init first./npx claudepluginhub guhcostan/claude-mega-brain --plugin mega-brainOther plugins' skills for the same job