Skip to content
Back to skills

Init

ASecurity

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.

  • 128 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 30, 2026
ai-agentsgoapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned August 30, 2026

npx -y skills add guhcostan/claude-mega-brain --skill init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/guhcostan-init/badge)](https://www.skillsdirectory.com/skills/guhcostan-init)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.