ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 hacksurvivor

grudge

UI の見た目を却下するたびに、それをスクリーンショット付きのプロジェクトルールに変える Claude Code mod です。承認済みのプレビューなしで Claude が UI ファイルを編集すると警告します。

hacksurvivor@hacksurvivor

hacksurvivor/claude-mods/tree/main/mods/grudge

元の投稿の画像1
翻訳済み

この mod について

Grudge では、スクリーンショットやコメントで UI の見た目を却下すると、Claude にそれをスクリーンショットと一緒に保持する1つのプロジェクトルールへ変換させられます。ルールは Claude の返答の下に Undo オプション付きで表示されます。UI を編集する前に、Claude にはプロジェクトのルールと、2つの習慣が渡されます。UI を考案する前に実際の参考を探すこと、新しい見た目を作る前にプレビューを表示することです。セッション中にプレビューの承認なしで行われた UI 変更も検出します。"looks right" のような承認や、プレビューのバリエーションを選ぶこともルールになります。コマンドは、/grudge でルール一覧、/grudge forget N で1つ削除、/grudge add <rule> で1つ追加、/grudge off と /grudge on で一時停止と再開です。スクリーンショットをセッションのトランスクリプトからコピーするため、Claude Code 2.1.286+ と PATH 上の Python 3 が必要です。/plugin marketplace add hacksurvivor/claude-mods でインストールし、その後 /plugin install grudge@hacksurvivor と /reload-plugins を実行します。入力したメッセージ、Claude が編集したファイルのパスを読み取り、スクリーンショット画像を ~/.claude/projects から ~/.claude/grudge/<project>/ へコピーします。自分から何かを送信することはありません。Apache-2.0 ライセンスです。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add hacksurvivor/claude-mods
claude plugin install grudge
原文 / README

Grudge

A Claude Code mod that holds a grudge against every look you reject, so Claude never brings it back.

You reply "this is slop" with a screenshot, or "again the old top bar". Grudge asks Claude to turn that into one rule for the project, written after it has looked at your screenshot, and keeps the screenshot with it. A line under Claude's reply shows what was noted, with Undo:

Noted for shop-app: keep the R4 top bar in every theme · Undo

The next time Claude edits a UI file in that project, it is handed every rule first, along with two habits: look for real references before inventing UI, and show a preview before a new look. When Claude changes UI files without a preview you approved in the session, the reply says so:

Changed SettingsView.swift without a preview you approved

Approvals count too. "Looks right" or picking variant "A" after a preview keeps that look as a rule, so later changes don't quietly undo it.

Grudge in the Claude desktop app: a rejection with a screenshot, the rule it left under Claude's reply, and the warning after a UI change with no approved preview

  • /grudge lists the project's rules, numbered.
  • /grudge forget 2 drops one; /grudge add <rule> writes one yourself.
  • /grudge off pauses it for the session, /grudge on resumes it.

Requirements

  • Claude Code 2.1.286 or later (mods). The notes are drawn in the Claude desktop app and in the terminal.
  • Python 3 on your PATH, to copy a screenshot out of the session's transcript.

Install

In Claude Code:

/plugin marketplace add hacksurvivor/claude-mods
/plugin install grudge@hacksurvivor
/reload-plugins

What it runs, reads and sends

  • Reads what you type, to tell a rejection or an approval from other messages, and the paths of files Claude edits, to tell UI files from the rest.
  • Runs bin/shot.py with Python when you reject a look with a screenshot. It reads this session's transcript in ~/.claude/projects and copies that message's images into ~/.claude/grudge/<project>/. Nothing else.
  • Sends nothing anywhere itself. The rules (and the screenshots' file paths) go to Claude as part of your conversation, under your Claude account, like any message.
  • Keeps the rules in Claude Code's plugin store on your computer, and the screenshots in ~/.claude/grudge/.

See PRIVACY.md.

License

Apache-2.0

同名の他の作品

関連作品