edit-brain

edit-brain is a skill for Claude Code from DrDroidLab/open-index. It costs 55 tokens per session (584 once invoked), scanned A, original, MIT.

A guide for adding and changing knowledge in a structured knowledge base, including the types of records it stores and the links between them.

In plain words
What is it for?
Use it to define record types, add or update records, connect related records, index the stored files, and validate the result.
Why use it?
It helps keep new information consistent with the knowledge base's existing structure instead of creating conflicting record types or relationships.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to define record types, add or update records, connect related records, index the stored files, and validate the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drdroidlab/open-index/edit-brain
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.

Any agent
npx skills add DrDroidLab/open-index --skill edit-brain
Clone the repo
git clone --depth 1 https://github.com/DrDroidLab/open-index

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/drdroidlab/open-index/edit-brain/github.svg)](https://agentmods.dev/skills/drdroidlab/open-index/edit-brain)
Your own site
<a href="https://agentmods.dev/skills/drdroidlab/open-index/edit-brain"><img src="https://agentmods.dev/badge/skills/drdroidlab/open-index/edit-brain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for edit-brain

Your own site · 80×15
<a href="https://agentmods.dev/skills/drdroidlab/open-index/edit-brain"><img src="https://agentmods.dev/badge/skills/drdroidlab/open-index/edit-brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.00584
Opus 5.5 $0.00022 $0.00234
Sonnet 5.5 $0.00011 $0.00117
Haiku 4.5 $0.00006 $0.00058

Measured 1mo ago against content hash 9837175263ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

edit-brain 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 1mo 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.

examples/infra-brain/.claude/skills/edit-brain/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Editing this brain

This repo is a brain (a context graph built with Open Index). You can edit it two equivalent ways — both land in the same validated store, so pick whichever fits:

  • Over MCP (server open-index): create_doc_type, put_entity. Preferred when the server is connected.
  • By editing files then running open-index index and open-index validate.

Always start here

Use the navigation guide pre-injected by the MCP host, when available. Otherwise call navigation_guidelines() (MCP) or read doc_types/*.yaml. It tells you which doc_types exist, their fields, and the relationship vocabulary already in use. Reuse existing doc_types and relationship meanings instead of inventing near-duplicates.

Add / update an entity

  • Id must be <doc_type>:<slug> (e.g. service:checkout). put_entity is an upsert.
  • Fill the doc_type's schema fields. Correlate with related_to: { "target": "<id>", "relationship_edge_meaning": "<meaning>" }. Prefer a declared relationship meaning for the doc_type (see the guide); it's validated.
  • File-backed doc_types → the entity is written to entities/<doc_type>/<slug>.json. Index-backed → it lives only in the DB. You don't choose per-write; the doc_type does.

Define a new doc_type (only if none fits)

create_doc_type, or write doc_types/<name>.yaml:

doc_type: <name>
description: <what it is>
storage: index            # index = DB-owned (generated/high-volume) · file = git-tracked (curated)
display: { label_field: name, color: "#6b7280" }
schema:
  fields:
    - { name: name, type: string, search: syntactic, boost: 6 }   # boost = search weight
    - { name: description, type: text, search: semantic }
relationships:            # declare the edges this type uses, so they're discoverable
  - { name: "<meaning>", target_doc_type: <other_type> }

After editing files

Run open-index index (loads file-backed entities) then open-index validate. Fix any reported errors (bad ids, wrong relationship target types) before finishing.

Read the full file on GitHub · 51 lines

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. 1mo ago First seen · 51 lines · 55 tokens per session scan A 9837175263ae

Subscribe to this mod's changes

edit-brain is a skill published in the GitHub repository DrDroidLab/open-index (113 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 584 once invoked, about $0.0002 per session on Opus 5.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

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

agent-memory-discipline

Rules for when an agent should recall from long-term memory before acting and when it should save decisions, corrections and failures afterwards. Works with any memory backend.

sickn33/agentic-awesome-skills · 36 tokens

agent-state-bar

A design guide for an agent status bar: a short, automatically updated summary of progress, remaining tasks, tool counts, errors, and system state placed near the latest model input.

bojieli/ai-agent-book · 105 tokens

kv-cache-design

A guide to arranging an AI agent's conversation so previously processed text can be reused. A KV cache stores intermediate results for earlier tokens, while a prompt cache reuses a stable beginning across requests.

bojieli/ai-agent-book · 91 tokens

reward-design

A guide to defining the scores that an AI agent receives during trial-and-error training. It covers checks based on rules, human preferences, or another model, and distinguishes rewarding the final result from rewarding the steps taken.

bojieli/ai-agent-book · 131 tokens

agent-evolution

A guide to making an AI agent improve from its past runs. It covers how to judge results, extract reusable lessons, and decide whether to store them as knowledge, instructions, code, or model training.

bojieli/ai-agent-book · 126 tokens