/truce:trucefrom truce
Settle contradictions between skills. `/truce` lists what needs a decision; `/truce <a> <b>` drafts and approves a Bridge; `/truce edit <a> <b> <words>` changes an approved Bridge; `/truce allow <a> <b>` marks a Pair as needing no Bridge; `/truce help` lists these forms.
Ships in truce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the core as CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" CLAUDE_PROJECT_DIR="${CLAUDE_PROJECT_DIR}" bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" <command>, called truce below. The core owns every state change; this skill only reads its output and relays it.
Terms: a Pair is two skills active in the same session; a Clash is a Pair whose instructions contradict each other; the Lead is the skill whose rules win where they truly contradict; a Bridge is the short, user-approved note for a Pair (its Lead, how each contradiction resolves, one worked example), injected whenever the Pair is active; a Repo Bridge is kept in the repo (.claude/truce/, committed with it) and applies only there, winning over the Pair's Global Bridge, Allow or Clash; a Bridge is Stale when either skill changed since approval, and is not injected until re-approved; an Allow marks a Pair as needing no Bridge, and survives edits to either skill.
Arguments: $ARGUMENTS
truce status. It prints JSON: pending (Clashes, each skills and reason), stale (Bridges whose skill changed, each skills and lead), missing_bridges (bridged Pairs whose Bridge file is missing or empty, each skills and path), corrupt (paths of unreadable records truce moved aside), unreadable (paths of unreadable Repo Bridge records, left in place), unavailable, bridges, allows, bridge_files (each approved Bridge whose skills are available here: skills, path, tokens, over_cap, scope). stale, missing_bridges and bridge_files entries carry scope: repo for a Repo Bridge, global otherwise.pending Pair as <a> + <b>: <reason>, then each stale Pair as <a> + <b>: Stale, a skill changed since approval, then each missing_bridges Pair as <a> + <b>: Bridge file missing or empty at <path>, nothing is injected; run /truce <a> <b> to redraft it. On a stale or missing_bridges line whose scope is repo, put (repo) right after <a> + <b>.corrupt path print Unreadable record moved aside: <path>. The Pair will be checked again; delete the file to clear this notice.
For each unreadable path print Unreadable Repo Bridge record: <path>. The global record applies here until you fix or delete it.unavailable is above 0, print N Pairs use skills not available here.truce: <bridges> approved Bridges, <allows> Allows.bridge_files entry as Bridge <a> + <b>: <path> (it can be edited by hand); when scope is repo, add (repo); when over_cap, add , over the cap at <tokens> tokens, still injected.pending, stale, missing_bridges, corrupt and unreadable are all empty, add: nothing is pending, and a Bridge can still be made by hand with /truce <a> <b>.Done when steps 2 to 7 are printed from the JSON, with nothing invented.
allow <a> <b>truce allow <a> <b> with the two names as typed.Allowed <a> + <b>: no Bridge needed, and it stays allowed after either skill is edited.Done when the Pair is reported allowed, or the error is printed.
<a> <b>: draft and approveWorks from any state, including skills that are not loaded, a no-Clash Verdict, a Stale Bridge or an Allow (approving replaces the Allow). Nothing is stored or injected until step 4. All model calls happen inside the core; never write or edit Bridge text yourself.
truce propose <a> <b>. It prints JSON: skills, lead, reason, stored_lead, stored_scope. Non-zero: print the core's stderr line as the error and stop; do not guess a Lead.lead and its reason. When stored_lead is set, say it is the Pair's current Lead and offer it as the default. Ask: keep or flip. The answer is the confirmed Lead, one of skills.truce draft <a> <b> --lead <confirmed>. It prints JSON: text, tokens, cap, over_cap. Non-zero: print the error and stop. Show text exactly as returned. When over_cap is true, also show tokens against cap and say the draft is still over; never cut it.This repo when stored_scope is repo, otherwise All repos. Put the full text, exactly as returned, in a fenced block inside the approve question itself (use a fence longer than any fence inside text, so its example stays unchanged), not only in a message before it, which the interface can collapse: the user must see the Bridge they approve. Cancel: stop; nothing was stored. Approve: pipe the shown text unchanged to truce approve <a> <b> --lead <confirmed> --scope <repo or global> on stdin (a heredoc with a quoted delimiter), repo for this repo and global for all repos. Non-zero: print the core's stderr line as the error. It prints the Bridge file path; print Bridge approved for <a> + <b>, Lead <confirmed>. File: <path> (the file can be edited by hand), adding (this repo only) for a Repo Bridge.Done when the Pair is approved from the shown text, or the user cancelled or an error was printed.
edit <a> <b> <instruction in plain words>Works on the Bridge in effect here (a Repo Bridge if this repo has one), or an allowed Pair that kept its Bridge text (approving replaces the Allow). The edit is saved where that Bridge lives. Nothing is stored until step 3. Never write or edit Bridge text yourself.
truce edit <a> <b> --instruction "<words>". It prints JSON: skills, lead, text, tokens, cap, over_cap, scope. Non-zero: print the core's stderr line as the error and stop; nothing was stored.lead and text exactly as returned. When over_cap is true, also show tokens against cap and say it is still over; never cut it.text, exactly as returned, in a fenced block inside the approve question itself (use a fence longer than any fence inside text, so its example stays unchanged), not only in a message before it, which the interface can collapse: the user must see the Bridge they approve. Cancel: stop. Approve: pipe the shown text unchanged to truce approve <a> <b> --lead <lead> --scope <scope> on stdin (a heredoc with a quoted delimiter), using the lead and scope the edit reported. Print Bridge approved for <a> + <b>, Lead <lead>. File: <path>, adding (this repo only) when scope is repo.Done when the edit is approved from the shown text, or the user cancelled or an error was printed.
helpPrint the forms, one per line, with nothing before them:
/truce: list Pairs waiting for a decision, and Stale Bridges./truce <a> <b>: draft a Bridge, confirm which skill leads, and approve it for this repo or all repos./truce edit <a> <b> <words>: change an approved Bridge./truce allow <a> <b>: mark a Pair as needing no Bridge./truce help: show this list.Print that the form is not available yet, then the list from help.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub danielrispler/skill-truce --plugin truce