Agent skill

Migrate

by guhcostan in guhcostan/claude-mega-brain

Scan the project and migrate existing documentation into OKF format.

MITAuto-check passedKnowledge Management

Install Migrate

skills CLI
$ npx skills add guhcostan/claude-mega-brain --skill migrate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install guhcostan/claude-mega-brain migrate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/guhcostan/claude-mega-brain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/migrate .claude/skills/migrate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migrate
GitHub stars
126
Token cost
~975 tokens
SKILL.md length
351 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Scan the project and migrate existing documentation into OKF format.

  • Works in 6 steps: Discover sources → Classify each source → OKF type → Generate OKF files → …
  • The user wants to populate the knowledge base from existing docs
  • SKILL.md covers Before starting, Process and What NOT to migrate
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Migrate is an agent skill from guhcostan/claude-mega-brain. Scan 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…

Its SKILL.md is about 980 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Runbooks and postmortems, OpenAPI specifications and Knowledge bases. It works with OpenAPI. The repository describes itself as: OKF-powered knowledge context for Claude Code — injects your project's knowledge base at every session. The licence is MIT.

When your agent uses it

  • The user wants to populate the knowledge base from existing docs
  • Any structured project knowledge
  • Populate the knowledge base
  • Convert docs to okf

Example prompts

  • “migrate to okf”
  • “populate the knowledge base”
  • “scan my docs”
  • “/migrate”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Discover sources
  2. Classify each source → OKF type
  3. Generate OKF files
  4. Update index.md
  5. Append to log.md
  6. Report

What it can do on your machine

Read from SKILL.md and the folder at commit de1ab9c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migrate loads about 975 tokens when it runs. Until then it costs about 153 tokens; SKILL.md has 351 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~153
When it runs · the whole SKILL.md, loaded when a task matches
~975

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from guhcostan/claude-mega-brain at commit de1ab9c, republished under its MIT licence (© guhcostan). 351 words, ~975 tokens.

Download SKILL.mdSave it as .claude/skills/migrate/SKILL.md (or your agent's skills folder).
name
migrate
description
Scan 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.

migrate — Migrate Existing Docs to OKF

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.

Before starting

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.

Process

1. Discover sources

Scan the project root. Priority order:

SourceLook for
API specsopenapi.yaml, swagger.json, *.openapi.yml
DB schemasschema.sql, schema.prisma, *.dbml, migration files
Data modelsmodels/, entities/, domain/
README sections## API, ## Schema, ## Architecture, ## Data
Runbooksdocs/runbook*, runbooks/, playbooks/
Env/config docs.env.example with comments, annotated config/ files
Existing wikisdocs/, wiki/, pages/

Report what you found before proceeding. If more than 10 sources, ask the user to confirm before generating all files.

2. Classify each source → OKF type
Source contentOKF type
DB table / Prisma modelTable or BigQuery Table
REST/GraphQL endpointAPI
Business metric / KPIMetric
Microservice / moduleService
Operational procedureRunbook
Business term / glossaryConcept
Data pipeline / ETLPipeline
Show full SKILL.md (148 more words)Show less
3. Generate OKF files

One .md file per concept:

markdown
---
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:

  • One concept per file — split tables from each other, endpoints from each other
  • Preserve exact field names, column types, enum values, formulas — never generalize
  • Add wikilinks [Name](relative-path.md) when concepts reference each other
  • Place files in tables/, apis/, metrics/, services/, runbooks/ as appropriate
4. Update index.md

Add one line per new concept under the relevant section in the project's existing index.md (create one via /mega-brain:init if missing):

markdown
- [Title](subdir/file.md) — one-sentence description
5. Append to log.md
<today ISO date> — migrated <N> concepts from <source list>
6. Report

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.

What NOT to migrate

  • Test fixtures and mock data
  • Build artifacts and generated code
  • Duplicate docs — keep the most recent or canonical version
  • Files with no extractable schema, formula, or definition

© guhcostan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/migrate of guhcostan/claude-mega-brain.

Open the folder on GitHubat commit de1ab9c

Compare with similar skills

Migrate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migrate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migrate this skillguhcostan/claude-mega-brain126—~975Automated safety check: PassMIT
Ima Knowledge Basecountbot-ai/CountBot782—~506Automated safety check: PassMIT
Ima SkillsPinvou/pinvou-agent2.4k—~718Automated safety check: PassMIT
Technical Documentationkid-sid/claude-spellbook189—~3.4kAutomated safety check: NotesMIT
Cloud Agents Starterscalar/scalar16k—~1.4kAutomated safety check: PassMIT
Datadog Data Source GeneratorDataDog/terraform-provider-datadog468—~2.7kAutomated safety check: PassMPL-2.0

Similar skills

  • Ima Knowledge Base

    countbot-ai/CountBot

    通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。

    782 GitHub stars~506 tokensUpdated 4 days ago
    Knowledge ManagementAuto-check passed
  • Ima Skills

    Pinvou/pinvou-agent

    Tencent IMA OpenAPI skill for notes and knowledge-base operations.

    2.4k GitHub stars~718 tokensUpdated today
    Backend & APIsAuto-check passed
  • Technical Documentation

    kid-sid/claude-spellbook

    A skill your agent uses when writing a README, documenting an API with OpenAPI, drafting a runbook for on-call engineers, authoring a technical spec or ADR, or setting up docs-as-code with…

    189 GitHub stars~3.4k tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Minimal starter runbook for cloud agents to install dependencies, run packages, execute tests, and troubleshoot the Scalar monorepo quickly.

    16k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Datadog Data Source Generator

    DataDog/terraform-provider-datadog

    Official

    Generates a Datadog Terraform provider data source from an OpenAPI operation with tfgen and opens a review-ready GitHub PR with a risk scan and testing guide.

    468 GitHub stars~2.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Aliyun Swas Manage

    cinience/alicloud-skills

    A skill your agent uses when managing Alibaba Cloud Simple Application Server (SWAS OpenAPI 2020-06-01) resources end-to-end, including querying instances, starting/stopping/rebooting, executing…

    397 GitHub starsUsed in 1 repo~1.9k tokens
    DevOps & CloudAuto-check passed

More from guhcostan/claude-mega-brain

  • Claude Mega Brain

    guhcostan/claude-mega-brain

    OKF knowledge navigation. An agent skill from guhcostan/claude-mega-brain.

    126 GitHub stars~588 tokensUpdated 2 mo ago
    Auto-check passed
  • Ingest

    guhcostan/claude-mega-brain

    Create or update a single OKF concept file from raw input. An agent skill from guhcostan/claude-mega-brain.

    126 GitHub stars~694 tokensUpdated 2 mo ago
    Auto-check passed
  • Init

    guhcostan/claude-mega-brain

    Initialize OKF knowledge base files in the current project. An agent skill from guhcostan/claude-mega-brain.

    126 GitHub stars~530 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Migrate

What does Migrate do?

Scan the project and migrate existing documentation into OKF format. Migrate is an agent skill from guhcostan/claude-mega-brain. Scan the project and migrate existing documentation into OKF format.

When should I use Migrate?

Migrate fits situations like: the user wants to populate the knowledge base from existing docs; any structured project knowledge; populate the knowledge base; convert docs to okf.

How do I install Migrate in Claude Code?

Run `npx skills add guhcostan/claude-mega-brain --skill migrate -a claude-code`. Or copy the skill folder (skills/migrate in guhcostan/claude-mega-brain) into .claude/skills/migrate in your project. Claude Code loads it when a task matches its description.

How do I install Migrate in Codex?

Run `npx skills add guhcostan/claude-mega-brain --skill migrate -a codex`. Or copy the skill folder (skills/migrate in guhcostan/claude-mega-brain) into .agents/skills/migrate in your project. Codex loads it when a task matches its description.

Can I use Migrate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add guhcostan/claude-mega-brain --skill migrate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate, .gemini/skills/migrate, .github/skills/migrate and .opencode/skills/migrate in your project.

What does Migrate need to run?

SKILL.md names no scripts, command-line tools or credentials: Migrate is instructions for the agent only.

Does Migrate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Migrate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Migrate use?

Migrate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Migrate use?

About 975 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Migrate?

Skills that share tags, products or a category with Migrate: Ima Knowledge Base (countbot-ai/CountBot, 782 stars), Ima Skills (Pinvou/pinvou-agent, 2.4k stars), Technical Documentation (kid-sid/claude-spellbook, 189 stars) and Cloud Agents Starter (scalar/scalar, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migrate?

guhcostan (a GitHub user) maintains it in guhcostan/claude-mega-brain, which has 126 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on July 22, 2026.

Source: guhcostan/claude-mega-brain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.