[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EG85ZE72YYGFXZF03TXCEK":3,"skill-same:01M7EG85ZE72YYGFXZF03TXCEK":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":65},"01M7EG85ZE72YYGFXZF03TXCEK","company-brainify",null,"Extract a sanitized shared team\u002Fcompany 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\u002F), 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.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcompany-brainify\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: company-brainify\nversion: 1.0.0\ndescription: >\n  Extract a sanitized shared team\u002Fcompany brain from a personal brain.\n  Strips internal ratings, compensation, performance assessments, retention\n  and political dynamics from pages, takes, and facts across the full scan\n  scope (people, companies, meetings, dailies, cross-references — not just\n  people\u002F), verifies with grep + retrieval passes, and purges sensitive git\n  history behind the data-loss-gate confirmation card. Also runs as a\n  report-only re-audit on an existing shared brain.\ntriggers:\n  - \"company brain\"\n  - \"team brain\"\n  - \"brainify\"\n  - \"sanitize the brain\"\n  - \"share my brain with the team\"\n  - \"strip sensitive data from the brain\"\n  - \"scrub employee data\"\n  - \"audit the shared brain\"\n  - \"make the brain safe to share\"\nmutating: true\nwrites_pages: true\nwrites_to:\n  - people\u002F\n  - companies\u002F\n  - meetings\u002F\n  - daily\u002F\n  - projects\u002F\n  - analysis\u002F\nupstream: company-brainify@fc834ee\n# Brain-first in its native form: Phase-1 discovery runs through gbrain\n# retrieval (query\u002Fsearch\u002Ftakes search\u002Frecall), and every edit is grounded\n# in a full read of the actual page. writes_to lists the scan scope the\n# skill edits IN PLACE — it does not create new pages there, except the\n# deletion-log entry under daily\u002F required by data-loss-gate Step 4.\nbrain_first: true\n---\n\n# company-brainify — Personal → Team-Brain Sanitization\n\n> **Convention:** see [conventions\u002Fbrain-first.md](..\u002Fconventions\u002Fbrain-first.md) —\n> discovery runs through the brain's own retrieval, not filesystem guesswork.\n> The grep pipelines below TRIAGE; `gbrain query` finds what keyword patterns miss.\n>\n> **Convention:** see [conventions\u002Ftest-before-bulk.md](..\u002Fconventions\u002Ftest-before-bulk.md) —\n> sanitize 3-5 files, read the output yourself, then ramp. A bad bulk\n> sanitization pass is worse than none: it looks done and isn't.\n>\n> **Convention:** see [conventions\u002Fregex-discipline.md](..\u002Fconventions\u002Fregex-discipline.md) —\n> \"is this sensitive?\" is a judgment call, so the model decides per file. The\n> grep patterns are earned triage\u002Fverification tools, never the judge.\n>\n> **Convention:** see [_brain-filing-rules.md](..\u002F_brain-filing-rules.md) —\n> edits stay in the page's existing directory; the deletion log files\n> date-keyed under `daily\u002F`.\n\n## The Problem\n\nPersonal brains accumulate everything — company knowledge, meeting notes,\ninternal assessments, compensation details, management strategy, candid\nopinions about the people you work with. When you stand up a shared team\nbrain from that personal brain (see `docs\u002Farchitecture\u002Fbrains-and-sources.md`\nfor the team-mount topology), all of that has to go. The knowledge is\nvaluable; the sensitive metadata is a liability.\n\nClean working-tree files alone are NOT enough: git history still carries every\npre-sanitization version, and gbrain takes\u002Ffacts carry evaluative claims\noutside the page prose. This skill handles all three surfaces — pages,\ntakes\u002Ffacts, and history.\n\n## When to Use\n\n- Standing up a shared company brain from a founder\u002Fexec's personal brain\n- Auditing an existing shared brain for sensitive content that shouldn't be there\n- Onboarding new team members to a brain repo that must be verified clean first\n- Periodic hygiene pass on a shared brain that re-accumulates sensitive data\n\n## What Gets Removed\n\n### Always strip (non-negotiable)\n\n| Category | Examples |\n|----------|----------|\n| **Internal scores\u002Fratings** | `score:`, `rating:`, `skill:`, or any vertical-specific `*_score:` frontmatter field; any numeric rating of a person |\n| **Compensation** | Salary, equity, carry, option grants, comp changes, retention packages |\n| **Performance assessments** | Strengths\u002Fweaknesses sections about employees, \"at risk\" flags, underperformance mentions, \"picking up slack\" references |\n| **Departure\u002Fretention** | Who's considering leaving, who was convinced to stay, departure rumors, retention conversations |\n| **Management strategy** | How-to-manage-someone sections, \"the hard conversation\" notes, scope\u002Ftitle management plans |\n| **Internal political dynamics** | Who doesn't like whom, who's nervous about whom, adversarial relationships, power dynamics |\n| **Personal PII** | Phone numbers, personal email addresses, home addresses, family or medical details, personal legal matters, personal-life details |\n| **Takes\u002Ffacts** | 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` |\n\n### Always keep\n\n| Category | Examples |\n|----------|----------|\n| **Professional identity** | Name, role, title, work email, LinkedIn |\n| **What they're building** | Current projects, product work, technical contributions |\n| **Career arc** | Prior companies, education, professional background (public info) |\n| **Professional beliefs** | Their views on technology, strategy, product philosophy |\n| **Timeline of work** | Meeting attendance, project milestones, launches (factual, not evaluative) |\n| **Skills\u002Fexpertise** | Technical capabilities, domain knowledge |\n\n## Scan Scope — Wider Than people\u002F\n\nSensitive content leaks far beyond people pages. The scan scope is:\n\n- `people\u002F` — the primary surface (frontmatter fields, assessment sections)\n- `meetings\u002F` — transcripts and minutes with candid assessments\n- `daily\u002F` — daily notes referencing comp\u002Fperformance\u002Fretention conversations\n- `companies\u002F`, `projects\u002F`, `analysis\u002F` — cross-references to removed content\n- **Takes** — evaluative claims in page takes fences (`gbrain takes search`)\n- **Facts** — hot-memory facts (`gbrain recall --grep`)\n- **Back-links** — after edits, `gbrain check-backlinks check` confirms no page\n  still points at removed sections\n\nA pass that only covers `people\u002F` will certify a brain that still leaks.\n\n## Procedure\n\nAll paths below are relative to the brain repo root:\n\n```bash\nBRAIN=\"$(gbrain config get sync.repo_path)\"\ncd \"$BRAIN\"\n```\n\n### Phase 1: Identify scope (retrieval-first)\n\n1. Retrieval discovery — hybrid search catches judgment-shaped content that no\n   keyword pattern will:\n\n   ```bash\n   gbrain query \"compensation, equity, or salary discussions about team members\" --limit 50\n   gbrain query \"performance concerns, underperformance, or who is struggling\" --limit 50\n   gbrain query \"considering leaving, retention conversations, departure rumors\" --limit 50\n   gbrain takes search \"performance\" --limit 50\n   gbrain recall --grep \"salary\"\n   ```\n\n   Resolve every returned slug to its repo-relative file path and write the\n   paths into `\u002Ftmp\u002Fbrainify-scope.txt` (one per line). This file is the\n   scope list; the structural pass below APPENDS to it — nothing later in\n   the procedure may truncate it, or the retrieval-discovered pages\n   silently drop out of scope.\n\n2. Structural discovery — people files that belong to the company, plus\n   keyword hits across the wider scan scope:\n\n   ```bash\n   grep -rli 'company: *\"acme-example\"' people\u002F --include=\"*.md\" | sort >> \u002Ftmp\u002Fbrainify-scope.txt\n   grep -rli -E 'salary|equity|carry|retention|underperform|performance review|hard conversation' \\\n     meetings\u002F daily\u002F companies\u002F projects\u002F analysis\u002F --include=\"*.md\" 2>\u002Fdev\u002Fnull >> \u002Ftmp\u002Fbrainify-scope.txt\n   sort -u -o \u002Ftmp\u002Fbrainify-scope.txt \u002Ftmp\u002Fbrainify-scope.txt\n   ```\n\n3. Cross-reference against the company's public people page (website,\n   LinkedIn) to catch files using different frontmatter conventions.\n\n4. Count: `wc -l \u002Ftmp\u002Fbrainify-scope.txt`\n\n### Phase 2: Triage sensitivity\n\nPrioritize by hit density (portable `grep -E`; no `\\b` — BSD and GNU disagree):\n\n```bash\nwhile read -r f; do\n  hits=$(grep -c -i -E 'carry|salary|equity|comp change|departure|considering leaving|retention|underperform|picking up slack|performance review|management risk|hard conversation|nervou|score: *[0-9]|firing|fired|pip|probation|weakness' \"$f\" 2>\u002Fdev\u002Fnull || true)\n  [ \"${hits:-0}\" -gt 0 ] && echo \"$hits $f\"\ndone \u003C \u002Ftmp\u002Fbrainify-scope.txt | sort -rn > \u002Ftmp\u002Fbrainify-triage.txt\n```\n\nHigh-hit files need full judgment passes. Zero-hit files may only need\nfrontmatter field removal — but they still get read (regex triages, the model\njudges).\n\n### Phase 3: Sanitize (STAGING COPY preferred; test first, then parallel)\n\nPhase 3 is destructive: it strips content across many files, removes takes,\nand deletes fact rows. Two rules govern it.\n\n**Choose the target FIRST — copy, don't mutate the personal brain.**\n\n- **Standing up a NEW team brain (default, preferred):** sanitize a STAGING\n  COPY of the scanned directories, never the personal brain in place. The\n  founder's personal brain is SUPPOSED to keep comp, performance, and candid\n  notes — stripping them from the personal working tree destroys valuable\n  private data. Copy the Phase-1 scope into a durable staging dir and edit\n  THAT; Phase 5 Step 0 exports from the staging copy. Blast radius: none on the\n  personal brain.\n\n  ```bash\n  # Durable staging dir (NOT \u002Ftmp — same reasoning as the mirror backup).\n  STAGING=\"$HOME\u002F.gbrain\u002Fbackups\u002Fbrainify-staging-$(date +%Y%m%d-%H%M%S)\"\n  mkdir -p \"$STAGING\" && chmod 700 \"$STAGING\"\n  for d in people meetings daily companies projects analysis; do\n    [ -d \"$d\" ] && rsync -a \"$d\u002F\" \"$STAGING\u002F$d\u002F\"\n  done\n  cd \"$STAGING\"   # all edits below happen here, not in sync.repo_path\n  ```\n\n- **Re-auditing an EXISTING shared brain:** the shared brain IS the target, so\n  edits are in place on the SHARED repo (cd into the shared repo, never the\n  personal `sync.repo_path`). Fact-row removal + re-sync applies to the shared\n  source's DB.\n\n**Fire the [data-loss-gate](..\u002Fdata-loss-gate\u002FSKILL.md) confirmation card\nBEFORE the bulk destructive edits begin.** Both targets are destructive (the\ncopy path removes content from the tree destined for the team; the in-place\npath removes content from a live brain). Pre-filled for Phase 3:\n\n```\n⚠️ DATA DELETION — Confirmation Required\n\nWhat: strip sensitive content, remove takes, and delete fact rows across\n      [N files] in [STAGING COPY at \u003Cpath>  |  the SHARED brain in place]\nCount: [N files edited; T takes removed; F fact rows removed]\nLocation: [staging path OR shared repo path] — NOT the personal sync.repo_path\n          on the staging path\n\nWhy: preparing a sanitized tree for team access\n\nRecoverable?\n- [x] Personal brain untouched (staging-copy path) — re-copy to redo\n- [ ] In-place shared-brain path: edits overwrite the live tree; git history is\n      the recovery line until Phase 5 purges it\n\nProceed? (yes\u002Fno)\n```\n\nRequire a typed \"yes\"\u002F\"do it\" per data-loss-gate; \"ok\"\u002F\"sure\" are not consent.\n\nPer test-before-bulk: do 3-5 files first, read the results, then ramp. For\nlarge sets (50+ files), batch into groups of 10-12 and spawn parallel\nsubagents. Per file:\n\n1. Read the file completely\n2. Remove all content matching the \"Always strip\" categories\n3. Frontmatter: delete rating\u002Fcomp field lines entirely\n4. Sections: remove entire sections (assessment weaknesses, team dynamics,\n   management strategy)\n5. Takes and Facts fences: remove entire rows that reference sensitive\n   categories — a take like \"alice-example believes charlie-example is\n   underperforming\" reveals both the opinion and who holds it; remove the\n   whole row, never just the attribution\n6. Inline mentions: surgically edit sentences\u002Fparagraphs\n7. Write the cleaned file back\n\n**Decision rule:** use `Edit` for surgical removal when only a few sections\nneed it. Use `Write` to rewrite the entire file only when sensitive content is\ndeeply interwoven throughout.\n\n**Facts: `forget` is NOT removal.** `gbrain forget \u003Cfact-id>` expires a fact\n— the row stays on the page's Facts fence struck through, and the DB still\nserves it via `--include-expired`. An expired fact is retained, not gone.\nFor sanitization, sensitive fact rows must be ACTUALLY REMOVED: find them\n(`gbrain recall --grep`), then delete the row from the page's Facts fence\n(step 5), exactly like a sensitive take. On an in-place shared brain, the\npage edit must then be re-synced (`gbrain sync` re-imports the edited page)\nAND the facts index reconciled — sync's convergence contract covers page\nimport only; downstream fact extraction is explicitly decoupled\n(`src\u002Fcommands\u002Fsync.ts`, \"CONVERGENCE CONTRACT\"), so the DB keeps serving\nthe deleted row until the extract-facts reconcile runs. Trigger it\n(`gbrain sweep`, or wait for the serve-resident sweep), then confirm with\n`gbrain recall --grep` that the row is actually gone. An edited page over\nan un-reconciled facts index still leaks through retrieval. `forget` alone\ncan never certify a brain clean.\n\nAfter edits: on the **staging-copy** path the fact rows are removed by editing\nthe copied markdown directly (there is no live DB to re-sync yet — the team DB\nis built fresh when Phase 5 Step 0 turns the export into a source). On the\n**in-place shared-brain** path, run `gbrain sync` so the page content matches\nthe markdown, then reconcile and verify the facts index as above. Either way,\nrun `gbrain check-backlinks check` to catch pages still pointing at removed\ncontent.\n\n### Phase 4: Verify\n\nRe-run the Phase 2 triage — the count of flagged files should drop to\n(near-)zero. Then targeted greps:\n\n```bash\n# Rating fields remaining in frontmatter\ngrep -rn -E '^[a-z_]*(score|rating|skill)[a-z_]*: *[0-9]' people\u002F --include=\"*.md\"\n\n# Phone numbers\ngrep -rn -E '\\+1[0-9]{10}|\\([0-9]{3}\\) [0-9]{3}-[0-9]{4}' people\u002F --include=\"*.md\"\n\n# Comp keywords (full scan scope, not just people\u002F)\ngrep -rin -E 'carry|comp change|equity|salary' people\u002F meetings\u002F daily\u002F companies\u002F projects\u002F analysis\u002F --include=\"*.md\" 2>\u002Fdev\u002Fnull\n\n# Management\u002Fperformance\ngrep -rin -E 'considering leaving|departure rumor|underperform|picking up slack|hard conversation' people\u002F meetings\u002F daily\u002F companies\u002F projects\u002F analysis\u002F --include=\"*.md\" 2>\u002Fdev\u002Fnull\n```\n\nFalse positives (e.g. \"carry the torch\") are fine — manually confirm each\nremaining hit rather than tightening the pattern (regex-discipline).\n\n**Verify the tree that ships.** On the staging-copy path, these greps run\nagainst the sanitized `$STAGING` tree (which Phase 5 Step 0 turns into the\nexport) — the personal working tree is not what ships, so certifying it proves\nnothing. For an in-place shared-brain re-audit, the shared repo's tree is the\nshipped tree and this pass stands as-is.\n\nThen the strongest check — the retrieval the team will actually use. Against\nthe sanitized brain\u002Fsource (scope with `--source \u003Cteam-source-id>` when the\nshared source is mounted alongside personal content):\n\n```bash\ngbrain query \"what is alice-example's compensation\" --limit 10\ngbrain query \"who is underperforming or at risk of leaving\" --limit 10\ngbrain takes search \"weakness\" --limit 20\n```\n\nEvery one of these must come back empty or with only keep-category content.\n\n### Phase 5: Commit and purge history — GATED\n\nClean files aren't enough if the repo has history: old commits still contain\nthe sensitive versions.\n\n**Step 0 — preferred alternative (non-destructive).** When standing up a NEW\nteam repo, skip history rewriting entirely: the sanitized STAGING tree from\nPhase 3 becomes a fresh repo with fresh history. The personal repo keeps its\nfull history AND its full working tree, untouched.\n\n**Export rule: nothing unscanned ships.** Because Phase 3 copied ONLY the\nscanned directories into `$STAGING`, the staging tree contains nothing the\nsanitization pass didn't read — the include-only rule holds by construction.\nNever copy extra directories in: everything outside the scan scope\n(`conversations\u002F`, `originals\u002F`, `sources\u002F`, `inbox\u002F`) stays out. A whole-repo\ncopy is the classic leak — it ships raw transcripts, originals, and inbox\ncaptures no pass ever read. To ship a new directory, add it to the scan scope\nfirst (Phases 1-4) so it lands in `$STAGING` sanitized.\n\n```bash\n# The sanitized staging tree IS the export.\ncd \"$STAGING\"\n\n# Re-run the Phase 4 verification greps + retrieval checks INSIDE $STAGING —\n# the staging tree is what ships, and it is the tree that must certify clean.\n# ... Phase 4 greps against $STAGING ...\n\ngit init -b main\ngit add -A && git commit -m \"Initial import — sanitized team brain\"\ngit remote add origin \u003CTEAM_REPO_URL>\ngit push -u origin main\n```\n\nOnly when a shared repo ALREADY exists with sensitive history in it do you\nneed the purge below.\n\n**Step 1 — target the SHARED repo, commit the clean tree, then mirror-clone.**\nThe purge operates on the SHARED repo, NEVER on `sync.repo_path` (the personal\nbrain) — Step 0's guarantee that the personal repo keeps full history depends\non it. Clone the shared repo to a durable work dir, stay there for every step\nbelow, and assert the target is not the personal repo before touching anything.\n\n```bash\nPERSONAL=\"$(gbrain config get sync.repo_path)\"\nmkdir -p \"$HOME\u002F.gbrain\u002Fbackups\" && chmod 700 \"$HOME\u002F.gbrain\u002Fbackups\"\nWORK=\"$HOME\u002F.gbrain\u002Fbackups\u002Fbrainify-purge-$(date +%Y%m%d-%H%M%S)\"\ngit clone \u003CSHARED_REPO_URL> \"$WORK\u002Fshared\"\ncd \"$WORK\u002Fshared\"\n[ \"$(git rev-parse --show-toplevel)\" != \"$PERSONAL\" ] \\\n  || { echo \"target IS sync.repo_path (personal brain) — ABORT\"; exit 1; }\n\n# Apply the sanitized tree, then COMMIT it BEFORE the mirror clone. A mirror\n# captures COMMITTED state only; if the clean tree lives only in volatile\n# staging during the rewrite window, a crash loses the sanitization work.\n# Committing makes the clean state durable and recoverable.\nfor d in people meetings daily companies projects analysis; do\n  [ -d \"$STAGING\u002F$d\" ] && rsync -a \"$STAGING\u002F$d\u002F\" \".\u002F$d\u002F\"   # or sanitize in place here\ndone\ngit add -A && git commit -m \"Sanitize: strip sensitive content before history purge\"\n\n# Mirror-clone backup = the recoverability line on the card. Capture the path\n# in a variable NOW and reuse it verbatim at purge time — a run crossing\n# midnight must NOT recompute $(date) and false-abort on a mismatched name.\nBACKUP_PATH=\"$HOME\u002F.gbrain\u002Fbackups\u002Fshared-brain-history-backup-$(date +%Y%m%d-%H%M%S).git\"\ngit clone --mirror \"$WORK\u002Fshared\" \"$BACKUP_PATH\"\ngit -C \"$BACKUP_PATH\" log -1 >\u002Fdev\u002Fnull || { echo \"backup unreadable — ABORT\"; exit 1; }\n```\n\nVerify the mirror exists and reads before presenting the card — it is the\ncard's recoverability line.\n\n**Step 2 — STOP. Present the [data-loss-gate](..\u002Fdata-loss-gate\u002FSKILL.md)\nconfirmation card and wait.** History rewrite + force-push is the most\ndestructive operation in this skill: it permanently discards every prior\nversion of the purged paths from the remote. Never run it without the card\nanswered. Pre-filled for this operation:\n\n```\n⚠️ DATA DELETION — Confirmation Required\n\nWhat: rewrite git history to remove all prior versions of [purged paths]\n      from the SHARED repo, then force-push to [remote\u002Fbranch]\nCount: [N commits rewritten; M files with history purged]\nSize: [repo size before → expected after]\nLocation: [SHARED repo work dir; remote URL; branch]\nTarget check: this is the SHARED repo, verified ≠ personal sync.repo_path\n      ($PERSONAL) — the personal brain's history is never rewritten\n\nWhy: prior commits contain pre-sanitization versions of pages that were\n     just cleaned — team access to the repo means team access to history\n\nRecoverable?\n- [x] Mirror-clone backup at $BACKUP_PATH\n      (verified: exists, `git -C \"$BACKUP_PATH\" log` works)\n- [ ] NOT recoverable from the rewritten remote — old SHAs become unreachable\n\nWhat we'd lose:\n- all pre-sanitization history for the purged paths (edit trail, blame,\n  old versions)\n- every existing clone breaks — all collaborators must re-clone\n\nAlternative to deletion:\n- fresh-history export to a NEW team repo (Step 0) — personal repo untouched\n\nProceed? (yes\u002Fno)\n```\n\nPer data-loss-gate: require a typed **\"yes\"** or **\"do it\"** — \"ok\", \"sure\",\n\"go ahead\" are not consent. If the user asks a question, answer and re-present\nthe card. This gate is a routing convention, not a runtime enforcement —\nnothing in gbrain mechanically blocks `git filter-repo` — which is exactly why\nthe agent following this skill must not skip it.\n\n**Step 3 — purge (only after the explicit typed yes).** Requires\n`git filter-repo` (not bundled with git; install separately). **Run this ONLY\nin the shared-repo work dir from Step 1 (`cd \"$WORK\u002Fshared\"`). NEVER run\n`git filter-repo` or `git push --force` in `sync.repo_path` — the personal\nbrain's history must stay intact.** The commands below reuse `$WORK` and\n`$BACKUP_PATH` from Step 1; they never recompute a date-stamped path.\n\n```bash\ncd \"$WORK\u002Fshared\"\n[ \"$(git rev-parse --show-toplevel)\" != \"$PERSONAL\" ] \\\n  || { echo \"target IS sync.repo_path — ABORT, do not filter-repo\"; exit 1; }\n\n# The purge list derives from the COMPLETE set of sanitized paths — the same\n# directories Phases 1-4 scanned. A filter list narrower than the scan\n# (people\u002F + meetings\u002F only) leaves pre-sanitization history alive for every\n# other scanned directory. The restore carrier below MUST match this same\n# list — backed-up set, filtered set, and re-added set are identical.\nPURGE_DIRS=\"people meetings daily companies projects analysis\"\n\n# Back up the clean working tree of every purged path to a DURABLE carrier\n# (under $WORK in ~\u002F.gbrain\u002Fbackups — never \u002Ftmp, which can vanish mid-rewrite).\nCLEAN=\"$WORK\u002Fclean\"\nmkdir -p \"$CLEAN\"\nfor d in $PURGE_DIRS; do\n  [ -d \"$d\" ] || continue\n  mkdir -p \"$CLEAN\u002F$d\" && cp -r \"$d\u002F.\" \"$CLEAN\u002F$d\u002F\"\ndone\n\n# Rewrite history: one --path per purged directory, derived from $PURGE_DIRS\nrm -rf .git\u002Ffilter-repo\ngit filter-repo --invert-paths $(for d in $PURGE_DIRS; do printf -- '--path %s\u002F ' \"$d\"; done) --force\n\n# Restore clean files and re-commit as a single new commit — same $PURGE_DIRS\nfor d in $PURGE_DIRS; do\n  [ -d \"$CLEAN\u002F$d\" ] || continue\n  mkdir -p \"$d\" && cp -r \"$CLEAN\u002F$d\u002F.\" \"$d\u002F\"\ndone\ngit remote add origin \u003CSHARED_REPO_URL>   # filter-repo removes remotes\nfor d in $PURGE_DIRS; do [ -d \"$d\" ] && git add \"$d\u002F\"; done\ngit commit -m \"Re-add sanitized directories\"\n\n# VERIFY RESTORE COMPLETENESS before the irreversible push — a partial restore\n# would ship a smaller tree than was sanitized. Compare file counts (and, for\n# extra safety, checksums) between the carrier and the restored tree.\nbefore=$(find \"$CLEAN\" -type f | wc -l | tr -d ' ')\nafter=$(for d in $PURGE_DIRS; do [ -d \"$d\" ] && find \"$d\" -type f; done | wc -l | tr -d ' ')\n[ \"$before\" = \"$after\" ] \\\n  || { echo \"restore incomplete ($before → $after files) — ABORT, do not force-push\"; exit 1; }\n# Optional stronger check: diff -r \"$CLEAN\u002F\u003Cd>\" \"\u003Cd>\" for each purged dir.\n\n# RE-VERIFY the backup immediately before the irreversible step — card-time\n# verification is not enough; time has passed and the rewrite could have gone\n# sideways. Reuse $BACKUP_PATH (do NOT recompute $(date)); abort if unreadable.\ngit -C \"$BACKUP_PATH\" log -1 >\u002Fdev\u002Fnull \\\n  || { echo \"backup missing\u002Funreadable — ABORT, do not force-push\"; exit 1; }\n\ngit push --force origin main\n```\n\n**Step 4 — log it (to the PERSONAL brain, NEVER the shared repo).** Per\ndata-loss-gate, append the deletion under `## Data Deletions` — but write it to\nthe PERSONAL brain's `$PERSONAL\u002Fdaily\u002Fnotes\u002FYYYY-MM-DD.md` (or a local ops\nlog), never into the shared repo. The log names the purged paths AND the\nbackup location; in the shared repo those two facts would tell every team\nmember exactly which paths held sensitive content and where the\npre-sanitization backup lives — the audit trail becomes a treasure map.\nRecord: timestamp, purged paths, commit counts, and `$BACKUP_PATH` as the\nrecovery line.\n\n**After the force push:**\n\n- All existing clones must re-clone\n- Hosting providers may cache unreachable commits for a time (on the order of\n  months); for immediate removal use the provider's sensitive-data removal\n  process. For private\u002Finternal repos, the SHA being unreachable from any ref\n  is usually sufficient\n- The sync cursor may reference a rewritten-away SHA; if the next\n  `gbrain sync` errors or falls back to a full rescan, that is the cursor\n  recovering — run `gbrain doctor` if it doesn't settle\n- **Backup retention:** once the rewrite is verified good (team has\n  re-cloned, sync settled, no missing content reported), keep the\n  mirror-clone backup in `~\u002F.gbrain\u002Fbackups\u002F` for a retention window\n  (~30 days is a sane default), then delete it — it contains the\n  pre-sanitization history and should not accumulate indefinitely:\n  `rm -rf ~\u002F.gbrain\u002Fbackups\u002Fshared-brain-history-backup-\u003Cdate>.git`\n  (the glob must match the `shared-brain-history-backup-*` name the backup\n  step created — a mismatched pattern deletes nothing and silently retains\n  the pre-sanitization history forever)\n- If the repo carries push hooks or auto-hardening wiring, re-verify remotes\n  and hooks survived the rewrite before handing the repo to the team\n\n**Hand the repo to the team — stamp it shared first.** Whichever path\nproduced the team repo (fresh-history export in Step 0 or the post-purge\nforce-push), stamp the published brain's audience before handoff:\n`gbrain config set brain.audience shared` — run against the TEAM brain,\nnever the personal one. The stamp declares this a company\u002Fteam brain, so\nthe ambient memory writeback consent nudge (a personal-brain ask) never\nfires on it. If team members will run `gbrain init` for the shared brain\nBEFORE this stamp exists (e.g. a fresh clone initializing its own engine),\nhave them prefix that one command with `GBRAIN_NO_ONBOARD_NUDGE=1` — a\nfresh un-stamped brain classifies personal, and the init-time nudge is\nfire-once, so letting it fire there would both ask the wrong question and\nburn the sentinel.\n\n### Phase 6: Ongoing hygiene — periodic re-audit\n\nSensitive data re-accumulates through meeting-transcript ingestion (candid\nassessments), enrichment pipelines pulling internal data, and manual writes\nduring candid conversations. One clean pass is a snapshot, not a state.\n\n**Recommendation:** schedule a monthly re-audit (weekly for high-ingest\nbrains) that re-runs Phases 1, 2, and 4 in report-only mode — scan and flag,\nno edits — and surfaces new hits for human review before they reach the\nshared repo. Wire it per\n[conventions\u002Fcron-via-minions.md](..\u002Fconventions\u002Fcron-via-minions.md): the\ncron slot submits a background job (`gbrain jobs submit`), scheduling\nguidance in `skills\u002Fcron-scheduler\u002FSKILL.md`, job-lane routing in\n`skills\u002Fminion-orchestrator\u002FSKILL.md`. The report-only run writes its\nfindings summary; a human (or a gated follow-up run) does the removal.\n\n## Scaling Notes\n\n- **\u003C 20 files:** process sequentially in one pass\n- **20-50 files:** 2-3 parallel subagents\n- **50-150 files:** 8-12 parallel subagents, batches of 10-15\n- **150+ files:** scripted pattern removal for the rote cases only\n  (frontmatter fields, phone numbers — machine-emitted shapes, per\n  regex-discipline) + subagents for everything needing judgment\n\n## Edge Cases\n\n- **Founders vs. employees:** founder\u002Fexec pages often carry the most\n  sensitive content (board dynamics, investor relationships, assessments of\n  their own team). These need the most careful review.\n- **Meeting notes:** meeting pages referencing employee performance need the\n  same treatment as people pages — they are in scope, not an afterthought.\n- **Cross-references:** after sanitizing people pages, check that no other\n  page (meetings, companies, dailies) still references the removed content;\n  `gbrain check-backlinks check` plus a grep for the removed section titles.\n- **Takes with attribution:** a take like \"the user believes\n  charlie-example is underperforming\" reveals both the opinion and who holds\n  it. Remove the entire take, not just the attribution.\n- **Aliases and nicknames:** grep for the person's short name and initials,\n  not just the slug — candid content rarely uses full names.\n\n## Dedup (sharp boundaries)\n\n- **[data-loss-gate](..\u002Fdata-loss-gate\u002FSKILL.md)** — supplies the\n  confirmation-card mechanics and the explicit-yes discipline; company-brainify\n  is a specialized caller of it at BOTH destructive steps: Phase 3 (bulk strip\n  + take\u002Ffact removal) and Phase 5 (history purge + force-push), each with a\n  pre-filled card. A standalone \"delete\u002Fpurge\u002Fclean up X\" intent routes to\n  data-loss-gate; the personal→team sanitization WORKFLOW routes here.\n- **[publish](..\u002Fpublish\u002FSKILL.md)** — outbound sharing of ONE page as\n  encrypted self-contained HTML. company-brainify is whole-brain inbound team\n  access. \"Share this page\" → publish; \"share my brain with the team\" → here.\n- **[maintain](..\u002Fmaintain\u002FSKILL.md)** — structural health (orphans,\n  backlinks, stale pages). maintain checks whether the brain is HEALTHY;\n  company-brainify checks whether it is SAFE TO SHARE. \"Check brain health\"\n  routes to maintain.\n- **frontmatter-guard (host-side)** — validates frontmatter SHAPE.\n  company-brainify strips sensitive frontmatter FIELDS; run\n  frontmatter-guard after a large pass to confirm what remains still\n  parses.\n\n## Contract\n\nThis skill guarantees:\n\n- Both destructive steps fire the data-loss-gate confirmation card and wait for\n  an explicit typed \"yes\"\u002F\"do it\" BEFORE running: Phase 3 (bulk strip + take\u002F\n  fact removal) and Phase 5 (history purge + force-push). This is a routing\n  convention the agent must follow — nothing in the runtime mechanically blocks\n  a skipped gate, which is why skipping it is the cardinal violation of this\n  skill.\n- Phase 3 defaults to sanitizing a STAGING COPY of the scanned scope, leaving\n  the personal brain's working tree untouched; in-place edits are reserved for\n  re-auditing an existing shared brain.\n- The Phase 5 history purge (Steps 3+) runs only on the SHARED repo cloned to a\n  work dir — never `sync.repo_path` — after (a) a mirror-clone backup exists and\n  is verified, and (b) a restore-completeness check passes before the\n  force-push. The personal brain's history is never rewritten.\n- The deletion log is written to the PERSONAL brain (`daily\u002F`) or a local ops\n  log, never into the shared repo.\n- The scan covers the full scope (people, meetings, dailies, companies,\n  projects, analysis, takes, facts, back-links), never `people\u002F` alone.\n- Nothing unscanned ships: the fresh-export path includes ONLY directories\n  covered by the sanitization scan; everything else is excluded by default,\n  and the Phase 4 verification greps run against the exported tree before\n  the first push.\n- Sensitive fact rows are deleted from the page's Facts fence, re-synced,\n  and the facts index reconciled (extract-facts sweep) with the removal\n  verified via `gbrain recall --grep`, never merely expired — `gbrain\n  forget` retains the row (struck through, served via `--include-expired`)\n  and can never certify clean.\n- The history-purge filter list and its restore manifest both derive from\n  the COMPLETE set of sanitized paths, never a subset.\n- Every strip decision is a per-file model judgment grounded in a full read;\n  grep output is triage and verification only.\n- A verification pass (Phase 4 greps + retrieval checks) runs before any\n  commit is pushed to the shared repo.\n- Confirmed purges are logged to `daily\u002Fnotes\u002FYYYY-MM-DD.md` under\n  `## Data Deletions` with the backup path as the recovery line.\n- A brainified brain is stamped `brain.audience=shared` at handoff and never\n  receives the ambient-writeback enablement nudge — that consent ask is\n  reserved for personal brains.\n- Routing matches the canonical triggers in the frontmatter.\n- Output written under the directories listed in `writes_to:` (edits in\n  place, plus the daily\u002F deletion log).\n- Privacy contract preserved: no real names, no fork-specific filesystem path\n  literals, no upstream-fork references.\n\nThe full behavior contract is documented in the body sections above; this\nsection exists for the conformance test.\n\n## Output Format\n\nThree artifacts:\n\n1. **The sanitization report** (every run, including report-only re-audits):\n\n```markdown\n## Brainify Report — YYYY-MM-DD\n\n- Scope: [N files scanned across people\u002F, meetings\u002F, daily\u002F, ...]\n- Flagged: [M files with hits] (triage list attached)\n- Edited: [K files sanitized; T takes removed; F fact rows removed + re-synced + facts index reconciled]\n- Verification: [grep residuals: 0 confirmed-sensitive; retrieval checks: clean]\n- History: [not purged | fresh-export | purged after confirmed gate — backup at \u003Cpath>]\n- Next re-audit: [date \u002F cron slot]\n```\n\n2. **The confirmation card** (Phases 3 and 5) — the pre-filled fenced card,\n   presented before the bulk destructive edits (Phase 3) and before any history\n   rewrite (Phase 5); the turn stops until the user answers.\n3. **The deletion log entry** (post-purge only) — appended to the PERSONAL\n   brain's `daily\u002Fnotes\u002FYYYY-MM-DD.md` (never the shared repo) per\n   data-loss-gate Step 4.\n\n## Anti-Patterns\n\n- ❌ Scanning only `people\u002F` — meetings, dailies, and cross-references leak\n  the same content\n- ❌ Sanitizing working-tree files and calling it done — history still carries\n  every sensitive version\n- ❌ Exporting the whole repo into the team brain — the export ships ONLY\n  scanned directories; nothing unscanned ships\n- ❌ Using `gbrain forget` as sanitization — forget expires (struck-through\n  row retained, served via `--include-expired`); delete the fence row and\n  re-sync instead\n- ❌ Purging history for a subset of the sanitized paths — the filter list\n  derives from the complete scan scope, not just `people\u002F` + `meetings\u002F`\n- ❌ Running `git filter-repo` \u002F force-push without the mirror-clone backup\n  and the typed confirmation — the card comes BEFORE the rewrite, always\n- ❌ Running `git filter-repo` \u002F force-push in `sync.repo_path` — the purge\n  targets the SHARED repo cloned to a work dir; the personal brain's history is\n  never rewritten\n- ❌ Stripping the personal brain in place when standing up a NEW team brain —\n  sanitize a staging copy; the founder's private comp\u002Fperformance notes stay\n- ❌ Bulk-editing files and removing takes\u002Ffacts without the Phase 3\n  data-loss-gate card — destructive edits are gated too, not just the purge\n- ❌ Writing the deletion log into the shared repo — it names the sensitive\n  paths and the backup location; log it to the PERSONAL brain\n- ❌ Treating grep as the sensitivity judge — patterns triage, the model\n  reads and decides (regex-discipline)\n- ❌ Removing the attribution but keeping the take — the claim itself is the\n  leak; remove the whole row\n- ❌ Bulk-editing 150 files without a 3-5 file test first (test-before-bulk)\n- ❌ Tightening grep patterns to eliminate false positives — confirm the hits\n  manually instead; a \"clean\" scan from an over-fitted pattern is a false\n  certificate\n- ❌ One clean pass with no re-audit — ingestion and enrichment re-accumulate\n  sensitive content; schedule Phase 6\n","# company-brainify — Personal → Team-Brain Sanitization\n\n> **Convention:** see [conventions\u002Fbrain-first.md](..\u002Fconventions\u002Fbrain-first.md) —\n> discovery runs through the brain's own retrieval, not filesystem guesswork.\n> The grep pipelines below TRIAGE; `gbrain query` finds what keyword patterns miss.\n>\n> **Convention:** see [conventions\u002Ftest-before-bulk.md](..\u002Fconventions\u002Ftest-before-bulk.md) —\n> sanitize 3-5 files, read the output yourself, then ramp. A bad bulk\n> sanitization pass is worse than none: it looks done and isn't.\n>\n> **Convention:** see [conventions\u002Fregex-discipline.md](..\u002Fconventions\u002Fregex-discipline.md) —\n> \"is this sensitive?\" is a judgment call, so the model decides per file. The\n> grep patterns are earned triage\u002Fverification tools, never the judge.\n>\n> **Convention:** see [_brain-filing-rules.md](..\u002F_brain-filing-rules.md) —\n> edits stay in the page's existing directory; the deletion log files\n> date-keyed under `daily\u002F`.\n\n## The Problem\n\nPersonal brains accumulate everything — company knowledge, meeting notes,\ninternal assessments, compensation details, management strategy, candid\nopinions about the people you work with. When you stand up a shared team\nbrain from that personal brain (see `docs\u002Farchitecture\u002Fbrains-and-sources.md`\nfor the team-mount topology), all of that has to go. The knowledge is\nvaluable; the sensitive metadata is a liability.\n\nClean working-tree files alone are NOT enough: git history still carries every\npre-sanitization version, and gbrain takes\u002Ffacts carry evaluative claims\noutside the page prose. This skill handles all three surfaces — pages,\ntakes\u002Ffacts, and history.\n\n## When to Use\n\n- Standing up a shared company brain from a founder\u002Fexec's personal brain\n- Auditing an existing shared brain for sensitive content that shouldn't be there\n- Onboarding new team members to a brain repo that must be verified clean first\n- Periodic hygiene pass on a shared brain that re-accumulates sensitive data\n\n## What Gets Removed\n\n### Always strip (non-negotiable)\n\n| Category | Examples |\n|----------|----------|\n| **Internal scores\u002Fratings** | `score:`, `rating:`, `skill:`, or any vertical-specific `*_score:` frontmatter field; any numeric rating of a person |\n| **Compensation** | Salary, equity, carry, option grants, comp changes, retention packages |\n| **Performance assessments** | Strengths\u002Fweaknesses sections about employees, \"at risk\" flags, underperformance mentions, \"picking up slack\" references |\n| **Departure\u002Fretention** | Who's considering leaving, who was convinced to stay, departure rumors, retention conversations |\n| **Management strategy** | How-to-manage-someone sections, \"the hard conversation\" notes, scope\u002Ftitle management plans |\n| **Internal political dynamics** | Who doesn't like whom, who's nervous about whom, adversarial relationships, power dynamics |\n| **Personal PII** | Phone numbers, personal email addresses, home addresses, family or medical details, personal legal matters, personal-life details |\n| **Takes\u002Ffacts** | 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` |\n\n### Always keep\n\n| Category | Examples |\n|----------|----------|\n| **Professional identity** | Name, role, title, work email, LinkedIn |\n| **What they're building** | Current projects, product work, technical contributions |\n| **Career arc** | Prior companies, education, professional background (public info) |\n| **Professional beliefs** | Their views on technology, strategy, product philosophy |\n| **Timeline of work** | Meeting attendance, project milestones, launches (factual, not evaluative) |\n| **Skills\u002Fexpertise** | Technical capabilities, domain knowledge |\n\n## Scan Scope — Wider Than people\u002F\n\nSensitive content leaks far beyond people pages. The scan scope is:\n\n- `people\u002F` — the primary surface (frontmatter fields, assessment sections)\n- `meetings\u002F` — transcripts and minutes with candid assessments\n- `daily\u002F` — daily notes referencing comp\u002Fperformance\u002Fretention conversations\n- `companies\u002F`, `projects\u002F`, `analysis\u002F` — cross-references to removed content\n- **Takes** — evaluative claims in page takes fences (`gbrain takes search`)\n- **Facts** — hot-memory facts (`gbrain recall --grep`)\n- **Back-links** — after edits, `gbrain check-backlinks check` confirms no page\n  still points at removed sections\n\nA pass that only covers `people\u002F` will certify a brain that still leaks.\n\n## Procedure\n\nAll paths below are relative to the brain repo root:\n\n```bash\nBRAIN=\"$(gbrain config get sync.repo_path)\"\ncd \"$BRAIN\"\n```\n\n### Phase 1: Identify scope (retrieval-first)\n\n1. Retrieval discovery — hybrid search catches judgment-shaped content that no\n   keyword pattern will:\n\n   ```bash\n   gbrain query \"compensation, equity, or salary discussions about team members\" --limit 50\n   gbrain query \"performance concerns, underperformance, or who is struggling\" --limit 50\n   gbrain query \"considering leaving, retention conversations, departure rumors\" --limit 50\n   gbrain takes search \"performance\" --limit 50\n   gbrain recall --grep \"salary\"\n   ```\n\n   Resolve every returned slug to its repo-relative file path and write the\n   paths into `\u002Ftmp\u002Fbrainify-scope.txt` (one per line). This file is the\n   scope list; the structural pass below APPENDS to it — nothing later in\n   the procedure may truncate it, or the retrieval-discovered pages\n   silently drop out of scope.\n\n2. Structural discovery — people files that belong to the company, plus\n   keyword hits across the wider scan scope:\n\n   ```bash\n   grep -rli 'company: *\"acme-example\"' people\u002F --include=\"*.md\" | sort >> \u002Ftmp\u002Fbrainify-scope.txt\n   grep -rli -E 'salary|equity|carry|retention|underperform|performance review|hard conversation' \\\n     meetings\u002F daily\u002F companies\u002F projects\u002F analysis\u002F --include=\"*.md\" 2>\u002Fdev\u002Fnull >> \u002Ftmp\u002Fbrainify-scope.txt\n   sort -u -o \u002Ftmp\u002Fbrainify-scope.txt \u002Ftmp\u002Fbrainify-scope.txt\n   ```\n\n3. Cross-reference against the company's public people page (website,\n   LinkedIn) to catch files using different frontmatter conventions.\n\n4. Count: `wc -l \u002Ftmp\u002Fbrainify-scope.txt`\n\n### Phase 2: Triage sensitivity\n\nPrioritize by hit density (portable `grep -E`; no `\\b` — BSD and GNU disagree):\n\n```bash\nwhile read -r f; do\n  hits=$(grep -c -i -E 'carry|salary|equity|comp change|departure|considering leaving|retention|underperform|picking up slack|performance review|management risk|hard conversation|nervou|score: *[0-9]|firing|fired|pip|probation|weakness' \"$f\" 2>\u002Fdev\u002Fnull || true)\n  [ \"${hits:-0}\" -gt 0 ] && echo \"$hits $f\"\ndone \u003C \u002Ftmp\u002Fbrainify-scope.txt | sort -rn > \u002Ftmp\u002Fbrainify-triage.txt\n```\n\nHigh-hit files need full judgment passes. Zero-hit files may only need\nfrontmatter field removal — but they still get read (regex triages, the model\njudges).\n\n### Phase 3: Sanitize (STAGING COPY preferred; test first, then parallel)\n\nPhase 3 is destructive: it strips content across many files, removes takes,\nand deletes fact rows. Two rules govern it.\n\n**Choose the target FIRST — copy, don't mutate the personal brain.**\n\n- **Standing up a NEW team brain (default, preferred):** sanitize a STAGING\n  COPY of the scanned directories, never the personal brain in place. The\n  founder's personal brain is SUPPOSED to keep comp, performance, and candid\n  notes — stripping them from the personal working tree destroys valuable\n  private data. Copy the Phase-1 scope into a durable staging dir and edit\n  THAT; Phase 5 Step 0 exports from the staging copy. Blast radius: none on the\n  personal brain.\n\n  ```bash\n  # Durable staging dir (NOT \u002Ftmp — same reasoning as the mirror backup).\n  STAGING=\"$HOME\u002F.gbrain\u002Fbackups\u002Fbrainify-staging-$(date +%Y%m%d-%H%M%S)\"\n  mkdir -p \"$STAGING\" && chmod 700 \"$STAGING\"\n  for d in people meetings daily companies projects analysis; do\n    [ -d \"$d\" ] && rsync -a \"$d\u002F\" \"$STAGING\u002F$d\u002F\"\n  done\n  cd \"$STAGING\"   # all edits below happen here, not in sync.repo_path\n  ```\n\n- **Re-auditing an EXISTING shared brain:** the shared brain IS the target, so\n  edits are in place on the SHARED repo (cd into the shared repo, never the\n  personal `sync.repo_path`). Fact-row removal + re-sync applies to the shared\n  source's DB.\n\n**Fire the [data-loss-gate](..\u002Fdata-loss-gate\u002FSKILL.md) confirmation card\nBEFORE the bulk destructive edits begin.** Both targets are destructive (the\ncopy path removes content from the tree destined for the team; the in-place\npath removes content from a live brain). Pre-filled for Phase 3:\n\n```\n⚠️ DATA DELETION — Confirmation Required\n\nWhat: strip sensitive content, remove takes, and delete fact rows across\n      [N files] in [STAGING COPY at \u003Cpath>  |  the SHARED brain in place]\nCount: [N files edited; T takes removed; F fact rows removed]\nLocation: [staging path OR shared repo path] — NOT the personal sync.repo_path\n          on the staging path\n\nWhy: preparing a sanitized tree for team access\n\nRecoverable?\n- [x] Personal brain untouched (staging-copy path) — re-copy to redo\n- [ ] In-place shared-brain path: edits overwrite the live tree; git history is\n      the recovery line until Phase 5 purges it\n\nProceed? (yes\u002Fno)\n```\n\nRequire a typed \"yes\"\u002F\"do it\" per data-loss-gate; \"ok\"\u002F\"sure\" are not consent.\n\nPer test-before-bulk: do 3-5 files first, read the results, then ramp. For\nlarge sets (50+ files), batch into groups of 10-12 and spawn parallel\nsubagents. Per file:\n\n1. Read the file completely\n2. Remove all content matching the \"Always strip\" categories\n3. Frontmatter: delete rating\u002Fcomp field lines entirely\n4. Sections: remove entire sections (assessment weaknesses, team dynamics,\n   management strategy)\n5. Takes and Facts fences: remove entire rows that reference sensitive\n   categories — a take like \"alice-example believes charlie-example is\n   underperforming\" reveals both the opinion and who holds it; remove the\n   whole row, never just the attribution\n6. Inline mentions: surgically edit sentences\u002Fparagraphs\n7. Write the cleaned file back\n\n**Decision rule:** use `Edit` for surgical removal when only a few sections\nneed it. Use `Write` to rewrite the entire file only when sensitive content is\ndeeply interwoven throughout.\n\n**Facts: `forget` is NOT removal.** `gbrain forget \u003Cfact-id>` expires a fact\n— the row stays on the page's Facts fence struck through, and the DB still\nserves it via `--include-expired`. An expired fact is retained, not gone.\nFor sanitization, sensitive fact rows must be ACTUALLY REMOVED: find them\n(`gbrain recall --grep`), then delete the row from the page's Facts fence\n(step 5), exactly like a sensitive take. On an in-place shared brain, the\npage edit must then be re-synced (`gbrain sync` re-imports the edited page)\nAND the facts index reconciled — sync's convergence contract covers page\nimport only; downstream fact extraction is explicitly decoupled\n(`src\u002Fcommands\u002Fsync.ts`, \"CONVERGENCE CONTRACT\"), so the DB keeps serving\nthe deleted row until the extract-facts reconcile runs. Trigger it\n(`gbrain sweep`, or wait for the serve-resident sweep), then confirm with\n`gbrain recall --grep` that the row is actually gone. An edited page over\nan un-reconciled facts index still leaks through retrieval. `forget` alone\ncan never certify a brain clean.\n\nAfter edits: on the **staging-copy** path the fact rows are removed by editing\nthe copied markdown directly (there is no live DB to re-sync yet — the team DB\nis built fresh when Phase 5 Step 0 turns the export into a source). On the\n**in-place shared-brain** path, run `gbrain sync` so the page content matches\nthe markdown, then reconcile and verify the facts index as above. Either way,\nrun `gbrain check-backlinks check` to catch pages still pointing at removed\ncontent.\n\n### Phase 4: Verify\n\nRe-run the Phase 2 triage — the count of flagged files should drop to\n(near-)zero. Then targeted greps:\n\n```bash\n# Rating fields remaining in frontmatter\ngrep -rn -E '^[a-z_]*(score|rating|skill)[a-z_]*: *[0-9]' people\u002F --include=\"*.md\"\n\n# Phone numbers\ngrep -rn -E '\\+1[0-9]{10}|\\([0-9]{3}\\) [0-9]{3}-[0-9]{4}' people\u002F --include=\"*.md\"\n\n# Comp keywords (full scan scope, not just people\u002F)\ngrep -rin -E 'carry|comp change|equity|salary' people\u002F meetings\u002F daily\u002F companies\u002F projects\u002F analysis\u002F --include=\"*.md\" 2>\u002Fdev\u002Fnull\n\n# Management\u002Fperformance\ngrep -rin -E 'considering leaving|departure rumor|underperform|picking up slack|hard conversation' people\u002F meetings\u002F daily\u002F companies\u002F projects\u002F analysis\u002F --include=\"*.md\" 2>\u002Fdev\u002Fnull\n```\n\nFalse positives (e.g. \"carry the torch\") are fine — manually confirm each\nremaining hit rather than tightening the pattern (regex-discipline).\n\n**Verify the tree that ships.** On the staging-copy path, these greps run\nagainst the sanitized `$STAGING` tree (which Phase 5 Step 0 turns into the\nexport) — the personal working tree is not what ships, so certifying it proves\nnothing. For an in-place shared-brain re-audit, the shared repo's tree is the\nshipped tree and this pass stands as-is.\n\nThen the strongest check — the retrieval the team will actually use. Against\nthe sanitized brain\u002Fsource (scope with `--source \u003Cteam-source-id>` when the\nshared source is mounted alongside personal content):\n\n```bash\ngbrain query \"what is alice-example's compensation\" --limit 10\ngbrain query \"who is underperforming or at risk of leaving\" --limit 10\ngbrain takes search \"weakness\" --limit 20\n```\n\nEvery one of these must come back empty or with only keep-category content.\n\n### Phase 5: Commit and purge history — GATED\n\nClean files aren't enough if the repo has history: old commits still contain\nthe sensitive versions.\n\n**Step 0 — preferred alternative (non-destructive).** When standing up a NEW\nteam repo, skip history rewriting entirely: the sanitized STAGING tree from\nPhase 3 becomes a fresh repo with fresh history. The personal repo keeps its\nfull history AND its full working tree, untouched.\n\n**Export rule: nothing unscanned ships.** Because Phase 3 copied ONLY the\nscanned directories into `$STAGING`, the staging tree contains nothing the\nsanitization pass didn't read — the include-only rule holds by construction.\nNever copy extra directories in: everything outside the scan scope\n(`conversations\u002F`, `originals\u002F`, `sources\u002F`, `inbox\u002F`) stays out. A whole-repo\ncopy is the classic leak — it ships raw transcripts, originals, and inbox\ncaptures no pass ever read. To ship a new directory, add it to the scan scope\nfirst (Phases 1-4) so it lands in `$STAGING` sanitized.\n\n```bash\n# The sanitized staging tree IS the export.\ncd \"$STAGING\"\n\n# Re-run the Phase 4 verification greps + retrieval checks INSIDE $STAGING —\n# the staging tree is what ships, and it is the tree that must certify clean.\n# ... Phase 4 greps against $STAGING ...\n\ngit init -b main\ngit add -A && git commit -m \"Initial import — sanitized team brain\"\ngit remote add origin \u003CTEAM_REPO_URL>\ngit push -u origin main\n```\n\nOnly when a shared repo ALREADY exists with sensitive history in it do you\nneed the purge below.\n\n**Step 1 — target the SHARED repo, commit the clean tree, then mirror-clone.**\nThe purge operates on the SHARED repo, NEVER on `sync.repo_path` (the personal\nbrain) — Step 0's guarantee that the personal repo keeps full history depends\non it. Clone the shared repo to a durable work dir, stay there for every step\nbelow, and assert the target is not the personal repo before touching anything.\n\n```bash\nPERSONAL=\"$(gbrain config get sync.repo_path)\"\nmkdir -p \"$HOME\u002F.gbrain\u002Fbackups\" && chmod 700 \"$HOME\u002F.gbrain\u002Fbackups\"\nWORK=\"$HOME\u002F.gbrain\u002Fbackups\u002Fbrainify-purge-$(date +%Y%m%d-%H%M%S)\"\ngit clone \u003CSHARED_REPO_URL> \"$WORK\u002Fshared\"\ncd \"$WORK\u002Fshared\"\n[ \"$(git rev-parse --show-toplevel)\" != \"$PERSONAL\" ] \\\n  || { echo \"target IS sync.repo_path (personal brain) — ABORT\"; exit 1; }\n\n# Apply the sanitized tree, then COMMIT it BEFORE the mirror clone. A mirror\n# captures COMMITTED state only; if the clean tree lives only in volatile\n# staging during the rewrite window, a crash loses the sanitization work.\n# Committing makes the clean state durable and recoverable.\nfor d in people meetings daily companies projects analysis; do\n  [ -d \"$STAGING\u002F$d\" ] && rsync -a \"$STAGING\u002F$d\u002F\" \".\u002F$d\u002F\"   # or sanitize in place here\ndone\ngit add -A && git commit -m \"Sanitize: strip sensitive content before history purge\"\n\n# Mirror-clone backup = the recoverability line on the card. Capture the path\n# in a variable NOW and reuse it verbatim at purge time — a run crossing\n# midnight must NOT recompute $(date) and false-abort on a mismatched name.\nBACKUP_PATH=\"$HOME\u002F.gbrain\u002Fbackups\u002Fshared-brain-history-backup-$(date +%Y%m%d-%H%M%S).git\"\ngit clone --mirror \"$WORK\u002Fshared\" \"$BACKUP_PATH\"\ngit -C \"$BACKUP_PATH\" log -1 >\u002Fdev\u002Fnull || { echo \"backup unreadable — ABORT\"; exit 1; }\n```\n\nVerify the mirror exists and reads before presenting the card — it is the\ncard's recoverability line.\n\n**Step 2 — STOP. Present the [data-loss-gate](..\u002Fdata-loss-gate\u002FSKILL.md)\nconfirmation card and wait.** History rewrite + force-push is the most\ndestructive operation in this skill: it permanently discards every prior\nversion of the purged paths from the remote. Never run it without the card\nanswered. Pre-filled for this operation:\n\n```\n⚠️ DATA DELETION — Confirmation Required\n\nWhat: rewrite git history to remove all prior versions of [purged paths]\n      from the SHARED repo, then force-push to [remote\u002Fbranch]\nCount: [N commits rewritten; M files with history purged]\nSize: [repo size before → expected after]\nLocation: [SHARED repo work dir; remote URL; branch]\nTarget check: this is the SHARED repo, verified ≠ personal sync.repo_path\n      ($PERSONAL) — the personal brain's history is never rewritten\n\nWhy: prior commits contain pre-sanitization versions of pages that were\n     just cleaned — team access to the repo means team access to history\n\nRecoverable?\n- [x] Mirror-clone backup at $BACKUP_PATH\n      (verified: exists, `git -C \"$BACKUP_PATH\" log` works)\n- [ ] NOT recoverable from the rewritten remote — old SHAs become unreachable\n\nWhat we'd lose:\n- all pre-sanitization history for the purged paths (edit trail, blame,\n  old versions)\n- every existing clone breaks — all collaborators must re-clone\n\nAlternative to deletion:\n- fresh-history export to a NEW team repo (Step 0) — personal repo untouched\n\nProceed? (yes\u002Fno)\n```\n\nPer data-loss-gate: require a typed **\"yes\"** or **\"do it\"** — \"ok\", \"sure\",\n\"go ahead\" are not consent. If the user asks a question, answer and re-present\nthe card. This gate is a routing convention, not a runtime enforcement —\nnothing in gbrain mechanically blocks `git filter-repo` — which is exactly why\nthe agent following this skill must not skip it.\n\n**Step 3 — purge (only after the explicit typed yes).** Requires\n`git filter-repo` (not bundled with git; install separately). **Run this ONLY\nin the shared-repo work dir from Step 1 (`cd \"$WORK\u002Fshared\"`). NEVER run\n`git filter-repo` or `git push --force` in `sync.repo_path` — the personal\nbrain's history must stay intact.** The commands below reuse `$WORK` and\n`$BACKUP_PATH` from Step 1; they never recompute a date-stamped path.\n\n```bash\ncd \"$WORK\u002Fshared\"\n[ \"$(git rev-parse --show-toplevel)\" != \"$PERSONAL\" ] \\\n  || { echo \"target IS sync.repo_path — ABORT, do not filter-repo\"; exit 1; }\n\n# The purge list derives from the COMPLETE set of sanitized paths — the same\n# directories Phases 1-4 scanned. A filter list narrower than the scan\n# (people\u002F + meetings\u002F only) leaves pre-sanitization history alive for every\n# other scanned directory. The restore carrier below MUST match this same\n# list — backed-up set, filtered set, and re-added set are identical.\nPURGE_DIRS=\"people meetings daily companies projects analysis\"\n\n# Back up the clean working tree of every purged path to a DURABLE carrier\n# (under $WORK in ~\u002F.gbrain\u002Fbackups — never \u002Ftmp, which can vanish mid-rewrite).\nCLEAN=\"$WORK\u002Fclean\"\nmkdir -p \"$CLEAN\"\nfor d in $PURGE_DIRS; do\n  [ -d \"$d\" ] || continue\n  mkdir -p \"$CLEAN\u002F$d\" && cp -r \"$d\u002F.\" \"$CLEAN\u002F$d\u002F\"\ndone\n\n# Rewrite history: one --path per purged directory, derived from $PURGE_DIRS\nrm -rf .git\u002Ffilter-repo\ngit filter-repo --invert-paths $(for d in $PURGE_DIRS; do printf -- '--path %s\u002F ' \"$d\"; done) --force\n\n# Restore clean files and re-commit as a single new commit — same $PURGE_DIRS\nfor d in $PURGE_DIRS; do\n  [ -d \"$CLEAN\u002F$d\" ] || continue\n  mkdir -p \"$d\" && cp -r \"$CLEAN\u002F$d\u002F.\" \"$d\u002F\"\ndone\ngit remote add origin \u003CSHARED_REPO_URL>   # filter-repo removes remotes\nfor d in $PURGE_DIRS; do [ -d \"$d\" ] && git add \"$d\u002F\"; done\ngit commit -m \"Re-add sanitized directories\"\n\n# VERIFY RESTORE COMPLETENESS before the irreversible push — a partial restore\n# would ship a smaller tree than was sanitized. Compare file counts (and, for\n# extra safety, checksums) between the carrier and the restored tree.\nbefore=$(find \"$CLEAN\" -type f | wc -l | tr -d ' ')\nafter=$(for d in $PURGE_DIRS; do [ -d \"$d\" ] && find \"$d\" -type f; done | wc -l | tr -d ' ')\n[ \"$before\" = \"$after\" ] \\\n  || { echo \"restore incomplete ($before → $after files) — ABORT, do not force-push\"; exit 1; }\n# Optional stronger check: diff -r \"$CLEAN\u002F\u003Cd>\" \"\u003Cd>\" for each purged dir.\n\n# RE-VERIFY the backup immediately before the irreversible step — card-time\n# verification is not enough; time has passed and the rewrite could have gone\n# sideways. Reuse $BACKUP_PATH (do NOT recompute $(date)); abort if unreadable.\ngit -C \"$BACKUP_PATH\" log -1 >\u002Fdev\u002Fnull \\\n  || { echo \"backup missing\u002Funreadable — ABORT, do not force-push\"; exit 1; }\n\ngit push --force origin main\n```\n\n**Step 4 — log it (to the PERSONAL brain, NEVER the shared repo).** Per\ndata-loss-gate, append the deletion under `## Data Deletions` — but write it to\nthe PERSONAL brain's `$PERSONAL\u002Fdaily\u002Fnotes\u002FYYYY-MM-DD.md` (or a local ops\nlog), never into the shared repo. The log names the purged paths AND the\nbackup location; in the shared repo those two facts would tell every team\nmember exactly which paths held sensitive content and where the\npre-sanitization backup lives — the audit trail becomes a treasure map.\nRecord: timestamp, purged paths, commit counts, and `$BACKUP_PATH` as the\nrecovery line.\n\n**After the force push:**\n\n- All existing clones must re-clone\n- Hosting providers may cache unreachable commits for a time (on the order of\n  months); for immediate removal use the provider's sensitive-data removal\n  process. For private\u002Finternal repos, the SHA being unreachable from any ref\n  is usually sufficient\n- The sync cursor may reference a rewritten-away SHA; if the next\n  `gbrain sync` errors or falls back to a full rescan, that is the cursor\n  recovering — run `gbrain doctor` if it doesn't settle\n- **Backup retention:** once the rewrite is verified good (team has\n  re-cloned, sync settled, no missing content reported), keep the\n  mirror-clone backup in `~\u002F.gbrain\u002Fbackups\u002F` for a retention window\n  (~30 days is a sane default), then delete it — it contains the\n  pre-sanitization history and should not accumulate indefinitely:\n  `rm -rf ~\u002F.gbrain\u002Fbackups\u002Fshared-brain-history-backup-\u003Cdate>.git`\n  (the glob must match the `shared-brain-history-backup-*` name the backup\n  step created — a mismatched pattern deletes nothing and silently retains\n  the pre-sanitization history forever)\n- If the repo carries push hooks or auto-hardening wiring, re-verify remotes\n  and hooks survived the rewrite before handing the repo to the team\n\n**Hand the repo to the team — stamp it shared first.** Whichever path\nproduced the team repo (fresh-history export in Step 0 or the post-purge\nforce-push), stamp the published brain's audience before handoff:\n`gbrain config set brain.audience shared` — run against the TEAM brain,\nnever the personal one. The stamp declares this a company\u002Fteam brain, so\nthe ambient memory writeback consent nudge (a personal-brain ask) never\nfires on it. If team members will run `gbrain init` for the shared brain\nBEFORE this stamp exists (e.g. a fresh clone initializing its own engine),\nhave them prefix that one command with `GBRAIN_NO_ONBOARD_NUDGE=1` — a\nfresh un-stamped brain classifies personal, and the init-time nudge is\nfire-once, so letting it fire there would both ask the wrong question and\nburn the sentinel.\n\n### Phase 6: Ongoing hygiene — periodic re-audit\n\nSensitive data re-accumulates through meeting-transcript ingestion (candid\nassessments), enrichment pipelines pulling internal data, and manual writes\nduring candid conversations. One clean pass is a snapshot, not a state.\n\n**Recommendation:** schedule a monthly re-audit (weekly for high-ingest\nbrains) that re-runs Phases 1, 2, and 4 in report-only mode — scan and flag,\nno edits — and surfaces new hits for human review before they reach the\nshared repo. Wire it per\n[conventions\u002Fcron-via-minions.md](..\u002Fconventions\u002Fcron-via-minions.md): the\ncron slot submits a background job (`gbrain jobs submit`), scheduling\nguidance in `skills\u002Fcron-scheduler\u002FSKILL.md`, job-lane routing in\n`skills\u002Fminion-orchestrator\u002FSKILL.md`. The report-only run writes its\nfindings summary; a human (or a gated follow-up run) does the removal.\n\n## Scaling Notes\n\n- **\u003C 20 files:** process sequentially in one pass\n- **20-50 files:** 2-3 parallel subagents\n- **50-150 files:** 8-12 parallel subagents, batches of 10-15\n- **150+ files:** scripted pattern removal for the rote cases only\n  (frontmatter fields, phone numbers — machine-emitted shapes, per\n  regex-discipline) + subagents for everything needing judgment\n\n## Edge Cases\n\n- **Founders vs. employees:** founder\u002Fexec pages often carry the most\n  sensitive content (board dynamics, investor relationships, assessments of\n  their own team). These need the most careful review.\n- **Meeting notes:** meeting pages referencing employee performance need the\n  same treatment as people pages — they are in scope, not an afterthought.\n- **Cross-references:** after sanitizing people pages, check that no other\n  page (meetings, companies, dailies) still references the removed content;\n  `gbrain check-backlinks check` plus a grep for the removed section titles.\n- **Takes with attribution:** a take like \"the user believes\n  charlie-example is underperforming\" reveals both the opinion and who holds\n  it. Remove the entire take, not just the attribution.\n- **Aliases and nicknames:** grep for the person's short name and initials,\n  not just the slug — candid content rarely uses full names.\n\n## Dedup (sharp boundaries)\n\n- **[data-loss-gate](..\u002Fdata-loss-gate\u002FSKILL.md)** — supplies the\n  confirmation-card mechanics and the explicit-yes discipline; company-brainify\n  is a specialized caller of it at BOTH destructive steps: Phase 3 (bulk strip\n  + take\u002Ffact removal) and Phase 5 (history purge + force-push), each with a\n  pre-filled card. A standalone \"delete\u002Fpurge\u002Fclean up X\" intent routes to\n  data-loss-gate; the personal→team sanitization WORKFLOW routes here.\n- **[publish](..\u002Fpublish\u002FSKILL.md)** — outbound sharing of ONE page as\n  encrypted self-contained HTML. company-brainify is whole-brain inbound team\n  access. \"Share this page\" → publish; \"share my brain with the team\" → here.\n- **[maintain](..\u002Fmaintain\u002FSKILL.md)** — structural health (orphans,\n  backlinks, stale pages). maintain checks whether the brain is HEALTHY;\n  company-brainify checks whether it is SAFE TO SHARE. \"Check brain health\"\n  routes to maintain.\n- **frontmatter-guard (host-side)** — validates frontmatter SHAPE.\n  company-brainify strips sensitive frontmatter FIELDS; run\n  frontmatter-guard after a large pass to confirm what remains still\n  parses.\n\n## Contract\n\nThis skill guarantees:\n\n- Both destructive steps fire the data-loss-gate confirmation card and wait for\n  an explicit typed \"yes\"\u002F\"do it\" BEFORE running: Phase 3 (bulk strip + take\u002F\n  fact removal) and Phase 5 (history purge + force-push). This is a routing\n  convention the agent must follow — nothing in the runtime mechanically blocks\n  a skipped gate, which is why skipping it is the cardinal violation of this\n  skill.\n- Phase 3 defaults to sanitizing a STAGING COPY of the scanned scope, leaving\n  the personal brain's working tree untouched; in-place edits are reserved for\n  re-auditing an existing shared brain.\n- The Phase 5 history purge (Steps 3+) runs only on the SHARED repo cloned to a\n  work dir — never `sync.repo_path` — after (a) a mirror-clone backup exists and\n  is verified, and (b) a restore-completeness check passes before the\n  force-push. The personal brain's history is never rewritten.\n- The deletion log is written to the PERSONAL brain (`daily\u002F`) or a local ops\n  log, never into the shared repo.\n- The scan covers the full scope (people, meetings, dailies, companies,\n  projects, analysis, takes, facts, back-links), never `people\u002F` alone.\n- Nothing unscanned ships: the fresh-export path includes ONLY directories\n  covered by the sanitization scan; everything else is excluded by default,\n  and the Phase 4 verification greps run against the exported tree before\n  the first push.\n- Sensitive fact rows are deleted from the page's Facts fence, re-synced,\n  and the facts index reconciled (extract-facts sweep) with the removal\n  verified via `gbrain recall --grep`, never merely expired — `gbrain\n  forget` retains the row (struck through, served via `--include-expired`)\n  and can never certify clean.\n- The history-purge filter list and its restore manifest both derive from\n  the COMPLETE set of sanitized paths, never a subset.\n- Every strip decision is a per-file model judgment grounded in a full read;\n  grep output is triage and verification only.\n- A verification pass (Phase 4 greps + retrieval checks) runs before any\n  commit is pushed to the shared repo.\n- Confirmed purges are logged to `daily\u002Fnotes\u002FYYYY-MM-DD.md` under\n  `## Data Deletions` with the backup path as the recovery line.\n- A brainified brain is stamped `brain.audience=shared` at handoff and never\n  receives the ambient-writeback enablement nudge — that consent ask is\n  reserved for personal brains.\n- Routing matches the canonical triggers in the frontmatter.\n- Output written under the directories listed in `writes_to:` (edits in\n  place, plus the daily\u002F deletion log).\n- Privacy contract preserved: no real names, no fork-specific filesystem path\n  literals, no upstream-fork references.\n\nThe full behavior contract is documented in the body sections above; this\nsection exists for the conformance test.\n\n## Output Format\n\nThree artifacts:\n\n1. **The sanitization report** (every run, including report-only re-audits):\n\n```markdown\n## Brainify Report — YYYY-MM-DD\n\n- Scope: [N files scanned across people\u002F, meetings\u002F, daily\u002F, ...]\n- Flagged: [M files with hits] (triage list attached)\n- Edited: [K files sanitized; T takes removed; F fact rows removed + re-synced + facts index reconciled]\n- Verification: [grep residuals: 0 confirmed-sensitive; retrieval checks: clean]\n- History: [not purged | fresh-export | purged after confirmed gate — backup at \u003Cpath>]\n- Next re-audit: [date \u002F cron slot]\n```\n\n2. **The confirmation card** (Phases 3 and 5) — the pre-filled fenced card,\n   presented before the bulk destructive edits (Phase 3) and before any history\n   rewrite (Phase 5); the turn stops until the user answers.\n3. **The deletion log entry** (post-purge only) — appended to the PERSONAL\n   brain's `daily\u002Fnotes\u002FYYYY-MM-DD.md` (never the shared repo) per\n   data-loss-gate Step 4.\n\n## Anti-Patterns\n\n- ❌ Scanning only `people\u002F` — meetings, dailies, and cross-references leak\n  the same content\n- ❌ Sanitizing working-tree files and calling it done — history still carries\n  every sensitive version\n- ❌ Exporting the whole repo into the team brain — the export ships ONLY\n  scanned directories; nothing unscanned ships\n- ❌ Using `gbrain forget` as sanitization — forget expires (struck-through\n  row retained, served via `--include-expired`); delete the fence row and\n  re-sync instead\n- ❌ Purging history for a subset of the sanitized paths — the filter list\n  derives from the complete scan scope, not just `people\u002F` + `meetings\u002F`\n- ❌ Running `git filter-repo` \u002F force-push without the mirror-clone backup\n  and the typed confirmation — the card comes BEFORE the rewrite, always\n- ❌ Running `git filter-repo` \u002F force-push in `sync.repo_path` — the purge\n  targets the SHARED repo cloned to a work dir; the personal brain's history is\n  never rewritten\n- ❌ Stripping the personal brain in place when standing up a NEW team brain —\n  sanitize a staging copy; the founder's private comp\u002Fperformance notes stay\n- ❌ Bulk-editing files and removing takes\u002Ffacts without the Phase 3\n  data-loss-gate card — destructive edits are gated too, not just the purge\n- ❌ Writing the deletion log into the shared repo — it names the sensitive\n  paths and the backup location; log it to the PERSONAL brain\n- ❌ Treating grep as the sensitivity judge — patterns triage, the model\n  reads and decides (regex-discipline)\n- ❌ Removing the attribution but keeping the take — the claim itself is the\n  leak; remove the whole row\n- ❌ Bulk-editing 150 files without a 3-5 file test first (test-before-bulk)\n- ❌ Tightening grep patterns to eliminate false positives — confirm the hits\n  manually instead; a \"clean\" scan from an over-fitted pattern is a false\n  certificate\n- ❌ One clean pass with no re-audit — ingestion and enrichment re-accumulate\n  sensitive content; schedule Phase 6\n",{"name":5,"version":24,"mutating":25,"triggers":26,"upstream":36,"writes_to":37,"brain_first":25,"description":44,"writes_pages":25},"1.0.0",true,[27,28,29,30,31,32,33,34,35],"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","company-brainify@fc834ee",[38,39,40,41,42,43],"people\u002F","companies\u002F","meetings\u002F","daily\u002F","projects\u002F","analysis\u002F","Extract a sanitized shared team\u002Fcompany 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\u002F), 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.\n","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fcompany-brainify",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":25},[55,58,61],{"tool":56,"command":57},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill company-brainify",{"tool":59,"command":60},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill company-brainify",{"tool":62,"command":63},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill company-brainify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcompany-brainify\u002FSKILL.md",[],[67,75,80,87,94,101],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":76,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":74},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":74},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":74},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":74},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":74},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]