Logo van Shared Brain Bookkeeping

Shared Brain Bookkeeping

Community
sherifican
shared-brain-bookkeeping

Use when the task involves auditing, consolidating, updating, or garbage-collecting a project's shared brain files — the markdown knowledge/rule files that multiple agents read and write. Covers memory/feedback_*.md, brain/*.md, the agent roster table in the root instructions file, and any AGENTS.md files in subdirectories. Runs a structured audit script set and produces a diff-style report of proposed changes. Do NOT use for editing source code.

Overzicht

Uitgeversherifican
RepositoryAgent-FleetOps
Skillnaamshared-brain-bookkeeping
Sterren
34
Forks
0
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door sherifican op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Shared Brain Bookkeeping in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/sherifican/Agent-FleetOps/tree/main/skills/shared-brain-bookkeeping
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sherifican/Agent-FleetOps.git /tmp/Agent-FleetOps
mkdir -p .claude/skills
cp -r /tmp/Agent-FleetOps/skills/shared-brain-bookkeeping .claude/skills/shared-brain-bookkeeping
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Shared Brain Bookkeeping in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Shared Brain Bookkeeping automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Shared Brain Bookkeeping niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Shared Brain-File Bookkeeping

A project's shared brain is the set of markdown knowledge/rule files — memory rules, feedback notes, brain docs, the agent roster — that multiple agents read and write over the life of the project. Left alone, these files go stale, duplicate each other, and keep referencing retired agents and tools. This skill is the bookkeeping pass that keeps the shared brain trustworthy.

Portability note

The scripts are cross-platform; on Linux invoke them with python3 (see the scripts' comments for the one path-glob note). All paths below are relative to the project root.

Invocation triggers

  • Owner asks: "audit the brain files" or "which memory rules are stale?"
  • Agent detects conflicting or duplicated rules during task execution.
  • Quarterly maintenance window (owner discretion).

Scope

Covers these paths relative to project root:

  • memory/feedback_*.md
  • brain/*.md (if directory exists)
  • Root agent-instructions file (CLAUDE.md / AGENTS.md — agent roster table section only)
  • */AGENTS.md (recursively, 2 levels deep)

Preconditions

  1. Python 3.10+ available in environment.
  2. scripts/brain_inventory.py exists alongside this SKILL.md. ⚠ NOT shipped in this export. This directory contains only SKILL.md. The procedure below calls three scripts that are not here — scripts/brain_inventory.py, scripts/staleness_detector.py and scripts/duplication_detector.py — and you must supply all three before any of it runs. Each step documents the JSON its script has to produce, and that output shape is the contract to write against.
  3. Agent has read access to all memory paths.

Procedure

Step 1 — Inventory

Run python3 scripts/brain_inventory.py --root . --output brain_inventory.json (pass the project dev tree as --root, e.g. --root /path/to/project, or . when run from the project root).

This produces a JSON file with:

  • file_path: relative path
  • last_modified: ISO timestamp
  • word_count: integer
  • heading_count: number of H1/H2/H3
  • cross_reference_count: how many other memory files mention this file's basename

Step 2 — Staleness detection

Run python3 scripts/staleness_detector.py --inventory brain_inventory.json --days 30 --output stale_report.json.

Before proposing an archive from the stale report, check frontmatter re-triage:. A valid date in the future is scheduled, not stale: exclude that record from archive proposals until its re-triage date. When the date arrives, reassess against the criteria; the date alone is not an archive decision.

Flag criteria:

  • cross_reference_count == 0 → STALE (no other inventoried file references this file's basename in its body)
  • File frontmatter declares itself deprecated (name ends in _SUPERSEDED_<date>, OR deprecated: true, OR superseded_by: <slug>) → STALE
  • File references an agent or tool that no longer exists (e.g., a retired model lane still cited post-migration without update) → STALE

(v1.1.0 note: previously this step also consumed chat_log_index.md for chat-side recency. That dependency was removed because the project did not maintain the chat-log-index file; the in-body cross-reference count is the sole orphan signal now. See Patch history below.)

Step 3 — Duplication detection

Run python3 scripts/duplication_detector.py --inventory brain_inventory.json --threshold 0.75 --output dup_report.json.

Uses TF-IDF cosine similarity on file bodies. Threshold 0.75 means "75% semantic overlap."

Step 4 — Consolidation plan

Read the three JSON reports and write BRAIN_CONSOLIDATION_PLAN.md containing:

  • Merge proposals: pairs of files with >0.75 similarity, proposed merged path
  • Archive proposals: stale files with no cross-references, proposed archive path
  • Update proposals: files referencing deprecated agents/tools, proposed edits
  • Risk callouts: any file marked CRITICAL that is also flagged stale (escalate to owner)

Step 5 — Owner approval

Present BRAIN_CONSOLIDATION_PLAN.md to owner. The orchestrating agent spot-verifies each flag against the actual file on disk before propagating it (a confident "stale/duplicate" call can itself be stale — verify the artifact first). Do NOT execute deletions or moves without owner confirmation.

Step 6 — Execution (post-approval)

Perform approved merges, moves, and edits. Update any AGENTS.md or root-instructions-file references that point to renamed files.

Failure handling

  • If Python dependencies (scikit-learn for TF-IDF) are missing, fall back to simple string-in-common-word matching and flag the lower-confidence result.
  • If a file is locked or unreadable, log it and continue.

Anti-patterns

  • Do NOT delete files without owner approval.
  • Do NOT merge CRITICAL-priority files into STANDARD-priority files (downgrades visibility).
  • Do NOT run this Skill on source code or test files.
  • Do NOT compress the report to save tokens — the no-compression discipline applies; full detail is required.

Patch history

v1.2.0 — 2026-05-27 (agent self-patch dispatch per the v1.2.0 patch brief)

  • staleness_detector.py: is_deprecated() rewritten from content-substring heuristic to frontmatter-anchored detection (name ends in _SUPERSEDED_<date>, deprecated: true, or superseded_by: <slug>). Eliminates known v1.1.0 false positives: project_release_versioning.md, feedback_context_via_keeper_agent.md, feedback_whats_new_panel_max_three_visible.md. Resolves OPEN_THREADS.md item #2.
  • brain_inventory.py: cross-reference computation now emits explicit_reference_count (count of wiki-style double-bracket slug link references) + casual_reference_count (count of bare-basename substring matches outside double-bracket links); cross_reference_count preserved as sum for backward compatibility. Resolves OPEN_THREADS.md item #8.
  • SKILL.md §Procedure Step 2 staleness criteria list refreshed (drop the "first 10 lines" wording from the deprecation criterion to reflect the metadata-anchored check).

v1.1.0 — 2026-05-26 (agent self-patch dispatch per the v1.1.0 patch brief)

  • staleness_detector.py: stripped a still-active model lane from the dead_agents list (the lane stayed active through ~2026-06-15 per feedback_cost_offloader_lane_through_jun15.md)
  • brain_inventory.py: extended memory globs to include memory/reference_*.md + memory/project_*.md (previously missed 16 files / ~18% of scope)
  • staleness_detector.py: removed chat_log_index.md dependency (file not maintained in this project; in-body cross-reference counting is sufficient signal)
  • SKILL.md §Procedure Step 2 updated to remove --chat-log-index flag from invocation example + reflect new orphan logic (cross-ref count alone, not AND'd with mtime cutoff)

v1.0.0 — 2026-05-26 (initial deployment)

  • Initial Skill deployment. See BRAIN_CONSOLIDATION_PLAN.md §6 for the 3 bugs that motivated v1.1.0.

Veelgestelde vragen

Wat doet de AI-skill Shared Brain Bookkeeping?

Use when the task involves auditing, consolidating, updating, or garbage-collecting a project's shared brain files — the markdown knowledge/rule files that multiple agents read and write. Covers memory/feedback_*.md, brain/*.md, the agent roster table in the root instructions file, and any AGENTS.md files in subdirectories. Runs a structured audit script set and produces a diff-style report of proposed changes. Do NOT use for editing source code.

Waarom Shared Brain Bookkeeping gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Shared Brain Bookkeeping bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Shared Brain Bookkeeping in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/sherifican/Agent-FleetOps/tree/main/skills/shared-brain-bookkeeping. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Shared Brain Bookkeeping gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Shared Brain Bookkeeping gebruiken?

Zoveel als je wilt. Je kunt Shared Brain Bookkeeping gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Shared Brain Bookkeeping gratis?

Ja. Deze skill is door sherifican op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇