Logo von 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.

Übersicht

Herausgebersherifican
RepositoryAgent-FleetOps
Skill-Nameshared-brain-bookkeeping
Sterne
34
Forks
0
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von sherifican auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Shared Brain Bookkeeping in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/sherifican/Agent-FleetOps/tree/main/skills/shared-brain-bookkeeping
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Shared Brain Bookkeeping in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Shared Brain Bookkeeping automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Shared Brain Bookkeeping nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Häufig gestellte Fragen

Was macht der 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.

Warum Shared Brain Bookkeeping in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Shared Brain Bookkeeping besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Shared Brain Bookkeeping in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/sherifican/Agent-FleetOps/tree/main/skills/shared-brain-bookkeeping ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Shared Brain Bookkeeping nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Shared Brain Bookkeeping verwenden?

So viele Sie möchten. In TypingMind können Sie Shared Brain Bookkeeping mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Shared Brain Bookkeeping kostenlos?

Ja. Der Skill wird von sherifican auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇