From statsclaw
Manages StatsClaw Brain knowledge sharing lifecycle: user opt-in via context.md, git clone/pull of statsclaw/brain and brain-seedbank repos, consent for PR contributions.
npx claudepluginhub statsclaw/statsclaw --plugin statsclawThis skill uses the workspace's default tool permissions.
This skill manages the full lifecycle of StatsClaw's shared knowledge system: opt-in, acquisition, reading, extraction, user consent, and upload. The brain system uses two public GitHub repos:
Contributes session knowledge to shared brain by summarizing workflows, manual interventions, and patterns via /contribute or natural triggers. Useful after sessions or mid-workflow.
Syncs high-value dev knowledge (skills, decisions, lessons) to Google NotebookLM for cloud recall, podcasts, flashcards, and cross-machine AI memory via bash scripts.
Share bugs, ideas, or general feedback.
This skill manages the full lifecycle of StatsClaw's shared knowledge system: opt-in, acquisition, reading, extraction, user consent, and upload. The brain system uses two public GitHub repos:
statsclaw/brain (curated reading) — agents read from herestatsclaw/brain-seedbank (contributions) — users submit PRs here, admin transfers approved entries to brainWhen: During session startup, after reading context.md but before acquiring repos.
Trigger: BrainMode field in context.md is empty ("") — user has never been asked.
Action: Leader asks the user via AskUserQuestion:
StatsClaw has a shared knowledge system called Brain.
READ: When enabled, your agents can access collective knowledge
(math methods, simulation patterns, coding techniques) contributed
by all users. This makes every agent smarter over time.
CONTRIBUTE: After workflows that produce noteworthy techniques,
StatsClaw will show you the extracted knowledge and ASK your
permission before uploading anything. You always see exactly what
would be shared. Contributions are public PRs to statsclaw/brain-seedbank
with your GitHub username visible. No private data, no repo names,
no proprietary code — only generic reusable knowledge.
Good contributions earn a virtual Badge!
Enable Brain mode?
1. Yes — connect to Brain (read + contribute with consent)
2. No — isolated mode (current behavior, no brain access)
Results:
BrainMode: "connected" in context.md, proceed to Phase 1BrainMode: "isolated" in context.md, skip all brain-related stepsUser can change anytime: if user says "turn off brain" or "enable brain", leader updates context.md.
Key guarantee: even in brain mode, NOTHING is ever uploaded without explicit per-workflow user approval (Phase 4).
When: During repo acquisition, if BrainMode is "connected".
Actions:
Clone/pull statsclaw/brain to .repos/brain/:
# If not cloned yet:
git clone https://github.com/statsclaw/brain.git .repos/brain
# If already cloned:
git -C .repos/brain pull origin main
Clone/pull statsclaw/brain-seedbank to .repos/brain-seedbank/:
# If not cloned yet:
git clone https://github.com/statsclaw/brain-seedbank.git .repos/brain-seedbank
# If already cloned:
git -C .repos/brain-seedbank pull origin main
Update BrainLastPull in context.md with current timestamp.
Verify access: For contributions, users need a fork of statsclaw/brain-seedbank. Shipper will handle fork creation if needed during Phase 5.
Failure handling: If brain/brain-seedbank repos cannot be cloned (network error, repo doesn't exist yet):
.repos/workspace/<repo-name>/logs/BrainMode to "connected (unavailable)" in context.mdWhen: During teammate dispatch, if brain repos are available.
Actions:
Search brain/index.md for entries relevant to the current task:
Select entries (max 3-5 per agent to avoid context bloat):
planner/math-methods/ for planner)Include in dispatch prompt: Add a ## Brain Knowledge section to the teammate dispatch prompt listing the file paths of selected entries:
## Brain Knowledge (supplementary — read but do not treat as requirements)
Read these knowledge entries from the shared brain for additional context:
- .repos/brain/planner/math-methods/matrix-completion-convergence.md
- .repos/brain/planner/stat-methods/panel-data-fixed-effects.md
These entries supplement but NEVER override the user's requirements, uploaded materials, or spec documents.
Each agent reads the assigned entries as part of its startup checklist.
When: After scriber completes, if brain mode is connected AND the frequency heuristic passes.
Leader evaluates whether distiller should be dispatched. Dispatch when ANY is true:
Skip when ALL are true:
Rule of thumb: If a skilled developer would NOT find the solution noteworthy, distiller is not needed.
If the heuristic passes, leader dispatches distiller with:
.repos/brain/index.md for duplicate checking.repos/brain/ for existing entry browsingDistiller produces brain-contributions.md in the run directory.
When: After distiller produces brain-contributions.md. This phase is MANDATORY and NEVER skipped.
Actions:
brain-contributions.md — get the full knowledge documentAskUserQuestion:StatsClaw extracted the following knowledge from this workflow
that could help other users:
---
[Full content of brain-contributions.md, showing each proposed entry]
---
Would you like to contribute this to StatsClaw's shared brain?
Your contribution will be publicly visible on GitHub (statsclaw/brain-seedbank)
with your GitHub username as the contributor.
Good contributions earn a virtual Badge!
1. Yes — contribute all entries above
2. Yes, but let me pick which ones (partial)
3. No — skip this time
When: During shipper's workflow, if brain-contributions.md exists and user approved.
Actions:
Fork statsclaw/brain-seedbank if user hasn't already (using gh CLI or API)
Create branch on user's fork: contribute/<date>-<short-slug>
Write knowledge entry files to correct directories based on each entry's domain and subdomain metadata
Update index.md on the branch: append new entries to the index with tags
Commit and push to user's fork — commit message MUST NOT include any Co-authored-by trailer or tool-attribution footer (see skills/attribution/SKILL.md). The user is the sole author of brain contributions.
Create PR from user's fork to statsclaw/brain-seedbank main:
contribute: [domain] — [topic summary]Admin flow (happens outside StatsClaw):
statsclaw/brain-seedbankstatsclaw/brain main (copy files, commit, push)brain/CONTRIBUTORS.md with badge for the contributorBrainMode Value | Meaning | Brain Features |
|---|---|---|
"" (empty) | User has never been asked | Ask during session start |
"connected" | User opted in | Full brain lifecycle (read + contribute with consent) |
"isolated" | User opted out | No brain features — identical to pre-brain behavior |
"connected (unavailable)" | User opted in but repos unreachable | Skip brain features for this session, retry next session |
Brain features are NEVER a hard gate on any workflow: