brain-due-diligence
Run a full due diligence audit of a company Brain (the company or a Compai customer): verify infra claims on the host, measure the execution loop (generators…
от usecompai★ 32 звезды на GitHub
Установить brain-due-diligence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Reusable method. Configure your own sources, scope and approval rules.
Brain Due Diligence
Audit a company Brain end-to-end: don't trust the docs — verify on the host, then judge the system by its closed loops, not its ingestion volume.
Core principle
A Brain has four layers. Audit all four, but weight them by failure cost:
- Capture (sources → raw artifacts) — usually the mature part; don't start here.
- Curation/retrieval (index, canary, hot/cold split) — verify the canary actually covers what the tools advertise.
- Protection (versioning, rollback, attribution, backup, scoping) — verify every claim with commands.
- Execution (context → tasks → actions → closed) — almost always the broken part. The killer metric: closed-loop rate = (done + archived-with-reason) / created. Healthy >[configured percentage]. A Brain that only accumulates is a wiki with extra steps.
Protocol (5 phases, ~2-3 h)
Phase 1 — Context (~20 min)
- Read the handoff/state docs: search
brain_search("brain current state audit handoff")+ read everythingknowledge/platform/strategy/brain-*from the last 30 days. - Read the latest founder/owner conversation about the Brain (granola_search) — the owner's stated bottleneck frames the whole audit.
brain_health_check+brain_list(".")for the raw counts. Red flags: tasks todo:done ratio > 10:1, docs claimed vs indexed mismatch.
Phase 2 — Host verification (~40 min)
SSH to the host(s) and verify every infra claim. Standard battery:
# Versioning/rollback (if git-based)
systemctl list-timers --all | grep -Ei "brain|backup"
git -C <brain_root> status --short # clean?
# mirror heads == repo heads?
tail -20 <change-ledger>.jsonl # rows complete? actor attribution?
# Attribution quality (the % anonymous is a headline number)
tail -2000 <action-ledger>.jsonl | <count callers/agents/tools>
# Backup reality: WHERE do backups physically live? Same disk = no DR.
# Disk pressure: df -h (a full disk silently kills autocommit)
# The full loop map: systemctl list-timers + crontab -l (who generates, who consumes)
# Task creation rate: ls _tasks/todo | group by date prefix
# Search health: index status, pending embeddings, canary coverage vs tool descriptions
Also verify every sync path between nodes (rsync/syncthing/git): direction, conflict resolution, attribution, whether it undermines the versioning guarantees. rsync --update (newest-mtime-wins) = silent data loss + anonymous writes.
Phase 3 — Execution-loop forensics (~30 min)
- Count generators (every cron/timer that creates tasks/signals) vs consumers (anything that reads, routes, closes). List them explicitly.
- Inspect the proactive/outbox queue for duplicate signals (same title, different hash, same day) — broken dedupe means the queue is noise.
- Find the meta-signal: alerts about the backlog that go into the backlog (e.g. "N tasks older than 7 days" filed as another task). That is the proof the loop is open.
- Find at least one signal repeated daily for >1 week with no action — name it in the report; it makes the problem concrete for the owner.
Phase 4 — Security & sensitivity (~20 min)
brain_list("credentials")and grep for secret-looking md files. Secrets in markdown inside a versioned/synced Brain = P0 (durable history + replicated to every node + readable via MCP without scoping).- Attribution: % anonymous callers in the action ledger.
- Scoping: can any node/employee read finance/HR/sensitive docs? (Test one path.)
- DR: enumerate what is lost if the primary host disappears entirely.
Phase 5 — Report + handoff (~40 min)
Write knowledge/platform/strategy/brain-due-diligence-<actor>-<date>.md with frontmatter (owner, generated_by, last_verified, stale_after, related_docs) and EXACTLY this structure:
- Independent verification table — claim by claim, PASS/FAIL, evidence.
- Findings by severity — P0/P1/P2, each with verified evidence (numbers, paths, dates). No finding without evidence.
- What is solid (do not touch) — explicit, prevents re-litigating.
- Strategic response — map findings to the owner's stated bottleneck; phased plan (build the consumer first, then wire L3 execution, guardrails in parallel). Include the sequencing rule: no new ingestion sources until closed-loop rate > [configured percentage].
- Technical hardening plan in lotes — each lote ≤ 2 days of work, handoff-ready.
- Decisions requiring the owner — only genuine owner decisions (money, irreversible, policy).
- Audit limitations — what you could not verify and why.
Then: synthesize for the owner (TLDR first), and hand the approved lote to the executor (Codex/agent) as a self-contained prompt with verification + documentation requirements built in.
Severity rubric
- P0: data loss possible (single-host backups), secrets exposed, execution layer non-functional (closed-loop ≈ 0), no
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл brain-due-diligence?
Run a full due diligence audit of a company Brain (the company or a Compai customer): verify infra claims on the host, measure the execution loop (generators vs consumers), find security/DR/attribution gaps, and output findings by severity + a phased hardening plan. Use when asked to "audit the brain", "due diligence del brain", quarterly brain reviews, or before deploying a Brain to a new company.
Как установить скилл brain-due-diligence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл brain-due-diligence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…