ClaudeMods
☰
ZH-TW
● — 人在線上 · 瀏覽 — 次
贊助提交作品
GitHub 儲存庫 · 發布者 DJPalefaceSD

hands-off

標記為屬於你的檔案:在你交還之前 Claude 不能編輯。

DJPalefaceSD@DJPalefaceSD

DJPalefaceSD/rostech-mods/tree/main/plugins/hands-off

已翻譯

關於這個 mod

Hands-Off

標記為屬於你的檔案。交還之前 Claude 不能編輯,因此你手動處理中的檔案會保持原樣。

  • /hands-off notes/plan.md 標記檔案;標記資料夾會涵蓋其中所有內容。
  • /hands-off list 顯示標記。
  • /hands-off release notes/plan.md 交還一個檔案;/hands-off release all 交還所有檔案。

它會守護 Claude 的 Edit、Write 與 NotebookEdit 工具:對已標記路徑的編輯會被拒絕,並告訴 Claude 先詢問你。標記會跨工作階段保存在你自己電腦上的 Claude Code 外掛儲存中,不會傳送任何內容。

這個 mod 源自一條簡單規則:當使用者說某個檔案屬於自己時,Claude 不得寫入;不是拼字錯誤、重新格式化或變更明顯正確就能例外,只有使用者能交還檔案。舊版本只能顯示旗標與警告,現在的版本會真正阻止寫入。

已在 Claude Code 2.1.287 上測試。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add DJPalefaceSD/rostech-mods
claude plugin install hands-off
原文 / README

Hands-Off

Files you mark as yours. Claude cannot edit them until you hand them back, so a file you are working on by hand stays exactly as you left it.

  • /hands-off notes/plan.md marks a file. A folder covers everything inside it.
  • /hands-off list shows what is marked.
  • /hands-off release notes/plan.md hands one back. /hands-off release all hands back everything.

It guards Claude's Edit, Write and NotebookEdit tools: an edit to a marked path is refused, with a message telling Claude to ask you first. The marks are kept across sessions on your own machine, in Claude Code's plugin store. It sends nothing anywhere.

Why this exists

I edit my own files by hand, in Notepad++.

I direct Claude Code all day. I do not write the code.

I run Claude like a workshop, and Claude is the foreman. On 15 August 2026, half in character, I told the foreman this, at 1:23 in the afternoon:

"Next time i come in here and 2 minutes later some idiot AI is [messing] with MY files in any way that i dont approve then you habndel it"

Nothing had been wrecked yet. That was the point. I wanted it fixed before it happened.

The rule it made: when I say a file is mine, no Claude writes to it. Not a typo. Not a reformat. Not because the change is obviously right. And I release it. Nobody else does.

The first version was a flag and a warning. A shell script kept the list, and a hook printed it above every turn. It could not stop a write. It only made a write deliberate instead of an accident.

This mod is the version that stops it.

Tested with Claude Code 2.1.287.

取得徽章

這是你的專案嗎?把這個徽章放進 README 或網站,連回本頁。

Featured on ClaudeMods
尺寸
配色
Markdown
HTML

更多類似作品