shared-file-guard

by Mehmet Mutlu · ★ 3 · updated today

GuardsCommandsAutomationvalidates

0

Refuses a shell write to a shared file (STATUS.md, CLAUDE.md, MEMORY.md, or the files you name) that this session has not read, or that another session changed since

install shared-file-guard

Install

/plugin marketplace add mutlumehmet/claude-plugins
/plugin install shared-file-guard@mehmetmutlu

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
session.startcommand.runtool.call
API calls
$.command.register$.env.get$.fs.stat$.session.cwd$.ui.log
Can see
Read|Edit|Write callsBash calls
Reach
level 1 of 3 reads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/mutlumehmet/claude-plugins
Path in repo
plugins/shared-file-guard
Source commit
828596c the exact code the scan read
Author
Mehmet Mutlu @mutlumehmet
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 mutlumehmet/claude-plugins

answer-buttons

mutlumehmet/claude-plugins

Three small buttons under Claude's last answer: Plain English, Shorter, and Plain & short

★ 3Reskins

arcade

mutlumehmet/claude-plugins

The Claude Code Arcade: eight pixel games above the prompt, played by your work (a dragon, a slot machine, an Outlaw duel, a Tamagotchi, Tetris, an invading octopus, a duck hunt, and Bug Command, which you can play along with). Pin one, rotate them, or get a random one in every terminal.

★ 3BandsGuardsCommands

context-alarm

mutlumehmet/claude-plugins

Warns when the context window passes a threshold (80% by default) and suggests /save-context before compaction

★ 3Status lineCommandsPrompt

dash-guard

mutlumehmet/claude-plugins

Refuses prose that Claude writes with an em dash, an en dash or a double hyphen, and tells Claude which lines to rewrite

★ 3GuardsCommandsAutomation

fork-lineage

mutlumehmet/claude-plugins

Remembers which session a fork came from (renames never break it), shows it above the prompt, and sends a fork's report to its parent only when you approve it

★ 3BandsCommandsPrompt

skill-stats

mutlumehmet/claude-plugins

Counts how often each skill runs, lists the ones that never trigger, and hands a weak description to skill-creator

★ 3CommandsPromptAutomation

subtask-icons

mutlumehmet/claude-plugins

A single ⑂ Subtask button under Claude's last answer opens a picker of its items; picking one puts /subtask in the prompt box

★ 3PanesBandsReskins