ClaudeCodeMod

All shelves / Mods / Workflow

shared-file-guard

By mutlumehmet

shared-file-guard is a Claude Code workflow mod by mutlumehmet.

Refuses a shell write to a shared file this session never read, or that another session changed, and tells Claude to read it again.

Holds a command

Install

The marketplace name is mehmetmutlu.

In Claude Code
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install shared-file-guard@mehmetmutlu
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.4.1
License
MIT
Repo stars
5
Last change
2026-10-10

What it can reach

  • Holds a command
  • Sees tool calls

Needs Claude Code 2.1.287 or later. Tested on 2.1.289. A cat or a grep counts as a read. A session's own writes do not block its next one. Creating a file that does not exist yet is allowed. watched_files defaults to STATUS.md, CLAUDE.md, and MEMORY.md. /shared-file-guard lists the files this session has seen, and off or on is a command you type. If the mod fails, the command runs as normal. It never changes the command and never sends anything anywhere. Settings are asked at install, or later with /plugin configure shared-file-guard@mehmetmutlu. Paths built inside a script, and relative paths after a cd in the same command, are not seen. It compares date and size, not a hash. It checks, then the shell writes, and it does not lock, so two sessions that pass in the same few milliseconds can still overwrite each other. The refusal text is added to what the model reads.

The install name is shared-file-guard. This page adds the author's name. The marketplace name is mehmetmutlu. The marketplace also holds answer-buttons, arcade, and other mods. This one installs on its own. The refused shell write is why this page files it under workflow. It guards STATUS.md, CLAUDE.md, MEMORY.md, and the names you set, across sessions. It is not a hold of a risky shell command. memory-fork draws what the memory fork changed above the prompt, and refuses the session's writes into the memory folder. This one refuses a shell write to a shared file another session changed.

Demo

The What it does section: a refused shell write to a shared file this session never read, or that another session changed.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/shared-file-guard
  • tool.callAround a tool call, where it can hold oneReadEditWriteBash

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /shared-file-guardShow which shared files this session has seen, or turn the guard off|on

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
mutlumehmet
Category
Workflow
Marketplace
mehmetmutlu
Repo
mutlumehmet/claude-plugins
Folder
plugins/shared-file-guard
Version
0.4.1
License
MIT
Repo stars
5
Last change
2026-10-10
Language
TypeScript
Files
7

Other mods in Workflow

subtask-iconsmutlumehmetDraws one Subtask button under the last answer. A pick fills the prompt box with that item and sends nothing.gh-statusoborchersDraws the branch's pull request, issues, and Actions above the prompt, and a confirmed press sends a merge or a review to GitHub.katharsisOpenScribblerDraws a drawer of findings and next actions for Katharsis, an output style that classifies each message and shapes the reply.cc-pr-trackersezaakgunDraws each watched GitHub pull request above the prompt, and asks GitHub for its merge state, review, and required checks.databricks-clidata-goblinDraws a Databricks workspace beside the session, and asks Databricks for catalogs, compute, jobs, and pipelines.fabric-clidata-goblinDraws Fabric and Power BI workspaces beside the session, and asks Microsoft Fabric for items, lakehouse tables, and files.fabric-data-appdata-goblinDraws each Fabric app in this folder beside the session, and follows rayfin as it deploys the app to Microsoft Fabric.reportsdata-goblinDraws a Power BI report's pages and visuals beside the session, and the report command line reads that report and can upload it to Power BI.apexyard-bootcampme2reshIn an ApexYard ops fork, draws one bootcamp lesson beside the session, and a checkpoint ticks when a matching skill or tool call runs.apexyard-explainerme2reshIn an ApexYard ops fork, draws a pane that explains each tool call in one plain sentence of Simplified Technical English.apexyard-statusme2reshIn an ApexYard ops fork, draws the active ticket, pull requests waiting for approval, and the reviewer lock, and asks GitHub which are still open.craftsman-cockpitBULDEEFor ai-craftsman-superpowers, a quality gate for AI-written code, draws a pane of candidate rules it learned. Approve or Reject runs its helper.
All 396 in Workflow