Fast reflexes. Deep memory. No drift.
ๅฐ่ๅฟซๅๅบใๅคง่ๆทฑ่ฎฐๅฟใ้ถๆผ็งปใ
Features ยท Install ยท Architecture ยท Contributing
npx skills add wujiajun4/brain-sync -g
You have three memory systems. They don't talk to each other. Brain Sync fixes that โ extracts triggers and relations for your fast-twitch Memory MCP, keeps deep docs in your Obsidian brain. TRUST 5 quality gate on every sync.
Brain Sync keeps your three-layer AI memory stack in sync without duplication. It reads your Obsidian knowledge base, extracts the "how to use" information (triggers, relations, orchestras), and stores it in Memory MCP for 0.1-second reflexes. Full documentation stays in Obsidian for deep reasoning.
ไฝ ๆไธไธช่ฎฐๅฟ็ณป็ปใๅฎไปฌไบ็ธไธ่ฏด่ฏใ Brain Sync ไฟฎๅค่ฟไธช้ฎ้ขโโๆๅ่งฆๅ่ฏๅๅ ณ็ณปๅฐ ๅฟซๅๅบๅฐ่๏ผๆๆทฑๅบฆๆๆกฃ็ๅจๅคง่ใๆฏๆฌกๅๆญฅ้ฝ่ฟ TRUST 5 ่ดจ้้จใ
| Feature | What it does |
|---|---|
| ๐ Drift Detection | Compares Obsidian skill count vs Memory MCP entity count |
| โ Auto-sync Missing | Creates entities for skills not yet in Memory MCP |
| ๐ Auto-relations | Links every new tool to its orchestra |
| ๐ป Ghost Pruning | Removes entities that no longer exist in Obsidian |
| โ๏ธ obs Compress | Auto-split observations โค 200 chars (TRUST 5 R dimension) |
| ๐ Drift Check | CLI tool: scan Memory MCP โ MEMORY.md, find missing entities |
| ๐ฏ Hot-Trigger Audit | CLI tool: static analysis of CLAUDE.md hot-trigger list health |
| โ TRUST 5 Quality Gate | Tested ยท Readable ยท Unified ยท Secure ยท Trackable |
| ๐ Sync Report | Before/after table with pass/fail for each dimension |
| ๐๏ธ Progressive Disclosure | L1 150-token summary โ L2 4000-token full spec |
| Category | Technology |
|---|---|
| Platform | Claude Code ยท Agent Skills (67+ platforms) |
| Language | Markdown (SKILL.md) |
| Runtime | Memory MCP ยท Obsidian knowledge base |
| Design Reference | MoAI-ADK TRUST 5 ยท Progressive Disclosure |
| Dependencies | Zero โ pure instruction skill |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Brain Sync โ
โ โ
โ โโโโโโโโโโโโ extract โโโโโโโโโโโโโ โ
โ โ Obsidian โ โโtriggersโโโ โ Memory โ โ
โ โ (Brain) โ +relations โ MCP โ โ
โ โ โ โ (Cereb.) โ โ
โ โ Deep โ don't sync โ Fast โ โ
โ โ docs โ โโโโโโโโโโโโโ โ reflexes โ โ
โ โ logs โ code blocks โ triggers โ โ
โ โ specs โ trade data โ relations โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ TRUST 5 Gate โ โ
โ โ Tested ยท Readable ยท Unified ยท โ โ
โ โ Secure ยท Trackable โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Sync Report โ โ
โ โ Tools: 10+ Prefs: 12 Ghosts: 0 โ โ
โ โ + bin/compress-obs + check-drift โ โ
โ โ + bin/hot-trigger-audit (v1.2) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
brain-sync/
โโโ .gitignore
โโโ LICENSE # MIT
โโโ README.md # โ You are here
โโโ SKILL.md # Runtime spec โ L1/L2 progressive disclosure
# 5-step pipeline + TRUST 5 gate + sync report template
โโโ bin/ # CLI helpers (v1.2.0+)
โโโ compress-obs.mjs # Auto-split long observations to โค200 chars
โโโ check-drift.mjs # Memory MCP โ MEMORY.md drift detection
โโโ hot-trigger-audit.mjs # Static analysis of CLAUDE.md hot-trigger list
- Claude Code or any Agent Skills-compatible platform
- Memory MCP configured and running
- Obsidian knowledge base at
~/obsidian/knowledge-base/
# Claude Code (one command / ไธ่กๅฝไปค)
mkdir -p ~/.claude/skills && git clone https://github.com/wujiajun4/brain-sync.git ~/.claude/skills/brain-sync
# Agent Skills (any platform / ๅ
จๅนณๅฐ)
npx skills add wujiajun4/brain-sync -g| You say | What happens |
|---|---|
/brain-sync |
Manual sync |
sync memory ยท ๆดๆฐๅฐ่ ยท ๅๆญฅ่ฎฐๅฟ |
Chinese/English triggers |
| (auto) | After orchestra-intake ยท skill created ยท preference written |
Every sync passes through five automated checks. If any fail, the report tells you exactly what to fix.
| Dimension | Check | Failure means |
|---|---|---|
| T Tested | Can search_nodes find the new entity? |
Write failed โ entity not persisted |
| R Readable | Observations โค 3 each, โค 200 chars each | Small brain overloaded โ trim it |
| U Unified | Obsidian count โ Memory MCP count? | Brains drifted โ gap > 2 warns, > 5 fails |
| S Secure | No ghp_ / sk- / token leaks in observations? |
Immediate fix โ expose credential |
| T Trackable | Sync report output? | No audit trail |
tool-eval โ Evaluate someone else's tool (should I install this?)
preflight โ Check your own project (is this ready to ship?)
brain-sync โ Sync small brain and big brain (memory consistent?)
All three belong to Orchestra โฎ AI/ML โ your skill development toolchain.
Issues and PRs welcome. Before submitting โ eat your own dog food:
/preflight --strict+ 3 CLI tools to automate the most common TRUST 5 dimensions:
bin/compress-obs.mjsโ Smart-split observations to โค200 chars (preserves.md/URL paths, handles CJK punctuation)bin/check-drift.mjsโ Drift detection between Memory MCP entities and MEMORY.md index (filter-prefix support)bin/hot-trigger-audit.mjsโ Static analysis of CLAUDE.md hot-trigger list (total / active / dead / duplicate / bloat)
Zero new dependencies. Pure Node.js, runs in CI.
- SKILL.md frontmatter standardization (MoAI progressive disclosure + triggers)
- TRUST 5 quality gate
- Initial release
- TRUST 5 quality gate adapted from MoAI-ADK (Apache 2.0)
- Progressive Disclosure pattern from MoAI-ADK's three-tier knowledge delivery design
- Built with Agent Skills specification
MIT โ ยฉ 2026 wujiajun4