mod-collision-guard

by Vinicius Amorim · ★ 6 · updated 5 days ago

PanesBandsGuardsCommandsvalidates

0

Pauses an edit when another open session edited the same file moments ago, and asks whether to proceed, move to a worktree, cancel or say something else

install mod-collision-guard

Install

/plugin marketplace add v-amorim/moonlight-claude-mods
/plugin install mod-collision-guard@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
ui.toastui.messagesession.startsession.endtool.callcommand.runui.closestate.setui.render
API calls
$.clock.after$.clock.now$.command.register$.config.list$.config.set$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.process.run$.session.cwd$.session.id$.session.surfaces$.session.turns$.state.set$.store.get$.store.set$.ui.ask$.ui.close$.ui.invalidate$.ui.notify$.ui.open$.ui.panes$.ui.resolve$.ui.toast
Draws
AbovePromptPane
Can see
? calls
Reach
level 2 of 3 runs processeswrites fileschanges configreads filesreads env varsreads settingspersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/v-amorim/moonlight-claude-mods
Path in repo
mod-collision-guard
Source commit
28e4fb3 the exact code the scan read
Author
Vinicius Amorim @v-amorim
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from v-amorim/moonlight-claude-mods

mod-file-tree

v-amorim/moonlight-claude-mods

A sidebar tree of the files Claude touched this session, marked read, edited, written or created, with the current one lit while Claude works. A replay steps through the last turn's edits, one diff at a time. Opens from /mod-file-tree or the Files pill in mod-menu

★ 6PanesBandsGuards

mod-heads-up

v-amorim/moonlight-claude-mods

While Claude works, a side check now and then flags one thing you should understand and probably missed: a card above the prompt, and a Heads up panel with every note of the session by turn

★ 6PanesBandsReskins

mod-manager

v-amorim/moonlight-claude-mods

Lists every mod, installs the ones you tick, turns them on or off, updates them, and shows what each does

★ 6PanesBandsCommands

mod-menu

v-amorim/moonlight-claude-mods

Owns /mod-menu, which hides or shows the panel pills above the prompt; each panel mod draws its own entry there

★ 6BandsCommands

mod-model-effort

v-amorim/moonlight-claude-mods

A clickable effort meter in the prompt footer, five squares from low to max. A click sets that level for the model, as Alt+P does

★ 6PanesBandsCommands

mod-next-steps

v-amorim/moonlight-claude-mods

After each finished turn, up to three short next-prompt suggestions sit above the input as one-line rows; a click fills the prompt without sending

★ 6PanesBandsCommands

mod-progress

v-amorim/moonlight-claude-mods

A pill and a pane showing the main session and every subagent with model, effort, context fill, tokens, time and gate progress, plus the background shells and monitors each one started. A click opens a task's full command and live output

★ 6PanesBandsReskins

mod-prompts

v-amorim/moonlight-claude-mods

A sidebar of every prompt in this session, with the full text in a card and a button that jumps the transcript to it. Opens from /mod-prompts or the Prompts entry in the mod-menu pill

★ 6PanesBandsReskins

mod-skill-panel

v-amorim/moonlight-claude-mods

Colors each skill in the slash list by the color-tag in its frontmatter, and /mod-skill-panel opens a sidebar of skills grouped by tag where pressing one adds it to the prompt

★ 6PanesBandsCommands

mod-transcript

v-amorim/moonlight-claude-mods

Restyles the transcript: prompts and replies as chat bubbles, each finished turn folded to one summary line under its prompt (tools, file changes, skills, agents) with the final reply kept, finished tool rows folded to one line, Bash commands in shell colors, and a copy button under each reply. A click unfolds a turn or a call in place

★ 6PanesBandsReskins

mod-wrap-up

v-amorim/moonlight-claude-mods

Wrap up: hand off to a fresh session (summarize, /clear, fill the handoff) or fill a /compact that keeps what you pick

★ 6PanesBandsCommands

mod-blast-radius

v-amorim/moonlight-claude-mods

Holds a risky Bash command (rm, git reset --hard, force push, SQL DROP and more) before it runs, shows what it would change, and lets you Run or Cancel

★ 6PanesBandsGuards

Other mods in Panes, close to this one by stars.