agentleFS
Kashyap-001Kashyap-001/second-brain-template/.agents/skills/brain-sync/skill.md

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

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
  1. Very specific:

    Trigger: Call after every single file migration (Odoo) OR after any general Python/JS/Bash/Shell bug fix.

    line 2
  2. Distinctive:

    Before writing anywhere, assign ONE type:

    line 8
  3. Distinctive:

    If the fix is a general Python / JavaScript / Bash / Shell mistake (not Odoo-specific):

    line 113
  4. Very specific:

    Never writes [Module-Specific] fixes to global Odoo-Mistakes.md

    line 139
  5. Distinctive:

    Never batches multiple files into one sync call

    line 140
  6. Distinctive:

    Never writes to any file inside the Git repo / module directory

    line 141
  7. Very specific:

    Never skips the Why/When/Then — even for "obvious" fixes

    line 142

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

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:

TypeWhat it isExample
[API-Change]Decorator or method that changed in Odoo 19@api.ondelete replaces unlink()
[Field-Change]Field attribute renamed or removedgroup_operator → aggregator
[XML-Change]View attribute or tag changed<tree> → <list>, attrs removed
[Security-Change]Access rights or group pattern changedir.model.access format
[Performance-Tip]A better Odoo 19 patternodoo.tools.SQL instead of raw string
[Module-Specific]Only makes sense in THIS modulefield 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 file

Step 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

  1. [Specific mistake with this change]
  2. [Another specific mistake]
  3. [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: updated

What brain-sync NEVER does

  • Never writes [Module-Specific] fixes to global Odoo-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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.