ClaudeMods
☰
JA
● 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" と言ったとき:Claude が作業中、Grudge は保存を提案し、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 として実行されました:

下に "grudge #1: npm → pnpm" の注記が付いた Bash 呼び出し

ペイン

ステータス行の 😤 1 grudge をクリックするか、/grudges を実行します。このリポジトリのルールが先に表示され、その後にどこでも適用されるルールが続きます:

"use pnpm, not npm"、保存日 3 Oct、適用回数 1×、Forgive ボタンを表示する Grudges ペイン

ルールを許すと、すぐに消えます。

バックグラウンド

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.

同名の他の作品

関連作品