From Mega Brain
Initializes OKF knowledge base files (index.md and log.md) for claude-mega-brain context injection. Use when setting up project documentation for the plugin.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mega-brain:initThe summary Claude sees in its skill listing — used to decide when to auto-load this 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.
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 docsnpx claudepluginhub guhcostan/claude-mega-brain --plugin mega-brainInitializes Knowledge Base section in CLAUDE.md and creates docs/kb/ directory with README and structure guidelines. Idempotent—safe to run multiple times for Claude Code projects.
Scans project docs and migrates them into OKF format for Claude's knowledge base. Handles READMEs, schemas, API specs, runbooks, and data models.
Creates a project-specific knowledge base document that primes AI with the project's tech stack, architecture, trusted sources, and structure. Triggered by phrases like 'set up knowledge base'.