[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78BJPB02T1YYYKCTXA565DH":3,"skill-same:01M78BJPB02T1YYYKCTXA565DH":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M78BJPB02T1YYYKCTXA565DH","cost-tracking",null,"Track and report Claude Code token usage, spending, and budgets from a local cost-tracking database. Use when the user asks about costs, spending, usage, tokens, budgets, or cost breakdowns by project, tool, session, or date.","princepatel04477-web\u002Ftrivoxa-group","princepatel04477-web","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F227740714?v=4","01M788ZAJ2KECD5KXVP55PZXKS","Prince Patel","01M788ZAJTCN8YSD737MRSKC5Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fcost-tracking\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cost-tracking\ndescription: Track and report Claude Code token usage, spending, and budgets from a local cost-tracking database. Use when the user asks about costs, spending, usage, tokens, budgets, or cost breakdowns by project, tool, session, or date.\norigin: community\n---\n\n# Cost Tracking\n\nUse this skill to analyze Claude Code cost and usage history from a local SQLite\ndatabase. It is intended for users who already have a cost-tracking hook or\nplugin writing usage rows to `~\u002F.claude-cost-tracker\u002Fusage.db`.\n\nSource: salvaged from stale community PR #1304 by `MayurBhavsar`.\n\n## When to Use\n\n- The user asks \"how much have I spent?\", \"what did this session cost?\", or\n  \"what is my token usage?\"\n- The user mentions budgets, spending limits, overruns, or cost controls.\n- The user wants a cost breakdown by project, tool, session, model, or date.\n- The user wants to compare today against yesterday or inspect a recent trend.\n- The user asks for a CSV export of recent usage records.\n\n## How It Works\n\nFirst verify prerequisites:\n\n```bash\ncommand -v sqlite3 >\u002Fdev\u002Fnull && echo \"sqlite3 available\" || echo \"sqlite3 missing\"\ntest -f ~\u002F.claude-cost-tracker\u002Fusage.db && echo \"Database found\" || echo \"Database not found\"\n```\n\nIf the database is missing, do not fabricate usage data. Tell the user that cost\ntracking is not configured and suggest installing or enabling a trusted local\ncost-tracking hook\u002Fplugin.\n\nThe expected `usage` table usually contains one row per tool call or model\ninteraction. Column names vary by tracker, but the examples below assume:\n\n| Column | Meaning |\n| --- | --- |\n| `timestamp` | ISO timestamp for the usage event |\n| `project` | Project or repository name |\n| `tool_name` | Tool or event name |\n| `input_tokens` | Input token count, when recorded |\n| `output_tokens` | Output token count, when recorded |\n| `cost_usd` | Precomputed cost in USD |\n| `session_id` | Claude Code session identifier |\n| `model` | Model used for the event |\n\nPrefer `cost_usd` over hand-calculating pricing. Model prices and cache pricing\nchange over time, and the tracker should be the source of truth for how each row\nwas priced.\n\n## Examples\n\n### Quick Summary\n\n```bash\nsqlite3 ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT\n    'Today: $' || ROUND(COALESCE(SUM(CASE WHEN date(timestamp) = date('now') THEN cost_usd END), 0), 4) ||\n    ' | Total: $' || ROUND(COALESCE(SUM(cost_usd), 0), 4) ||\n    ' | Calls: ' || COUNT(*) ||\n    ' | Sessions: ' || COUNT(DISTINCT session_id)\n  FROM usage;\n\"\n```\n\n### Cost By Project\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT project, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls\n  FROM usage\n  GROUP BY project\n  ORDER BY cost DESC;\n\"\n```\n\n### Cost By Tool\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT tool_name, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls\n  FROM usage\n  GROUP BY tool_name\n  ORDER BY cost DESC;\n\"\n```\n\n### Last Seven Days\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT date(timestamp) AS date, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls\n  FROM usage\n  GROUP BY date(timestamp)\n  ORDER BY date DESC\n  LIMIT 7;\n\"\n```\n\n### Session Drilldown\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT session_id,\n    MIN(timestamp) AS started,\n    MAX(timestamp) AS ended,\n    ROUND(SUM(cost_usd), 4) AS cost,\n    COUNT(*) AS calls\n  FROM usage\n  GROUP BY session_id\n  ORDER BY started DESC\n  LIMIT 10;\n\"\n```\n\n## Reporting Guidance\n\nWhen presenting cost data, include:\n\n1. Today's spend and yesterday comparison.\n2. Total spend across the tracked database.\n3. Top projects ranked by cost.\n4. Top tools ranked by cost.\n5. Session count and average cost per session when enough data exists.\n\nFor small amounts, format currency with four decimal places. For larger amounts,\ntwo decimals are enough.\n\n## Anti-Patterns\n\n- Do not estimate costs from raw token counts when `cost_usd` is present.\n- Do not assume the database exists without checking.\n- Do not run unbounded `SELECT *` exports on large databases.\n- Do not hard-code current model pricing in user-facing answers.\n- Do not recommend installing unreviewed hooks or plugins that execute arbitrary\n  code.\n\n## Related\n\n- `\u002Fcost-report` - Command-form report using the same database.\n- `cost-aware-llm-pipeline` - Model-routing and budget-design patterns.\n- `token-budget-advisor` - Context and token-budget planning.\n- `strategic-compact` - Context compaction to reduce repeated token spend.\n","# Cost Tracking\n\nUse this skill to analyze Claude Code cost and usage history from a local SQLite\ndatabase. It is intended for users who already have a cost-tracking hook or\nplugin writing usage rows to `~\u002F.claude-cost-tracker\u002Fusage.db`.\n\nSource: salvaged from stale community PR #1304 by `MayurBhavsar`.\n\n## When to Use\n\n- The user asks \"how much have I spent?\", \"what did this session cost?\", or\n  \"what is my token usage?\"\n- The user mentions budgets, spending limits, overruns, or cost controls.\n- The user wants a cost breakdown by project, tool, session, model, or date.\n- The user wants to compare today against yesterday or inspect a recent trend.\n- The user asks for a CSV export of recent usage records.\n\n## How It Works\n\nFirst verify prerequisites:\n\n```bash\ncommand -v sqlite3 >\u002Fdev\u002Fnull && echo \"sqlite3 available\" || echo \"sqlite3 missing\"\ntest -f ~\u002F.claude-cost-tracker\u002Fusage.db && echo \"Database found\" || echo \"Database not found\"\n```\n\nIf the database is missing, do not fabricate usage data. Tell the user that cost\ntracking is not configured and suggest installing or enabling a trusted local\ncost-tracking hook\u002Fplugin.\n\nThe expected `usage` table usually contains one row per tool call or model\ninteraction. Column names vary by tracker, but the examples below assume:\n\n| Column | Meaning |\n| --- | --- |\n| `timestamp` | ISO timestamp for the usage event |\n| `project` | Project or repository name |\n| `tool_name` | Tool or event name |\n| `input_tokens` | Input token count, when recorded |\n| `output_tokens` | Output token count, when recorded |\n| `cost_usd` | Precomputed cost in USD |\n| `session_id` | Claude Code session identifier |\n| `model` | Model used for the event |\n\nPrefer `cost_usd` over hand-calculating pricing. Model prices and cache pricing\nchange over time, and the tracker should be the source of truth for how each row\nwas priced.\n\n## Examples\n\n### Quick Summary\n\n```bash\nsqlite3 ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT\n    'Today: $' || ROUND(COALESCE(SUM(CASE WHEN date(timestamp) = date('now') THEN cost_usd END), 0), 4) ||\n    ' | Total: $' || ROUND(COALESCE(SUM(cost_usd), 0), 4) ||\n    ' | Calls: ' || COUNT(*) ||\n    ' | Sessions: ' || COUNT(DISTINCT session_id)\n  FROM usage;\n\"\n```\n\n### Cost By Project\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT project, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls\n  FROM usage\n  GROUP BY project\n  ORDER BY cost DESC;\n\"\n```\n\n### Cost By Tool\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT tool_name, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls\n  FROM usage\n  GROUP BY tool_name\n  ORDER BY cost DESC;\n\"\n```\n\n### Last Seven Days\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT date(timestamp) AS date, ROUND(SUM(cost_usd), 4) AS cost, COUNT(*) AS calls\n  FROM usage\n  GROUP BY date(timestamp)\n  ORDER BY date DESC\n  LIMIT 7;\n\"\n```\n\n### Session Drilldown\n\n```bash\nsqlite3 -header -column ~\u002F.claude-cost-tracker\u002Fusage.db \"\n  SELECT session_id,\n    MIN(timestamp) AS started,\n    MAX(timestamp) AS ended,\n    ROUND(SUM(cost_usd), 4) AS cost,\n    COUNT(*) AS calls\n  FROM usage\n  GROUP BY session_id\n  ORDER BY started DESC\n  LIMIT 10;\n\"\n```\n\n## Reporting Guidance\n\nWhen presenting cost data, include:\n\n1. Today's spend and yesterday comparison.\n2. Total spend across the tracked database.\n3. Top projects ranked by cost.\n4. Top tools ranked by cost.\n5. Session count and average cost per session when enough data exists.\n\nFor small amounts, format currency with four decimal places. For larger amounts,\ntwo decimals are enough.\n\n## Anti-Patterns\n\n- Do not estimate costs from raw token counts when `cost_usd` is present.\n- Do not assume the database exists without checking.\n- Do not run unbounded `SELECT *` exports on large databases.\n- Do not hard-code current model pricing in user-facing answers.\n- Do not recommend installing unreviewed hooks or plugins that execute arbitrary\n  code.\n\n## Related\n\n- `\u002Fcost-report` - Command-form report using the same database.\n- `cost-aware-llm-pipeline` - Model-routing and budget-design patterns.\n- `token-budget-advisor` - Context and token-budget planning.\n- `strategic-compact` - Context compaction to reduce repeated token spend.\n",{"name":5,"origin":24,"description":7},"community","master","877653a671c51fae6476bd9f0d34ee6c408d68b9",".github\u002Fskills\u002Fcost-tracking","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group","https:\u002F\u002Ftrivoxa-group.vercel.app","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web","2026-08-01 17:29:31",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add princepatel04477-web\u002Ftrivoxa-group --skill cost-tracking",{"tool":38,"command":39},"bunx","bunx skills add princepatel04477-web\u002Ftrivoxa-group --skill cost-tracking",{"tool":41,"command":42},"pnpm","pnpm dlx skills add princepatel04477-web\u002Ftrivoxa-group --skill cost-tracking","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fcost-tracking\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M78G4Z5RFJ72G536XYPC77PG","zustand-store-ts","Create Zustand stores following established patterns with proper TypeScript types and middleware.","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M78G4WQMHRST36KDP7AV3NR3","zoom-automation","Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fzoom-automation\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M78G4T37F4SPS7M4KT0A8JJB","zoho-crm-automation","Automate Zoho CRM tasks via Rube MCP (Composio): create\u002Fupdate records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fzoho-crm-automation\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M78G4QAJMF71KD1G38MNDQYK","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M78G4MS3WE96MH5P561KFY95","zipai-optimizer","Adaptive token optimizer: intelligent filtering, surgical output, ambiguity-first, context-window-aware, VCS-aware, MCP-aware.","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fzipai-optimizer\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M78G4GZ0T47C6929V9CVH1AK","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fprincepatel04477-web\u002Ftrivoxa-group\u002Fblob\u002Fmaster\u002F.github\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[]]