agentleFS
toroleapinctoroleapinc/claude-brain/skills/brain-conflicts/SKILL.md

brain-conflicts

Skill91 starsChanged 9 months agoMITView on GitHub

Review and resolve unresolved brain merge conflicts.

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
  1. Distinctive:

    Read the conflicts file:

    line 11
  2. Distinctive:

    If no unresolved conflicts, tell the user: "No pending conflicts.

    line 18
  3. Distinctive:

    Ask the user to choose:

    line 26
  4. Distinctive:

    Keep Machine A's version: Use A's content

    line 28
  5. Distinctive:

    Keep Machine B's version: Use B's content

    line 29
  6. Distinctive:

    After all conflicts are resolved:

    line 37

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

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

The user wants to resolve pending brain merge conflicts.

Steps

  1. Read the conflicts file:
    cat ~/.claude/brain-conflicts.json 2>/dev/null || echo '{"conflicts":[]}'
  2. Filter to unresolved conflicts (where resolved is not true).
  3. If no unresolved conflicts, tell the user: "No pending conflicts. Brain is fully synced."
  4. 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
  5. After each resolution:
    • Mark the conflict as resolved: true with the chosen resolution in brain-conflicts.json
    • Apply the resolution to the appropriate brain file (CLAUDE.md, memory, etc.)
  6. After all conflicts are resolved:
    bash "${CLAUDE_PLUGIN_ROOT}/scripts/push.sh"
  7. Show summary: "X conflicts resolved. Brain is now fully synced."

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.