一键导入
brain-hash
Compute or verify a SHA-256 integrity hash of the stable brain corpus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compute or verify a SHA-256 integrity hash of the stable brain corpus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | brain-hash |
| description | Compute or verify a SHA-256 integrity hash of the stable brain corpus. |
Stable corpus = brain/**/*.md excluding raw.md, interactions.md, _graph.md, and archive/.
hash.sh build # writes BRAIN_HASH.txt
hash.sh verify # exits 0 if matches baseline, 1 otherwise
Honors BRAIN_DIR env (default $HOME/brain).
Uses shasum -a 256 if present (macOS), else sha256sum (Linux).
Force a capture bypassing the throttle. Runs capture.sh with FORCE_CAPTURE=1.
Weekly compaction. Dedupe duplicate dated headers, archive entries older than 365 days, regenerate graph, verify hash.
Monthly self-improvement. Reads last 30 days of learnings + decisions, drafts ONE proposed brain edit to code/agents/_proposed/.
Regenerate brain/_graph.md from [[entity]] backlinks across brain/*.md.
Regenerate brain/index.md catalog of all brain pages and sources.
Append a chronological line to brain/log.md for one operation.