session-report
यह क्या करती है
यह स्किल एक स्वयं-संपूर्ण वेब पेज बनाती है, जिसमें दिखता है कि Claude Code कितना इस्तेमाल हुआ और उपयोग कहाँ गया। यह उन लोगों के लिए है जो अपने उपयोग के पैटर्न समझना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप देखना चाहें कि कौन-से प्रोजेक्ट या प्रॉम्प्ट सबसे ज़्यादा टोकन खर्च कर रहे हैं।
- ✓जब आप जाँचना चाहें कि कैश का उपयोग ठीक से काम कर रहा है या नहीं।
- ✓जब आपको पिछले हफ़्ते की Claude Code गतिविधि का दृश्य सार चाहिए।
Skill का लिंक
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/session-report/skills/session-report/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे पिछले सात दिनों के मेरे Claude Code उपयोग की रिपोर्ट दिखाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एक साथ दी गई स्क्रिप्ट आपके सेशन रिकॉर्ड पढ़कर कुल आँकड़े निकालती है। AI उन आँकड़ों और कुछ छोटे निष्कर्षों से एक टेम्पलेट पेज भरता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Session Report
Produce a self-contained HTML report of Claude Code usage and save it to the current working directory.
Steps
Get data. Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g.
24h,30d, orall). The scriptanalyze-sessions.mjslives in the same directory as this SKILL.md — use its absolute path:node <skill-dir>/analyze-sessions.mjs --json --since 7d > /tmp/session-report.jsonFor all-time, omit
--since.Read
/tmp/session-report.json. Skimoverall,by_project,by_subagent_type,by_skill,cache_breaks,top_prompts.Copy the template (also bundled alongside this SKILL.md) to the output path in the current working directory:
cp <skill-dir>/template.html ./session-report-$(date +%Y%m%d-%H%M).htmlEdit the output file (use Edit, not Write — preserve the template's JS/CSS):
- Replace the contents of
<script id="report-data" type="application/json">with the full JSON from step 1. The page's JS renders the hero total, all tables, bars, and drill-downs from this blob automatically. - Fill the
<!-- AGENT: anomalies -->block with 3–5 one-line findings. Express figures as a % of total tokens wherever possible (total =overall.input_tokens.total + overall.output_tokens). One line per finding, exact markup:
Classes:<div class="take bad"><div class="fig">41.2%</div><div class="txt"><b>cc-monitor</b> consumed 41% of the week across just 3 sessions</div></div>.take badfor waste/anomalies (red),.take goodfor healthy signals (green),.take infofor neutral facts (blue). The.figis one short number (a %, a count, or a multiplier like12×). The.txtis one plain-English sentence naming the project/skill/prompt; wrap the subject in<b>. Look for: a project or skill eating a disproportionate share, cache-hit <85%, a single prompt >2% of total, subagent types averaging >1M tokens/call, cache breaks clustering. - Fill the
<!-- AGENT: optimizations -->block (at the bottom of the page) with 1–4<div class="callout">suggestions tied to specific rows (e.g. "/weekly-statusspawned 7 subagents for 8.1% of total — scope it to fewer parallel agents"). - Do not restructure existing sections.
- Replace the contents of
Report the saved file path to the user. Do not open it or render it.
Notes
- The template is the source of interactivity (sorting, expand/collapse, block-char bars). Your job is data + narrative, not markup.
- Keep commentary terse and specific — reference actual project names, numbers, timestamps from the JSON.
top_promptsalready includes subagent tokens and rolls task-notification continuations into the originating prompt.- If the JSON is >2MB, trim
top_promptsto 100 entries andcache_breaksto 100 before embedding (they should already be capped).
अक्सर पूछे जाने वाले सवाल
कितनी अवधि चुनी जा सकती है?
डिफ़ॉल्ट पिछले सात दिन हैं, पर आप 24 घंटे, 30 दिन या पूरे समय जैसी दूसरी अवधि माँग सकते हैं।
रिपोर्ट कहाँ सेव होती है?
वह उस फ़ोल्डर में HTML फ़ाइल के रूप में सेव होती है, जिसमें आप काम कर रहे हैं।
निष्कर्ष वाले हिस्से में क्या दिखता है?
इसमें तीन से पाँच छोटे निष्कर्ष होते हैं, और आँकड़े कुल टोकन के हिस्से के रूप में दिखाए जाते हैं।
जानकारी
लेखक का मूल विवरण
Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.
लोकप्रियता
- GitHub स्टार
- 46k
- रैंकिंग में स्थान
- #6353
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
access
46kयह Discord चैनल पर कौन आपके सहायक को मैसेज कर सकता है, यह मैनेज करने में मदद करती है, जिसमें पेयरिंग और अनुमति सूची शामिल हैं।
configure
46kबॉट टोकन सेव करके और देखकर कि कौन पहुँच सकता है, आपके सहायक के लिए Discord चैनल सेट करती है।
access
46kयह iMessage चैनल पर कौन आपके सहायक को मैसेज कर सकता है, इसे मैनेज करने में मदद करती है, जिसमें मंज़ूरी और अनुमति सूची शामिल है।
configure
46kFull Disk Access सहित आपके iMessage चैनल का सेटअप जाँचती है, और बताती है कि आपके सहायक तक कौन पहुँच सकता है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।