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

grudge

😤 記住你的修正:提供保存長期偏好的選項,在每個工作階段提醒 Claude,並安全修正能夠替換的指令。

LorcanChinnock@LorcanChinnock

LorcanChinnock/claude-desk-neighbours/tree/main/plugins/grudge

原貼文圖片1
已翻譯

關於這個 mod

😤 Grudge

記住你的修正,所以你只要說一次 "no, use pnpm"。

說出 "no, use pnpm, not npm":Grudge 會在 Claude 工作時提供保存選項,按 4 保存

/plugin install grudge@claude-desk-neighbours

運作方式

當你送出的簡短提示聽起來像長期偏好("no, use pnpm"、"don't use default exports"、"always use the logger, not console")時,提示列會在 Claude 繼續工作時提供記住它的選項:

😤 Hold a grudge? "use pnpm, not npm"                      4: Hold  5: Nah

除非你按下 Hold,否則不會記住任何內容;你可以在空白提示中輸入 4,或直接點擊它。一次性的修正("that's the wrong file")完全不會提供選項;如果忽略某個選項,它會在你送出下一個提示時消失。

你保存的每條規則都會在該存放庫的每個工作階段傳給 Claude。拼字或語氣等個人風格規則會套用到每個存放庫。

如果規則是精確的指令替換,Grudge 會在指令執行前修正它,並在工具呼叫下方加入說明:😤 grudge #4: npm → pnpm。它只替換完整指令(絕不碰 .npmrc),也只會在引數意思相同的地方替換:

| From | To | After | |---|---|---| | npm | pnpm | install, i, run, test, start | | npm | yarn | run, test, start | | npm | bun | install, i, run | | pnpm | npm | install, i, run, test, start | | yarn | npm | run, test, start | | yarn | pnpm | run, test, start | | pip | pip3 | anything | | python | python3 | anything |

這裡 Claude 被要求執行 npm test,但實際以 pnpm test 執行:

一次 Bash 呼叫,下方說明為 "grudge #1: npm → pnpm"

面板

點擊狀態列中的 😤 1 grudge,或執行 /grudges。先列出此存放庫的規則,再列出適用於所有地方的規則:

Grudges 面板列出 "use pnpm, not npm",保存於 3 Oct,強制執行 1×,附有 Forgive 按鈕

原諒一條規則後,它會立即消失。

背景執行

如果提示少於 400 個字元,而且其中有看起來像修正的內容,它會交給 Haiku 判斷是否為長期偏好。其他提示不會產生費用。規則保存在外掛的儲存區中。

安裝

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

claude plugin marketplace add LorcanChinnock/claude-desk-neighbours
claude plugin install grudge
原文 / README

😤 Grudge

Remembers your corrections, so you only have to say "no, use pnpm" once.

Saying "no, use pnpm, not npm": Grudge offers to hold it while Claude works, and 4 holds it

/plugin install grudge@claude-desk-neighbours

How it works

When you send a short prompt that sounds like a lasting preference ("no, use pnpm", "don't use default exports", "always use the logger, not console"), the band offers to remember it while Claude carries on working:

😤 Hold a grudge? "use pnpm, not npm"                      4: Hold  5: Nah

Nothing gets remembered unless you press Hold, either by typing 4 into an empty prompt or by clicking it. One-off fixes ("that's the wrong file") don't get an offer at all, and if you ignore an offer it goes away when you send your next prompt.

Every rule you hold is passed to Claude in every session in that repo. Rules about personal style, like spelling or tone, apply in every repo.

When a rule is an exact command swap, Grudge fixes the command before it runs and adds a note under the tool call: 😤 grudge #4: npm → pnpm. It only swaps whole commands (it never touches .npmrc), and only where the arguments mean the same thing:

| From | To | After | |---|---|---| | npm | pnpm | install, i, run, test, start | | npm | yarn | run, test, start | | npm | bun | install, i, run | | pnpm | npm | install, i, run, test, start | | yarn | npm | run, test, start | | yarn | pnpm | install, run, test, start | | pip | pip3 | anything | | python | python3 | anything |

Here Claude was asked to run npm test anyway, and it ran as pnpm test:

A Bash call with the note "grudge #1: npm → pnpm" under it

The pane

Click 😤 1 grudge in the status row, or run /grudges. Rules for this repo are listed first, then the ones that apply everywhere:

The Grudges pane listing "use pnpm, not npm", held 3 Oct, enforced 1×, with a Forgive button

Forgive a rule and it's gone straight away.

In the background

If a prompt is under 400 characters and has something in it that looks like a correction, it goes to Haiku to decide whether it's a lasting preference. Any other prompt costs nothing. Rules are kept in the plugin's store.

其他同名作品

更多類似作品