edit-brain

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 CodeCodex

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/drdroidlab/open-index/edit-brain
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, Codex.

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. 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 $0.00055 $0.00584
Opus 5 $0.00028 $0.00292
Sonnet 5 $0.00011 $0.00117
Haiku 4.5 $0.00006 $0.00058

Measured 3d ago against content hash 9837175263ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (105 stars, last pushed 21d ago), licensed MIT. It adds 55 tokens to every session and 584 once invoked, about $0.0003 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

LLM

Implement large language model (LLM) chat completions using the z-ai-web-dev-sdk. Use this skill when the user needs to build conversational AI applications, chatbots, AI assistants, or any text generation features. Supports multi-turn conversations, system prompts, and context management.

ssmurfgg04-gif/context-m · 59 tokens

ASR

Implement speech-to-text (ASR/automatic speech recognition) capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to transcribe audio files, convert speech to text, build voice input features, or process audio recordings. Supports base64 encoded audio files and returns accurate text…

ssmurfgg04-gif/context-m · 65 tokens

VLM

Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images, describe visual content, or create applications that combine image understanding with conversational AI. Supports image URLs and base64 encoded images for multimodal interactions.

ssmurfgg04-gif/context-m · 56 tokens

pptx

从论文、大纲或结构化文本生成 PowerPoint (.pptx) 演示文稿。Use when 用户需要把一篇论文/文章/大纲做成幻灯片、slides、演示文稿、PPT、deck。Don't use when 只需纯文本总结、生成 Word/PDF、或修改已有 pptx 的单个像素级样式。.

bojieli/ai-agent-book · 84 tokens

embed

Generate, inspect, and use node/text embeddings in Semantica — compute Node2Vec embeddings, find similar nodes, score link predictions, batch similarity, and pairwise similarity. Uses NodeEmbedder, SimilarityCalculator, LinkPredictor, and AgentContext. Sub-commands: compute, similar, similarity, predict-link…

semantica-agi/semantica · 0 tokens

writing

将共享历史中的已验证事实和计算结果整理成符合受众、格式与长度约束的成稿。.

bojieli/ai-agent-book · 27 tokens