Skip to content
Agentmart
Submit a tool
This entry duplicates edit-brain, which is the one we list in search.

edit-brain

How to add or edit knowledge in this brain — define doc_types, add or update entities, and correlate them with relationships.

Skill by DrDroidLab

IndexedMIT★ 113
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/drdroidlab-edit-brain-59e35f

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

How to add or edit knowledge in this brain — define doc_types, add or update entities, and correlate them with relationships. Use whenever the user asks to add/update knowledge, define a concept, record a learning, or link two things in the brain.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
edit-brain
Description
How to add or edit knowledge in this brain — define doc_types, add or update entities, and correlate them with relationships. Use whenever the user asks to add/update knowledge, define a concept, record a learning, or link two things in the brain.
License
MIT
Instructions
43 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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`:
```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.

From DrDroidLab/open-index, MIT.

Signals

Stars
113
Forks
5
Open issues
0
Last commit (this folder)
Aug 8, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from DrDroidLab

Cite this page

edit-brain skill. Agent Mart. https://agentmart.dev/skills/drdroidlab-edit-brain-59e35f (last updated 2026-10-24)