brain-sync
Skill0 starsChanged 4 months agoMITView on GitHub
Before writing anywhere, assign ONE type: Rule: Could this mistake happen in ANY Odoo module? → Framework type → global files Could this ONLY make sense reading THIS module's code? → [Module-Specific] → ledger only Framework types ([API-Change] / [Field-Change] / [XML-Change] / [Security-Change] / [Performance-Tip]): [Module-Specific]: python or xml # ❌ Odoo 17 [old code] If the fix is a general Python / JavaScript / Bash / Shell mistake (not Odoo-specific): Route to: <VAULT_ROOT>/Development/General-Mistakes.md Categories: [Python], [JavaScript], [Bash], [Git],…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wujiajun4/brain-synctheir own version, first seen Oct 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- wujiajun4/brain-sync★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- feature-guardianSkill
- feature-restorerSkill
- find-skillsSkill
- frontend-designSkill
- git-advancedSkill
- obsidian-vaultSkill
- safe-workflowSkill
- security-auditSkill
- session-wrapSkill
- spec-creationSkill
- systematic-debuggingSkill
- testing-patternsSkill
- vault-prunerSkill
- graphifySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 2
Trigger: Call after every single file migration (Odoo) OR after any general Python/JS/Bash/Shell bug fix.
- Distinctive: line 8
Before writing anywhere, assign ONE type:
- Distinctive: line 113
If the fix is a general Python / JavaScript / Bash / Shell mistake (not Odoo-specific):
- Very specific: line 139
Never writes [Module-Specific] fixes to global Odoo-Mistakes.md
- Distinctive: line 140
Never batches multiple files into one sync call
- Distinctive: line 141
Never writes to any file inside the Git repo / module directory
- Very specific: line 142
Never skips the Why/When/Then — even for "obvious" fixes
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Skill: brain-sync
Trigger: Call after every single file migration (Odoo) OR after any general Python/JS/Bash/Shell bug fix. Never batch multiple files into one sync.
Step 1 — Classify the fix FIRST
Before writing anywhere, assign ONE type:
| Type | What it is | Example |
[API-Change] | Decorator or method that changed in Odoo 19 | @api.ondelete replaces unlink() |
[Field-Change] | Field attribute renamed or removed | group_operator → aggregator |
[XML-Change] | View attribute or tag changed | <tree> → <list>, attrs removed |
[Security-Change] | Access rights or group pattern changed | ir.model.access format |
[Performance-Tip] | A better Odoo 19 pattern | odoo.tools.SQL instead of raw string |
[Module-Specific] | Only makes sense in THIS module | field renamed from x to y in estate only |
Rule: Could this mistake happen in ANY Odoo module? → Framework type → global files
Could this ONLY make sense reading THIS module's code? → [Module-Specific] → ledger only
Step 2 — Route by type
Framework types ([API-Change] / [Field-Change] / [XML-Change] / [Security-Change] / [Performance-Tip]):
→ Odoo-Mistakes.md (one-line global rule)
→ Mistakes/[MODULE]_ledger.md (compact project reference)
→ Notes/[TYPE]_Notes.md (full intern explanation)
API-Change → API_Notes.md
Field-Change → Field_Notes.md
XML-Change → XML_Notes.md
Security-Change → Security_Notes.md
Performance-Tip → Performance_Notes.md[Module-Specific]:
→ Mistakes/[MODULE]_ledger.md ONLY
Do NOT write to Odoo-Mistakes.md or any Notes fileStep 3 — Write formats
Odoo-Mistakes.md (global rules — one entry per fix)
### [XML-Change] <tree> renamed to <list>
- **Avoid:** `<tree string="...">` in any view file
- **Always:** Use `<list string="...">` in Odoo 19
- **Why:** Odoo renamed the tag to match what it actually is
- **First seen in:** estate[MODULE]_ledger.md (project handoff — next subagent reads this)
## [views/estate_property_views.xml] — Fix: <tree>→<list>
- **Type:** [XML-Change]
- **Before:** `<tree string="Properties">`
- **After:** `<list string="Properties">`
- **Impact on other files:** None
- **Notes ref:** [[XML_Notes#tree-renamed-list]][TYPE]_Notes.md (intern study guide — full explanation, always this format)
## 🔖 [XML-Change] — <tree> renamed to <list>
**First seen in:** estate | **Ledger ref:** [[estate_ledger#tree-list]]
### 🧠 WHY Odoo 19 changed this
[Explain the architectural/design reason. Write to someone in their first month
of Odoo. Not "it changed" — WHY the Odoo team decided to change it.]
### 📅 WHEN you will see this as an intern
[Real situations where they'll encounter this. Which modules, which workflows.]
### 🏗️ Real Scenario
[Actual before/after code from the file just migrated — not a generic example]
```python or xml
# ❌ Odoo 17
[old code]
# ✅ Odoo 19
[new code]⚠️ Common Mistakes Interns Make
- [Specific mistake with this change]
- [Another specific mistake]
- [Edge case they'd miss]
---
## Step 4 — Confirm after every sync
✅ brain-sync complete File: models/estate_property.py Type: [API-Change] Odoo-Mistakes.md: updated estate_ledger.md: updated API_Notes.md: new section "@api.ondelete replaces unlink()"
---
## General Coding Mistakes (non-Odoo)
If the fix is a **general Python / JavaScript / Bash / Shell** mistake (not Odoo-specific):
**Route to:** `<VAULT_ROOT>/Development/General-Mistakes.md`
**Format:**
```markdown
### [CATEGORY] — Short description
- **Avoid:** what not to do
- **Always:** what to do instead
- **Why:** the reason
- **First seen in:** [project name]Categories: [Python], [JavaScript], [Bash], [Git], [SQL], [Claude-CLI], [General]
Confirm after sync:
✅ brain-sync complete
Type: General / [CATEGORY]
General-Mistakes.md: updatedWhat brain-sync NEVER does
- Never writes
[Module-Specific]fixes to globalOdoo-Mistakes.md - Never batches multiple files into one sync call
- Never writes to any file inside the Git repo / module directory
- Never skips the Why/When/Then — even for "obvious" fixes
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.

