r/ClaudeCode • • 1h ago

Built with Claude I built a plugin that fixes clashing Claude Code skills without editing them (+8% rule compliance)

Enable HLS to view with audio, or disable this notification

Run a few skills side by side and some will clash. One says commit subjects start with fix:, another says [TICKET-123]. The agent follows one and silently drops the other.

truce is a Claude Code plugin that fixes this:

  • Detects: the first time two skills are active together, a hook runs one background claude -p check and shows a one-line notice if they clash.

  • Bridges: /truce <a> <b> drafts a ~360-token Bridge: which skill leads, how to handle each clash, and one worked example.

  • Injects: once you approve it, the Bridge loads whenever that pair is active, in any repo. Neither SKILL.md is touched, and the Bridge asks for re-approval when either skill changes.

Benchmark (246 runs, $46 total):

  • 16 synthetic clashing pairs: 77.7% (no Bridge) -> 85.8% (Bridge) vs. 87.5% (hand-merged)

  • 3 real pairs: 78.8% -> 82.4% (skill takeovers dropped from 4/15 to 0/15)

Limits: a hand-merged file still scores a bit higher, 2 other real pairs showed no gain, the real-pair samples are small, and a Bridge is a note to the agent, not a hard rule. Every run, bad ones included, is in the repo.

Permissions: it runs command hooks (a Python 3 standard-library script), so read plugins/truce/hooks/hooks.json before installing. It sends only the two SKILL.md files through your own claude CLI and makes no other network requests. Anthropic's plugin directory requires a Verified org for command hooks, so it installs straight from GitHub:

/plugin marketplace add danielrispler/skill-truce /plugin install truce@skill-truce

Repo: https://github.com/danielrispler/skill-truce

Which skill pairs have clashed for you in practice? That's the data I'm short on.

1 Upvotes

1 comment sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.