ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 sreshtalluri

session-receipt

Claude Code 外掛,用 /receipt 指令產生可分享的 session 收據(模型、時間、回合、工具、檔案、token、快取命中、成本等),並可匯出 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 事件統計 session 資訊。指令包含:/receipt(本次 session 的模型、時間、回合、工具、檔案、token、快取命中、成本與趣味統計)、/receipt week(近七天彙總)、/receipt last(上一次 session 收據)。提供 Copy image 功能,可在 macOS、Windows、Linux 將 1200×1200 PNG 放入剪貼簿,若無法繪製則存檔並顯示路徑。每次 session 結束時收據會存到 ~/.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

其他同名作品

更多类似作品