debug-live-issue
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data…
Roll up Claude Code sessions by working directory (project) from Agent Monitor data — session count, total cost, total tokens, and last-active timestamp per cwd — so per-project activity can be compared at a glance. Use when summarizing where effort and spend went across
$ npx -y skills add hoangsonww/Claude-Code-Agent-Monitor --skill cwd-rollup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cwd-rollupContext preview
The summary Claude sees to decide when to auto-load this skill.
Roll up Claude Code sessions by working directory (project) from Agent Monitor data — session count, total cost, total tokens, and last-active timestamp per cwd — so per-project activity can be compared at a glance. Use when summarizing where effort and spend went across
name: cwd-rollup description: > Roll up Claude Code sessions by working directory (project) from Agent Monitor data — session count, total cost, total tokens, and last-active timestamp per cwd — so per-project activity can be compared at a glance. Use when summarizing where effort and spend went across projects.
Aggregate session activity per working directory (project).
The user provides: **$ARGUMENTS**
| Endpoint | Returns | |----------|---------| | `GET /api/run/cwds` | the distinct working directories that have sessions — the rollup key set | | `GET /api/sessions?limit=N` | session list: id, status, model, cwd, started_at, ended_at, cost, metadata (usage_extras with token counts) | | `GET /api/pricing/cost` | fleet cost: total_cost, breakdown[{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] — for the fleet total to compute each cwd's share |
`GET /api/run/cwds` for the canonical list of working directories. Apply the `$ARGUMENTS` filter (substring match) if one was given.
`GET /api/sessions?limit=1000`. Bucket sessions by `cwd`.
For each working directory compute:
metadata `usage_extras` (sum the four into a total, and keep input + output as the "billable text" subtotal).
`GET /api/pricing/cost` for `total_cost`; show each cwd's cost as a percentage of the fleet total.
Sort by cost descending by default (or count if the user asked); apply `top N`.
Markdown table: `project (cwd basename) | sessions | total tokens | cost | % of fleet | last active | models`. Currency as USD to 4 decimal places; token counts with thousands separators; sort cost-descending. Add a final TOTAL row summing the columns. Only count tokens that the session metadata actually carries — if `usage_extras` is absent for a session, note it as excluded rather than guessing. If the dashboard is unreachable, tell the user to start it with `npm start` from the repo root.
🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.
Repo: hoangsonww/Claude-Code-Agent-Monitor
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data…
MANDATORY for every coding agent (Claude Code, Codex, or any other) on every change-set — every applicable source file the agent creates or updates MUST start…
MANDATORY for every coding agent and contributor touching localized content — keep all five localization surfaces (dashboard UI keys, wiki page, mirrored…
Operate and maintain the local MCP server for this project. Use when creating MCP host config, troubleshooting tool connectivity, modifying tool domains, or…
Push the current working tree directly to a GitHub PR whose head lives on a **fork**, without creating a new branch and without pushing to `origin` (which is…
Onboard quickly to this repository. Use when asked to understand architecture, locate ownership, choose the right module, or identify the correct commands and…