brain-ingest-gate
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named…
Extract a sanitized shared team/company brain from a personal brain. Strips internal ratings, compensation, performance assessments, retention and political dynamics from pages, takes, and facts across the full scan scope (people, companies, meetings, dailies, cross-references —
$ npx -y skills add garrytan/gbrain --skill company-brainify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/company-brainifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Extract a sanitized shared team/company brain from a personal brain. Strips internal ratings, compensation, performance assessments, retention and political dynamics from pages, takes, and facts across the full scan scope (people, companies, meetings, dailies, cross-references —
name: company-brainify version: 1.0.0 description: > Extract a sanitized shared team/company brain from a personal brain. Strips internal ratings, compensation, performance assessments, retention and political dynamics from pages, takes, and facts across the full scan scope (people, companies, meetings, dailies, cross-references — not just people/), verifies with grep + retrieval passes, and purges sensitive git history behind the data-loss-gate confirmation card. Also runs as a report-only re-audit on an existing shared brain. triggers: - "company brain" - "team brain" - "brainify" - "sanitize the brain" - "share my brain with the team" - "strip sensitive data from the brain" - "scrub employee data" - "audit the shared brain" - "make the brain safe to share" mutating: true writes_pages: true writes_to: - people/ - companies/ - meetings/ - daily/ - projects/ - analysis/ upstream: company-brainify@fc834ee # Brain-first in its native form: Phase-1 discovery runs through gbrain # retrieval (query/search/takes search/recall), and every edit is grounded # in a full read of the actual page. writes_to lists the scan scope the # skill edits IN PLACE — it does not create new pages there, except the # deletion-log entry under daily/ required by data-loss-gate Step 4. brain_first: true
> **Convention:** see [conventions/brain-first.md](../conventions/brain-first.md) — > discovery runs through the brain's own retrieval, not filesystem guesswork. > The grep pipelines below TRIAGE; `gbrain query` finds what keyword patterns miss. > > **Convention:** see [conventions/test-before-bulk.md](../conventions/test-before-bulk.md) — > sanitize 3-5 files, read the output yourself, then ramp. A bad bulk > sanitization pass is worse than none: it looks done and isn't. > > **Convention:** see [conventions/regex-discipline.md](../conventions/regex-discipline.md) — > "is this sensitive?" is a judgment call, so the model decides per file. The > grep patterns are earned triage/verification tools, never the judge. > > **Convention:** see [_brain-filing-rules.md](../_brain-filing-rules.md) — > edits stay in the page's existing directory; the deletion log files > date-keyed under `daily/`.
Personal brains accumulate everything — company knowledge, meeting notes, internal assessments, compensation details, management strategy, candid opinions about the people you work with. When you stand up a shared team brain from that personal brain (see `docs/architecture/brains-and-sources.md` for the team-mount topology), all of that has to go. The knowledge is valuable; the sensitive metadata is a liability.
Clean working-tree files alone are NOT enough: git history still carries every pre-sanitization version, and gbrain takes/facts carry evaluative claims outside the page prose. This skill handles all three surfaces — pages, takes/facts, and history.
| Category | Examples | |----------|----------| | **Internal scores/ratings** | `score:`, `rating:`, `skill:`, or any vertical-specific `*_score:` frontmatter field; any numeric rating of a person | | **Compensation** | Salary, equity, carry, option grants, comp changes, retention packages | | **Performance assessments** | Strengths/weaknesses sections about employees, "at risk" flags, underperformance mentions, "picking up slack" references | | **Departure/retention** | Who's considering leaving, who was convinced to stay, departure rumors, retention conversations | | **Management strategy** | How-to-manage-someone sections, "the hard conversation" notes, scope/title management plans | | **Internal political dynamics** | Who doesn't like whom, who's nervous about whom, adversarial relationships, power dynamics | | **Personal PII** | Phone numbers, personal email addresses, home addresses, family or medical details, personal legal matters, personal-life details | | **Takes/facts** | Any take or fact referencing the above categories — performance, comp, retention, weakness, management risk. Fact rows are DELETED from the page's Facts fence, never merely expired with `gbrain forget` |
| Category | Examples | |----------|----------| | **Professional identity** | Name, role, title, work email, LinkedIn | | **What they're building** | Current projects, product work, technical contributions | | **Career arc** | Prior companies, education, professional background (public info) | | **Professional beliefs** | Their views on technology, strategy, product philosophy | | **Timeline of work** | Meeting attendance, project milestones, launches (factual, not evaluative) | | **Skills/expertise** | Technical capabilities, domain knowledge |
Sensitive content leaks far beyond people pages. The scan scope is:
still points at removed sections
A pass that only covers `people/` will certify a brain that still leaks.
All paths below are relative to the brain repo root:
BRAIN="$(gbrain config get sync.repo_path)" cd "$B
Give the agent you already use a memory you control. GBrain stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents.
Repo: garrytan/gbrain
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named…
When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the deliverable, in the SAME…
Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking.…
Deduplicate and synthesize raw concept stubs into a tiered intellectual map (T1 Canon to T4 Riff), tracing idea evolution across sources over time. Transforms…
Token-hygiene audit of the always-loaded context stack — CLAUDE.md, AGENTS.md, auto-memory MEMORY.md, and the bootstrap-rendered identity files (SOUL.md,…
When the user corrects a factual error, root-cause it immediately. Don't just note the correction — trace the error to its source, fix the source, and prevent…