From Mega Brain
Scans project docs and migrates them into OKF format for Claude's knowledge base. Handles READMEs, schemas, API specs, runbooks, and data models.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mega-brain:migrateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reads existing project documentation and generates OKF concept files so claude-mega-brain can inject them at session start. The goal is exact fidelity — preserve real column names, actual formulas, and specific values, not generic descriptions.
Reads existing project documentation and generates OKF concept files so claude-mega-brain can inject them at session start. The goal is exact fidelity — preserve real column names, actual formulas, and specific values, not generic descriptions.
Look for existing OKF files: any .md with type: frontmatter, or index.md / log.md anywhere in the project. If none exist, run /mega-brain:init first.
If .mega-brain.json defines dir, place new files under that directory. Otherwise, put files wherever fits the project (docs/, project root, etc.) — no dedicated folder is required.
Scan the project root. Priority order:
| Source | Look for |
|---|---|
| API specs | openapi.yaml, swagger.json, *.openapi.yml |
| DB schemas | schema.sql, schema.prisma, *.dbml, migration files |
| Data models | models/, entities/, domain/ |
| README sections | ## API, ## Schema, ## Architecture, ## Data |
| Runbooks | docs/runbook*, runbooks/, playbooks/ |
| Env/config docs | .env.example with comments, annotated config/ files |
| Existing wikis | docs/, wiki/, pages/ |
Report what you found before proceeding. If more than 10 sources, ask the user to confirm before generating all files.
| Source content | OKF type |
|---|---|
| DB table / Prisma model | Table or BigQuery Table |
| REST/GraphQL endpoint | API |
| Business metric / KPI | Metric |
| Microservice / module | Service |
| Operational procedure | Runbook |
| Business term / glossary | Concept |
| Data pipeline / ETL | Pipeline |
One .md file per concept:
---
type: <classified type>
title: <name>
description: <one sentence, plain language>
resource: <source file path or URL>
tags: [<relevant tags>]
timestamp: <today ISO date>
---
# Schema / Definition
<exact content extracted from source — preserve all field names, types, values>
# Notes
<caveats, deprecations, gotchas found in the source>
Rules that matter:
[Name](relative-path.md) when concepts reference each othertables/, apis/, metrics/, services/, runbooks/ as appropriateindex.mdAdd one line per new concept under the relevant section in the project's existing index.md (create one via /mega-brain:init if missing):
- [Title](subdir/file.md) — one-sentence description
log.md<today ISO date> — migrated <N> concepts from <source list>
List every file created with its type and path. Flag anything ambiguous or skipped with a reason.
Tell the user to start a new Claude Code session for the injected context to activate.
npx claudepluginhub guhcostan/claude-mega-brain --plugin mega-brainInitializes OKF knowledge base files (index.md and log.md) for claude-mega-brain context injection. Use when setting up project documentation for the plugin.
Analyzes CLAUDE.md and docs/ content to classify sections for KB migration. Interactive process with user approval to organize project knowledge without degrading core capabilities.
Authors, maintains, and consumes OKF knowledge bundles (markdown + YAML frontmatter) for project knowledge like services, APIs, schemas, metrics, and decisions. Use when capturing or updating project knowledge.