Agent skill · Backend & API

session-report

Generate a comprehensive session report with per-model token usage (input, output, cache_read, cache_write including compaction baselines), cost breakdown via the pricing engine, tool invocations, agent hierarchy, compaction events, API errors, turn durations, and thinking block counts. Use when reviewing a specific session or summarizing activity over a date range.

hoangsonwwgithub.com/hoangsonwwGitHub ↗
claude-codeMIT
Install
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-report --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Path: plugins/ccam-analytics/skills/session-report/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 869
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Session Report Generate a detailed session report from the Claude Code Agent Monitor. ## Input The user provides: **$ARGUMENTS** This may be a session ID, "latest", or a date range like "last 24 hours". ## Data Sources All data comes from the Agent Monitor API at `http://localhost:4820`: | Endpoint | What it returns | |----------|----------------| | `GET /api/sessions/{id}` | Session with nested `.agents[]` and `.events[]` | | `GET /api/sessions?limit=50` | Session list with `agent_count`, `last_activity`, and **inline `cost`** per session (bulk pricing applied server-side) | | `GET /api/pricing/cost/{sessionId}` | `{ total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` | | `GET /api/events?session_id={id}` | Event stream: each has `event_type`, `tool_name`, `summary`, `data` (JSON), `created_at` | ### Key data points available per session - **Status**: `active` / `completed` / `error` / `abandoned` - **Model**: primary model (e.g. `claude-sonnet-4-20250514`) - **Metadata (JSON)**: `thinking_blocks` count, `turn_count`, `total_turn_duration_ms`, `usage_extras` (service_tier, speed, inference_geo) - **Token u

What's inside
Steps it walks through
  1. Input
  2. Data Sources
  3. Key data points available per session
  4. Report Sections
  5. 1. Session Overview
  6. 2. Token Usage (per model)
  7. 3. Cost Breakdown
  8. 4. Agent Hierarchy
  9. 5. Tool Activity
  10. 6. Compaction & Context Health
  11. 7. API Errors
  12. 8. Timeline
  13. Output Format
More from Claude-Code-Agent-Monitor
All skills →
About this skill
What does the session-report skill do?

Generate a comprehensive session report with per-model token usage (input, output, cache_read, cache_write including compaction baselines), cost breakdown via the pricing engine, tool invocations, agent hierarchy, compaction events, API errors, turn durations, and thinking block counts. Use when reviewing a specific session or summarizing activity over a date range.

How do I install it?

Run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill session-report --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From hoangsonww/Claude-Code-Agent-Monitor, a repository with 869 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going