No slash command · from statsclaw
Defines mandatory privacy scrubbing rules for removing PII from knowledge contributions. Strips identifiers, paths, code references, and data references to produce genericized entries.
Ships in statsclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill defines the mandatory privacy scrubbing protocol applied to all knowledge entries before they are proposed for contribution to the shared brain. The distiller agent applies these rules when extracting knowledge; the reviewer agent verifies compliance.
Knowledge entries contributed to statsclaw/brain-seedbank and ultimately curated into statsclaw/brain must contain ZERO identifying information about the source project, user, or organization. The knowledge must be fully genericized — reusable by anyone without revealing its origin.
| Type | Examples | Action |
|---|---|---|
| GitHub usernames | @xuyiqing, @jdoe | Remove entirely |
| Repository names | xuyiqing/fect, org/project | Replace with "the target package" or "the project" |
| Organization names | UCSD, MIT, CompanyX | Remove entirely |
| Email addresses | [email protected] | Remove entirely |
| Personal names | John Doe, Prof. Smith | Remove entirely |
| Type | Examples | Action |
|---|---|---|
| File paths | /R/fect.R, src/estimator.py | Replace with "the estimation module", "the test file" |
| Directory structures | R/, src/core/, tests/ | Use generic: "the source directory", "the test directory" |
| Package names | fect, panelView, numpy | Use generic or keep only if it's a well-known public library |
| Issue/PR numbers | #42, PR #15 | Replace with "the reported issue", "the fix PR" |
| Commit SHAs | abc1234 | Remove entirely |
| Branch names | fix/issue-42, cfe | Remove entirely |
| GitHub URLs | https://github.com/owner/repo | Remove entirely |
| Type | Examples | Genericized Form |
|---|---|---|
| Function names (user code) | est_fect(), panel_matrix() | my_estimator(), helper_function() |
| Variable names (user code) | fect_result, panel_data | result, input_data |
| Class names (user code) | FectEstimator, PanelModel | MyEstimator, BaseModel |
| Data column names | gdp_growth, treatment_status | outcome_var, treatment_var |
| Dataset names | democracy_panel.csv | "the input dataset" |
Exception: Well-known public library names and their APIs (e.g., numpy, dplyr, torch) may be kept as-is since they are public knowledge.
| Type | Examples | Action |
|---|---|---|
| Dataset names | world_bank_2020.csv | "the input dataset" |
| Column names | gdp_per_capita, country_code | "the outcome variable", "the grouping variable" |
| Data file paths | data/raw/panel.csv | Remove entirely |
| Database names | production_db | Remove entirely |
The following are safe to include in knowledge entries and should be preserved:
| Original Pattern | Genericized Form |
|---|---|
est_fect() | my_estimator() |
R/fect.R | "the estimation module" |
xuyiqing/fect | "the target package" |
issue #42 | "the reported issue" |
panel_matrix() | helper_function() |
FectEstimator | MyEstimator |
tests/test_fect.R | "the test file" |
democracy_panel.csv | "the input dataset" |
treatment_status | treatment_var |
gdp_growth | outcome_var |
The reviewer agent MUST verify privacy scrub compliance for every proposed brain contribution:
github.com), usernames (@), issue references (#\d+)/something.R), home directories (/home/, ~/)@ followed by domainIf ANY identifying information is detected: STOP — privacy scrub incomplete. Route to distiller.
The statsclaw/brain-seedbank repo runs automated PII scanning on all PRs via .github/workflows/validate-entry.yml. The CI checks:
github\.com/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+[/\\][a-zA-Z0-9_-]+\.[a-zA-Z]{1,4} (with allowlist for generic examples)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/home/, ~/, C:\\Users\\These are catch-all checks — the distiller and reviewer are expected to catch issues before CI does.
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/attributionCommit authorship policy — no co-author trailers, user is sole author/brain-syncKnowledge sharing lifecycle management/contributeSession knowledge contribution to the shared brain/credential-setupAutomatic GitHub credential detection and verification/handoffArtifact handoff protocol for two-pipeline architecture/isolationTwo-pipeline isolation protocol (worktree and information-level)npx claudepluginhub statsclaw/statsclaw --plugin statsclawOther plugins' skills for the same job