skill-memory-bank
CLAUDE.md32 starsChanged 4 months agoMITView on GitHub
Global Key rules apply with these differences: - Clean Architecture: Infra → App → Domain, never backward; Domain has 0 external deps - English for everything written to the repo: code comments, commit messages, PR titles and descriptions; replies to the user stay in Russian (your rule) - Replaces the global line: architecture. Details: .memory-bank/RULES.md. <!-- mb-key-rules:end --> Long-term project memory through .memory-bank/, engineering rules, SDD specs, executable /mb work tasks, verification, review, and session persistence. The gate applies when…
In this repository2 other files it gives its agents.
- references/agents.mdAGENTS.md
- memory-bankSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
No bank → [MEMORY BANK: ABSENT].
- Distinctive: line 22
Read the project rules and Memory Bank context before implementation:
- Very specific: line 27
Do not bypass an existing plan/spec.
- Very specific: line 28
If .memory-bank/COORDINATION.md exists, parallel sessions share the working tree: read the board with scripts/mb-coord.sh active (not the …
- Very specific: line 36
Treat specs/<topic>/tasks.md blocks marked <!-- mb-task:N --> as executable source of truth.
- Very specific: line 37
If using a wrapper plan, it must have linked_spec or <!-- mb-stage:N --> markers.
- Very specific: line 38
Follow resolved steps exactly.
- Very specific: line 40
Do not claim completion until configured verification/review/judge gates are satisfied, or the user explicitly chooses a simpler workflow.
- Distinctive: line 61
Start: restore context and summarize current focus in 1–3 sentences.
- Distinctive: line 63
Before completion: run the verification commands required by the current task/workflow.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- mb-key-rules:start --><!-- mb-stamp: 5.3.1-e6fc738f -->Key rules — project overrides
Global Key rules apply with these differences:
- Clean Architecture: Infra → App → Domain, never backward; Domain has 0 external deps
- English for everything written to the repo: code comments, commit messages, PR titles and descriptions; replies to the user stay in Russian (your rule)
- Replaces the global line:
architecture.
Details: .memory-bank/RULES.md.
<!-- mb-key-rules:end -->Memory Bank Skill
Long-term project memory through .memory-bank/, engineering rules, SDD specs, executable /mb work tasks, verification, review, and session persistence.
Hard Rules
- Resolve the active Memory Bank before project work and say its state in your first reply.
- Existing bank →
[MEMORY BANK: ACTIVE]. - No bank →
[MEMORY BANK: ABSENT]; do not initialize unless explicitly requested.
- Existing bank →
- Read the project rules and Memory Bank context before implementation:
- global rules:
rules/RULES.mdfrom this skill bundle; - project overrides:
<repo>/AGENTS.md,<repo>/RULES.mdor<bank>/RULES.mdwhen present; - core context:
<bank>/status.md,checklist.md,roadmap.md,research.mdwhen present (the resolver also detects legacy-cased layouts).
- global rules:
- Size the task first (
references/effort-tiers.md, SKILL.md § Task routing). New logic at standard+ follows TDD — failing test first, then implementation, then verification; a small task gets one test per stated behavior; a trivial edit needs no new test. - Do not bypass an existing plan/spec. If work comes from Memory Bank, execute through
/mb workor the equivalent scripts. - If
.memory-bank/COORDINATION.mdexists, parallel sessions share the working tree: read the board withscripts/mb-coord.sh active(not the whole file) before stages, commits, and shared-file edits; scopedgit addonly (never-A); obey FREEZE entries. Protocol:references/coordination.md.
/mb work Gate
The gate applies when the task refers to an existing plan or spec in the bank (the user says implement, fix, continue, resume, next step, go by the plan, execute the spec, or similar about it). Without a plan or spec, route by tier — references/effort-tiers.md (SKILL.md § Task routing): trivial and small tasks are done inline. When the gate applies:
- Resolve workflow from
<bank>/pipeline.yamlwithscripts/mb-workflow.sh. - Resolve target/range with
scripts/mb-work-resolve.shandscripts/mb-work-plan.sh. - Treat
specs/<topic>/tasks.mdblocks marked<!-- mb-task:N -->as executable source of truth. - If using a wrapper plan, it must have
linked_specor<!-- mb-stage:N -->markers. If not, stop and fix the wrapper before coding. - Follow resolved steps exactly. For governed workflows this means:
implement → verify → review → judge → fix/backlog → done. - Dispatch the resolved
agentby name with the exactmodelfrompipeline.yaml/JSON lines; do not use fuzzy model names.thinkingmaps to the agent'seffort:frontmatter in Claude Code. - Do not claim completion until configured verification/review/judge gates are satisfied, or the user explicitly chooses a simpler workflow.
Inline implementation of planned work is fine when the user explicitly asks to skip /mb work; the tier's tests and verification still apply.
Common Workflows
| Intent | Command |
| Load context | /mb start or scripts/mb-context.sh |
| Formalize a raw request | /mb brief <topic> [--input <path>]… — first stage of brief → discuss → sdd → work |
| Create requirements/spec | /mb discuss <topic> → /mb sdd <topic> |
| Execute existing spec/plan | /mb work <target> [--range N] [--workflow NAME] |
| Simple execution override | /mb work <target> --workflow simple |
| Verify plan/spec alignment | /mb verify |
| Save session | /mb done |
| Validate pipeline | /mb config validate or scripts/mb-pipeline-validate.sh |
| Validate spec | scripts/mb-spec-validate.sh <topic> |
| Drift check | scripts/mb-drift.sh <repo> |
Session Discipline
- Start: restore context and summarize current focus in 1–3 sentences.
- During work: update checklist/tasks immediately when a task is truly complete.
- Before completion: run the verification commands required by the current task/workflow.
- End: append progress, update status/checklist, and run
/mb donewhen appropriate.
Compatibility Notes
AGENTS.mdis shared across Pi, OpenCode, Codex, and other agents; projectAGENTS.mdcan override global defaults.- Claude Code reads only
CLAUDE.mdwhen it exists (it skipsAGENTS.mdby default); other agents (Codex, Pi, OpenCode, Cursor) readAGENTS.md. Keep shared project rules in both via the managed blocks; project-specific detail lives inRULES.md. - Global skill installation does not imply project Memory Bank activation; only an existing/resolved bank does.
<!-- mb-agreements:start -->Active Agreements
- AGR-074: Пайплайны /mb work имеют три независимые оси: уровень сложности (simple — только исполнитель с самопроверкой; medium…
- AGR-075: Частота верификатора настраивается в pipeline.yaml и флагом /mb work --verify: stage | plan | run | off; по умолчанию на medium…
- AGR-076: Настройки качества проекта задаются в одном месте — профиле правил проекта (/mb rules, /mb profile): порог coverage, TDD вкл/выкл, Testing…
- AGR-077: Принципы SOLID, DRY, KISS и YAGNI по умолчанию включены, но пользователь или проект может выключить любой из них (уточняет AGR-064: эти…
- AGR-078: Планы не дробятся без причины: этап — это граница зависимости, слоя/владельца, рискованная контрольная точка или параллелизуемый кусок с…
- AGR-079: Правило «200k токенов на Sprint» удаляется из правил планирования как устаревшее: размер Sprint определяется архитектурными границами и…
- AGR-082: ADaPT-lite внедряется сейчас как первый срез spec svp-adapt-escalation: план крупный, исполнитель берёт пункт целиком…
- AGR-083: Проектный блок Key rules в CLAUDE.md/AGENTS.md содержит только отличия проекта от пользовательских правил (включено, выключено, свои…
- AGR-084: Релиз 5.4.0 пока не делаем: сначала тестируем сами, важные пользователи забирают обновления из main…
- AGR-085: Всё, что пишется в репозиторий, — на английском: комментарии в коде, сообщения коммитов, заголовки и описания PR; ответы пользователю…
- AGR-086: pi-native-integration продолжается из Claude Code: исполнители — сабагенты mb-* на Claude, Codex остаётся внешним ревьюером…
- AGR-088: Pi-native: Tintin — бэкенд по умолчанию, Nico — по явному выбору; для Nico ставится публичный потолок прав…
- AGR-089: pi-native-integration: без внешнего ревью Codex и без судьи — этапы делает сабагент-исполнитель, в конце только верификатор…
- AGR-090: Memory Bank subagents must be usable from ordinary Pi through its native extension, without requiring a separate mb-pi invocation…
- AGR-091: For the ordinary-Pi MB bootstrap repair, the owner explicitly authorizes this sole Pi parent to implement inline without /mb work because…
- AGR-092: For the Pi-scoped commit and push to main, the owner authorizes MB_FLOW_CLOSURE=off for that commit process only because the installed hook…
- AGR-093: Codex uses globally registered native Memory Bank lifecycle hooks, model-free cross-chat capture, and named agent roles…
- AGR-094: The /mb work command must remain compatible with Claude Code while supporting Codex.…
- AGR-095: For this Codex-scoped commit only, the owner authorizes MB_FLOW_CLOSURE=off because the installed pre-commit gates the unrelated paused SVP…
- … 66 more → /mb agree list
История, superseded и правила ведения → .memory-bank/agreements.md (/mb agree)
<!-- mb-agreements:end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

