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

MITAuto-check passedKnowledge Management

Install Init

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

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

GitHub CLI
$ gh skill install guhcostan/claude-mega-brain init --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/init .claude/skills/init && 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
init
GitHub stars
126
Token cost
~530 tokens
SKILL.md length
182 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 5 steps: Check if OKF files already exist — look… → Detect project type (package.json,… → Ask the user where they want the files —… → …
  • The user wants to start documenting their project for claude-mega-brain
  • SKILL.md covers What to create and Steps
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Init is an agent skill from guhcostan/claude-mega-brain. Initialize 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.

Its SKILL.md is about 530 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 Knowledge bases. 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 start documenting their project for claude-mega-brain
  • The user says init mega brain
  • Setup the knowledge base
  • Inicializa o mega brain

Example prompts

  • “init mega brain”
  • “setup the knowledge base”
  • “cria o okf”
  • “/init”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Check if OKF files already exist — look for any .md with type: frontmatter, or an existing index.md / log.md. If found, tell the user and…
  2. Detect project type (package.json, pyproject.toml, go.mod, etc.) to personalize the index template.
  3. Ask the user where they want the files — suggest project root or docs/ as default. If .mega-brain.json has a dir field, use that…
  4. Write index.md and log.md in the chosen location.
  5. Tell the user

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

Init loads about 530 tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 182 words of instructions outside code blocks.

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

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). 182 words, ~530 tokens.

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

init — Initialize OKF Knowledge Base

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.

What to create

Two files are enough to get started:

index.md — the knowledge map (put it at the project root or in docs/):

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

markdown
---
type: Log
---
<today ISO date> — initialized OKF knowledge base

Steps

  1. Check if OKF files already exist — look for any .md with type: frontmatter, or an existing index.md / log.md. If found, tell the user and stop.
  2. Detect project type (package.json, pyproject.toml, go.mod, etc.) to personalize the index template.
  3. Ask the user where they want the files — suggest project root or docs/ as default. If .mega-brain.json has a dir field, use that subdirectory instead.
  4. Write index.md and log.md in the chosen location.
  5. Tell the user:
    • What was created and where
    • Start a new Claude Code session for context injection to activate
    • Add concepts with /mega-brain:ingest or create .md files with type: frontmatter anywhere in the project
    • Run /mega-brain:migrate to auto-populate from existing schemas and docs

© 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/init of guhcostan/claude-mega-brain.

Open the folder on GitHubat commit de1ab9c

Compare with similar skills

Init 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.

Init compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Init this skillguhcostan/claude-mega-brain126—~530Automated safety check: PassMIT
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence
Project CairniBlinkQ/project-cairn2352 repos~861Automated safety check: PassMIT
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k1 repos~1.5kAutomated safety check: PassMIT
Find And Citeoutline/outline41k—~537Automated safety check: PassCustom licence
Xhs Virtual Productchenjin-cmd/xhs-virtual-product727—~862Automated safety check: PassMIT

Similar skills

  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Project Cairn

    iBlinkQ/project-cairn

    Standardize how an AI-collaboration project turns work into reusable knowledge.

    235 GitHub starsUsed in 2 repos~861 tokens
    Knowledge ManagementAuto-check passed
  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Find And Cite

    outline/outline

    Answer questions from the Outline knowledge base with quotes and links to the source documents; use when the user asks what the team knows, documented, or decided about a topic.

    41k GitHub stars~537 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    727 GitHub stars~862 tokensUpdated 7 days ago
    Knowledge ManagementAuto-check passed
  • Openkb

    VectifyAI/OpenKB

    A skill your agent uses when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an…

    4.7k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: warnings

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
  • Migrate

    guhcostan/claude-mega-brain

    Scan the project and migrate existing documentation into OKF format.

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

Questions about Init

What does Init do?

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

When should I use Init?

Init fits situations like: the user wants to start documenting their project for claude-mega-brain; the user says init mega brain; setup the knowledge base; inicializa o mega brain.

How do I install Init in Claude Code?

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

How do I install Init in Codex?

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

Can I use Init 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 init -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/init, .gemini/skills/init, .github/skills/init and .opencode/skills/init in your project.

What does Init need to run?

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

Does Init 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 Init 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 Init use?

Init 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 Init use?

About 530 tokens (SKILL.md is roughly 2.1k 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 Init?

Skills that share tags, products or a category with Init: Capture Conversation (outline/outline, 41k stars), Project Cairn (iBlinkQ/project-cairn, 235 stars), LLM Wiki Knowledge Graph (Egonex-AI/Understand-Anything, 86k stars) and Find And Cite (outline/outline, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Init?

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.