brain-conflicts
Skill91 starsChanged 9 months agoMITView on GitHub
Review and resolve unresolved brain merge conflicts.
In this repository8 other files it gives its agents.
- brain-evolveSkill
- brain-initSkill
- brain-joinSkill
- brain-logSkill
- brain-shared-listSkill
- brain-shareSkill
- brain-statusSkill
- brain-syncSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read the conflicts file:
- Distinctive: line 18
If no unresolved conflicts, tell the user: "No pending conflicts.
- Distinctive: line 26
Ask the user to choose:
- Distinctive: line 28
Keep Machine A's version: Use A's content
- Distinctive: line 29
Keep Machine B's version: Use B's content
- Distinctive: line 37
After all conflicts are resolved:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
The user wants to resolve pending brain merge conflicts.
Steps
- Read the conflicts file:
cat ~/.claude/brain-conflicts.json 2>/dev/null || echo '{"conflicts":[]}' - Filter to unresolved conflicts (where
resolvedis nottrue). - If no unresolved conflicts, tell the user: "No pending conflicts. Brain is fully synced."
For each unresolved conflict, present:
- The topic
- What Machine A says
- What Machine B says
- The AI's suggestion and confidence level
Ask the user to choose:
- Accept AI suggestion: Apply the suggestion
- Keep Machine A's version: Use A's content
- Keep Machine B's version: Use B's content
- Keep both (machine-specific): Tag each with its machine name
- Custom: Let the user type their own resolution
- After each resolution:
- Mark the conflict as
resolved: truewith the chosen resolution in brain-conflicts.json - Apply the resolution to the appropriate brain file (CLAUDE.md, memory, etc.)
- Mark the conflict as
- After all conflicts are resolved:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/push.sh" - Show summary: "X conflicts resolved. Brain is now fully synced."
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.

