Agent skill · Data & Analytics

cwd-rollup

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.

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

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

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Path: plugins/ccam-sessions/skills/cwd-rollup/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

# CWD Rollup Aggregate session activity per working directory (project). ## Input The user provides: **$ARGUMENTS** - Empty → roll up **all** working directories. - A path / project substring → restrict the rollup to matching cwds. - `top N` → keep only the N highest-cost (or highest-count) projects. ## Data Sources | 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 | ## Report Sections ### 1. Key set `GET /api/run/cwds` for the canonical list of working directories. Apply the `$ARGUMENTS` filter (substring match) if one was given. ### 2. Pull sessions `GET /api/sessions?limit=1000`. Bucket sessions by `cwd`. ### 3. Aggregate per cwd For each working directory compute: - **sessions** — count. - **cost** — sum of the inline `cost` field across

What's inside
Steps it walks through
  1. Input
  2. Data Sources
  3. Report Sections
  4. 1. Key set
  5. 2. Pull sessions
  6. 3. Aggregate per cwd
  7. 4. Share of fleet
  8. 5. Ranking
  9. Output
More from Claude-Code-Agent-Monitor
All skills →
About this skill
What does the cwd-rollup skill do?

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.

How do I install it?

Run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cwd-rollup --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