From claude-usage-toolkit
Use when the user wants a report correlating Claude Code spend with actual work output — git commits, session work, lines of code, and business value — broken down week over week.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-usage-toolkit:claude-usage-reportThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Correlates three data sources — `ccusage` spend, `git log` commit history, and `~/.claude/projects/` session history — into a weekly markdown report showing what was built, what it cost, and what business value it delivered.
Correlates three data sources — ccusage spend, git log commit history, and ~/.claude/projects/ session history — into a weekly markdown report showing what was built, what it cost, and what business value it delivered.
If sessions are spread across multiple workstations (AVD, Linux jump host, local Mac), collect and merge first:
REQUIRED PRE-SKILL: claude-usage-collect
Then substitute CLAUDE_CONFIG_DIR=~/.claude-merged in all ccusage commands and scan ~/.claude-merged/projects/ for session history instead of ~/.claude/projects/.
Check for ccusage before running — install if missing:
if ! which ccusage &>/dev/null; then
npm install -g ccusage
fi
ccusage weekly --json
# or, with merged data:
CLAUDE_CONFIG_DIR=~/.claude-merged ccusage weekly --json
Extract the last N weeks. Each entry has week, totalCost, and modelBreakdowns.
Ask the user for:
~/Documents/git-repos/cspire-launchdeck/)jeremypng)For each subdirectory that is a git repo, pull main and run:
git log --oneline --since="YYYY-MM-DD" --until="YYYY-MM-DD" \
--author="<handle>" --stat
Use a subagent to parallelize across many repos. Skip worktree variants (.arc, .fw, etc.).
Preferred: If a sessions-summary.json was produced by summarize-sessions.sh, read that file directly. Each entry contains: date, project, first_message, last_message, human_messages (all, truncated), tool_calls, message_count, and needs_investigation.
For sessions where needs_investigation: true, read the raw JSONL file to determine content and value. The path is ~/.claude/projects/<encoded-project-path>/<session_id>*.jsonl — match on session_id prefix. Only do this for flagged sessions; for all others use the summary.
Fallback (no summary file): Session files live at ~/.claude/projects/<encoded-path>/*.jsonl. Use file mtime to filter by date range, then read only the first few lines of each file to infer the topic. Skip /clear-only sessions.
One ## Week N — MMM DD–DD | $X,XXX.XX section per week containing:
+Lines / -Lines, bold totals row### repo-name (N commits) with each commit message in a code span### Other session work (no commits)Then a Business Value section at the bottom, followed by a Summary table:
| Week | Dates | Claude Cost | Commits | Lines Added | Lines Removed | Highlights |
For each week, write 2–4 bullet points framed as outcomes, not activity. Ask the user before writing value for anything ambiguous:
Do not guess. Use AskUserQuestion for anything where the framing would materially differ based on the answer.
cspire-launchdeck/launchdeck-base)..arc, .fw, .eks-sg-rfc1918 — these are git worktrees, not separate repos.--author. Without it you'll include teammates' commits.timestamp field in the JSONL.After completing the report, offer to append a COCOMO section using the scc-cocomo skill. Ask the user for their hourly rate. This adds:
OPTIONAL SUB-SKILL: scc-cocomo
Write to a dated markdown file, e.g.:
~/Documents/claude-usage-report-YYYY.md
Add [toc] after the title for navigation in markdown viewers that support it.
npx claudepluginhub csbproserve/claude-usage-toolkit --plugin claude-usage-toolkitSearches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.