Logo: Shared Brain Bookkeeping

Shared Brain Bookkeeping

Communautéit
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.

Iwwersiicht

Editeursherifican
RepositoryAgent-FleetOps
Skill-Nummshared-brain-bookkeeping
Stären
34
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    sherifican huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Shared Brain Bookkeeping an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/sherifican/Agent-FleetOps/tree/main/skills/shared-brain-bookkeeping
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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 nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Shared Brain Bookkeeping an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Shared Brain Bookkeeping automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Shared Brain Bookkeeping net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-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.

Firwat Shared Brain Bookkeeping op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Shared Brain Bookkeeping besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Shared Brain Bookkeeping an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/sherifican/Agent-FleetOps/tree/main/skills/shared-brain-bookkeeping an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Shared Brain Bookkeeping benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Shared Brain Bookkeeping benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Shared Brain Bookkeeping domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Shared Brain Bookkeeping gratis?

Jo. sherifican huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇