52584df34e1a8b2117b3f254731b06f52d84645c
Bug 1: merge-mcp.sh fails on Cyrillic brain repo paths (jq fopen UTF-8 issue)
→ use --argjson with $(cat ...) instead of --slurpfile
Bug 2: install.sh stripped only trailing .template, missed middle .template.
→ strip both '.template.' middle and '.template' trailing patterns
Bug 3: manifest.json used brain-repo paths but verify.sh checked target paths
→ restructure manifest.files into {project-mode, user-mode, brain-internal} maps
→ verify.sh now picks map based on detected target mode
Bug 4: make_backup_dir created empty backup dir, no file preservation
→ rsync/cp -r target tree to backup before any modifications
Bug 5: brain's project-files/README.md overwrote consumer's README.md
→ install.sh now skips brain-internal READMEs in project/user copy loops
Phase 9 self-test re-run on c:/tmp/test-consumer-fix: install + verify both PASS.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Claude Brain
Переиспользуемый «мозг Claude» — правила, хуки, плагины и MCP-серверы — для подключения к проектам.
Quick start
Установить мозг в новый или существующий consumer-проект
cd c:/моя/проекты/claude-brain
./scripts/install.sh --target=/path/to/my-project --version=brain-v1.0
Установить мозг в ~/.claude/ (user-level хуки + плагины + MCP)
cd c:/моя/проекты/claude-brain
./scripts/install.sh --target=$HOME/.claude --version=brain-v1.0
При первом запуске будет prompt для MAGIC_API_KEY (21st.dev). Используй --skip-secrets для CI.
Проверить целостность
./scripts/verify.sh --target=/path/to/my-project
Структура
См. CLAUDE.md для деталей.
Документация
- docs/architecture.md — архитектура brain'а
- docs/how-to-use-brain.md — workflow использования
- docs/how-to-experiment.md — песочница experiments/
- docs/secrets-and-tokens.md — управление секретами
- docs/consumer-projects.md — список known consumer projects
Prerequisites
git≥2.xjq≥1.6python3≥3.10bash(Git Bash на Windows работает)- Optional:
gh(для GitHub repo create),gitleaks(CI),claudeCLI (для plugin install)
Description
Languages
JavaScript
98.6%
Python
1.1%
Shell
0.3%