init

init is a skill for Claude Code from guhcostan/claude-mega-brain. It costs 89 tokens per session (543 once invoked), scanned A, original, MIT.

An initializer for an OKF knowledge base: a small set of Markdown files that records a project's documented concepts and a running change log. It first checks whether such files already exist and detects the project type for the index.

In plain words
What is it for?
Use it when starting documentation for a project that will use claude-mega-brain, creating an index of tables, metrics, APIs, and services plus an initialization log.
Why use it?
It gives a project a starting place for shared technical knowledge without creating unnecessary structure. It also avoids overwriting an existing knowledge base.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the claude-mega-brain plugin — 4 skills, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/guhcostan/claude-mega-brain/init
Any agent
npx skills add guhcostan/claude-mega-brain --skill init
Clone the repo
git clone --depth 1 https://github.com/guhcostan/claude-mega-brain

Made for: Claude Code.

Or install claude-mega-brain, the plugin that ships this one along with the rest of its 4 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for init

README.md
[![agentmods](https://agentmods.dev/badge/skills/guhcostan/claude-mega-brain/init.svg)](https://agentmods.dev/skills/guhcostan/claude-mega-brain/init)
Your own site
<a href="https://agentmods.dev/skills/guhcostan/claude-mega-brain/init"><img src="https://agentmods.dev/badge/skills/guhcostan/claude-mega-brain/init.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 543 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.00543
Opus 5 $0.00044 $0.00271
Sonnet 5 $0.00018 $0.00109
Haiku 4.5 $0.00009 $0.00054

Measured 6d ago against content hash f1ffb80f1db9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/init/SKILL.md · 59 lines

What it actually says

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

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

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 59 lines · 89 tokens per session scan A f1ffb80f1db9

Subscribe to this mod's changes

init is a skill published in the GitHub repository guhcostan/claude-mega-brain (125 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 543 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

reduce

Extract structured knowledge from source material. Comprehensive extraction is the default — every insight that serves the domain gets extracted. For domain-relevant sources, skip rate must be below 10%. Zero extraction from a domain-relevant source is a BUG. Triggers on "/reduce", "/reduce [file]", "extract…

agenticnotetaking/arscontexta · 73 tokens

rethink

Challenge system assumptions against accumulated evidence. Triages observations and tensions, detects patterns, generates proposals. The scientific method applied to knowledge systems. Triggers on "/rethink", "review observations", "challenge assumptions", "what have I learned".

agenticnotetaking/arscontexta · 51 tokens

graph

Interactive knowledge graph analysis. Routes natural language questions to graph scripts, interprets results in domain vocabulary, and suggests concrete actions. Triggers on "/graph", "/graph health", "/graph triangles", "find synthesis opportunities", "graph analysis".

agenticnotetaking/arscontexta · 50 tokens

remember

Capture friction as methodology notes. Three modes — explicit description, contextual (review recent corrections), session mining (scan transcripts for patterns). Triggers on "/remember", "/remember [description]".

agenticnotetaking/arscontexta · 40 tokens

verify

Combined verification — recite (description quality via cold-read prediction) + validate (schema compliance) + review (health checks). Use as a quality gate after creating notes or as periodic maintenance. Triggers on "/verify", "/verify [note]", "verify note quality", "check note health".

agenticnotetaking/arscontexta · 61 tokens

seed

Add a source file to the processing queue. Checks for duplicates, creates archive folder, moves source from inbox, creates extract task, and updates queue. Triggers on "/seed", "/seed [file]", "queue this for processing".

agenticnotetaking/arscontexta · 49 tokens