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

session-receipt

Claude Code プラグインです。/receipt でモデル、時刻、ターン、ツール、ファイル、トークン、キャッシュヒット、コストなどを含む共有可能なセッションレシートを作成し、1200×1200 PNG 画像として書き出せます。

sreshtalluri@sreshtalluri

sreshtalluri/claude-mods/tree/main/plugins/session-receipt

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

この mod について

session-receipt は sreshtalluri/claude-mods マーケットプレイスにある Claude Code プラグインです。function-hooks plugin API を通じて tool.call イベントを捕捉し、セッション情報を集計します。コマンドには /receipt(現在のセッションのモデル、時刻、ターン、ツール、ファイル、トークン、キャッシュヒット、コスト、その他の楽しい統計)、/receipt week(7日間の集計)、/receipt last(直前のセッションのレシート)があります。Copy image では macOS、Windows、Linux のクリップボードに 1200×1200 PNG を入れられます。描画できない場合はファイルに保存してパスを表示します。各セッションの終了時にレシートは ~/.claude/receipts/ に保存され、データがローカルマシンから出ることはありません。ターミナルではテキストの伝票として、デスクトップアプリでは紙のようなレシートとして表示されます。/plugin marketplace add sreshtalluri/claude-mods でインストールし、続けて /plugin install session-receipt@claude-mods を実行します。MIT ライセンスです。

インストール

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

claude plugin marketplace add sreshtalluri/claude-mods
claude plugin install session-receipt
原文 / README

claude-mods

Claude Code mods by @sreshtalluri.

session-receipt: a receipt for every Claude Code session

Install

/plugin marketplace add sreshtalluri/claude-mods
/plugin install session-receipt@claude-mods
/plugin install daily-grind@claude-mods

Mods use Claude Code's function-hooks plugin API, which is early access, so you need a current Claude Code.

Mods

| Mod | What it does | | --- | --- | | session-receipt | /receipt prints a shareable receipt of your session. /receipt week totals your week. Copy image gives you a square PNG to post. | | daily-grind | /grind opens a hub of daily puzzles to play while Claude works. Developer: Git Golf (reshape a commit graph under par), Heisenbug (find the buggy line), Install Order (dependency logic). Everyone: Ladder, Pixel Logic, Codebreaker. A Classics tab holds Lexer, Buckets and Daemons. Streaks, and /grind share for a shareable result. |

session-receipt

session-receipt demo

| Command | | | --- | --- | | /receipt | This session: model, time, turns, tools, files, tokens, cache hit, cost, and how many times Claude said you were absolutely right. | | /receipt week | The last seven days: sessions, busiest day, top project, usual model, total. | | /receipt last | The previous session's receipt. |

  • Copy image puts a 1200×1200 PNG on your clipboard on macOS, Windows and Linux. If nothing can draw it, the image is saved and its path is shown.
  • Every session's receipt is saved to ~/.claude/receipts/ when it ends. Nothing leaves your machine.
  • In the terminal it's a text slip; in the desktop app it's drawn as paper.

Adding a mod

  1. Put it in plugins/<name>/ (with .claude-plugin/plugin.json).
  2. Add an entry to .claude-plugin/marketplace.json.
  3. claude plugin validate plugins/<name>, claude plugin test plugins/<name> and claude plugin validate .

The demo clip is a HyperFrames composition in media/receipt-demo: bun build.ts && npm run render.

License

MIT

同名の他の作品

関連作品