architect
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with…
Deep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model breakdown. Reads Claude Code's native session data for exact numbers. Complements /dashboard with focused cost views.
Claude Code
$ npx -y skills add SethGammon/Citadel --skill cost --agent claude-code
Codex
$ npx skills add SethGammon/Citadel --skill cost -a codex -y
Cursor
$ npx skills add SethGammon/Citadel --skill cost -a cursor -y
Gemini CLI
$ npx skills add SethGammon/Citadel --skill cost -a gemini-cli -y
GitHub Copilot
$ npx skills add SethGammon/Citadel --skill cost -a github-copilot -y
OpenCode
$ npx skills add SethGammon/Citadel --skill cost -a opencode -y
Windsurf
$ npx skills add SethGammon/Citadel --skill cost -a windsurf -y
name: cost license: MIT description: >- Deep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model breakdown. Reads Claude Code's native session data for exact numbers. Complements /dashboard with focused cost views. user-invocable: true auto-trigger: false trigger_keywords: - cost - costs - cost breakdown - campaign cost - token usage - burn rate - model breakdown last-updated: 2026-03-30
Optional arguments parsed from user message:
Run the session-tokens.js script to get real token data:
node scripts/session-tokens.js # current/latest session node scripts/session-tokens.js --today # today's sessions node scripts/session-tokens.js --all # all sessions (use for week/all/campaign)
Also read:
If `session-tokens.js` is not available or fails, fall back to session-costs.jsonl data and clearly mark output as "(estimated)".
**Current session (`/cost` with no args):**
=== Session Cost Report ===
Session: {sessionId (first 8 chars)}
Started: {relative time} ({absolute time})
Duration: {minutes} min
Tokens:
Input: {N} tokens
Output: {N} tokens
Cache creation: {N} tokens
Cache read: {N} tokens
Total: {N} tokens
Cost: ${total}
Burn rate: ${rate}/min
Messages: {N} ({N} main + {N} across {N} subagents)
Model breakdown:
claude-opus-4-6: {N} messages (${cost}, {pct}% of spend)
claude-haiku-4-5: {N} messages (${cost}, {pct}% of spend)
Cache efficiency: {pct}% of input tokens served from cache
(Higher = more cost-efficient. Cache reads cost 10x less than fresh input.)
Pricing source: scripts/pricing.json (version {version})**Today / Week / All (`/cost today`, `/cost week`, `/cost all`):**
=== Cost Report: {Today / This Week / All Time} ===
Summary:
Sessions: {N}
Total cost: ${total}
Subagents spawned: {N}
Total messages: {N}
Top 5 sessions by cost:
${cost} {duration}min {agents} agents {msgs} msgs {date}
${cost} {duration}min {agents} agents {msgs} msgs {date}
...
By campaign (from session-costs.jsonl):
{slug}: ${cost} across {N} sessions
_unattached: ${cost} across {N} sessions
Average session: ${avg_cost} | ${avg_rate}/min | {avg_duration} min
For historical charts and billing-window views: npx ccusage**Campaign (`/cost campaign {slug}`):**
=== Campaign Cost: {slug} ===
Total: ${cost} across {N} sessions ({N} agents, {N} min)
Average session: ${avg}
Sessions:
{date}: ${cost} ({duration} min, {agents} agents, {msgs} msgs)
{date}: ${cost} ({duration} min, {agents} agents, {msgs} msgs)
...After the cost data, add one of these contextual lines based on the numbers:
could be restructured into smaller focused sessions."
results tend to have lower cache efficiency."
available when sessions complete and Claude Code writes session JSONL files."
**If scripts/session-tokens.js does not exist:** Fall back to session-costs.jsonl data. Show estimated costs with "(est)" marker.
**If no session data exists:**
No session data found. Cost tracking requires Claude Code session files at ~/.claude/projects/. These are created automatically by Claude Code.
**If pricing.json is missing or unreadable:** Use hardcoded pricing in session-tokens.js. Note: "Using built-in pricing (pricing.json not found)."
**If user asks about Pro/Max subscription costs:**
Note: Pro/Max subscribers pay a flat monthly fee, not per-token. The token counts shown here represent your usage volume, not billing. For rate limit awareness, token throughput matters more than dollar cost.
**Disclosure:** "Reading telemetry and session data. No files modified." **Reversibility:** green — read-only; no files modified **Trust gates:**
An open-source operating layer for Claude Code and OpenAI Codex. Citadel routes requests, preserves repository state between sessions, coordinates parallel work, applies repository safeguards, and records evidence and handoffs around the coding agent you
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with…
Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and…
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid…
Intake-to-delivery pipeline. Processes pending items from .planning/intake/: briefs new ideas, executes approved work through…
End-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or feature…
Creates new skills from the user's repeating patterns. Interview-driven: discovers the task, analyzes failure modes, generates a…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.