[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CS32VTVTW22HKEPDH63C4S":3,"skill-same:01M7CS32VTVTW22HKEPDH63C4S":48},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CS32VTVTW22HKEPDH63C4S","cost-tracking",null,"Track and report Claude Code token usage, spending, and budgets from the local ECC cost-tracker metrics log. Use when the user asks about costs, spending, usage, tokens, budgets, or cost breakdowns by model, session, or date.","Henrique1601\u002FSkiilsToIAs","Henrique1601","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F92006691?v=4","01M7CRXVT0GVXVK80JT1GR687S","Henrique Bezerra Dos Santos","01M7CRXVTN5Y8TMWJ1MDSKCQ1T",0,"MIT","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\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 the local ECC cost-tracker metrics log. Use when the user asks about costs, spending, usage, tokens, budgets, or cost breakdowns by model, session, or date.\nmetadata:\n  origin: community\n---\n\n# Cost Tracking\n\nUse this skill to analyze Claude Code cost and usage history from the metrics log\nthat ECC's `stop:cost-tracker` hook writes.\n\n## Where the data lives\n\nThe tracker appends one JSON object per session-stop to\n`~\u002F.claude\u002Fmetrics\u002Fcosts.jsonl`. Each row is a **cumulative snapshot for that\nsession**, so to total spend you take the **latest row per `session_id`** and\nsum across sessions — summing every row multiply-counts.\n\nRow schema:\n\n| Field | Meaning |\n| --- | --- |\n| `timestamp` | ISO timestamp of the snapshot |\n| `session_id` | Claude Code session identifier |\n| `transcript_path` | Path to the session transcript |\n| `model` | Model used |\n| `input_tokens` \u002F `output_tokens` | Token counts |\n| `cache_write_tokens` \u002F `cache_read_tokens` | Prompt-cache token counts |\n| `estimated_cost_usd` | Precomputed cumulative cost in USD for the session |\n\nPrefer `estimated_cost_usd` over hand-calculating pricing — model and cache\nprices change, and the tracker is the source of truth.\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 model, session, or date, or a CSV export.\n\n## How It Works\n\nFirst verify the log exists (use `node`, not `sqlite3` — the tracker writes\nJSONL, and `node` is cross-platform):\n\n```bash\nnode -e 'const fs=require(\"fs\"),os=require(\"os\"),p=require(\"path\");const f=p.join(os.homedir(),\".claude\",\"metrics\",\"costs.jsonl\");console.log(fs.existsSync(f)?\"cost log found\":\"cost log not found: \"+f)'\n```\n\nIf the log is missing, do not fabricate usage data. Tell the user that cost\ntracking populates after the first session ends with the `stop:cost-tracker`\nhook enabled.\n\n## Example — summary, by model, last 7 days\n\n```bash\nnode -e '\nconst fs=require(\"fs\"),os=require(\"os\"),path=require(\"path\");\nconst f=path.join(os.homedir(),\".claude\",\"metrics\",\"costs.jsonl\");\nif(!fs.existsSync(f)){console.log(\"cost log not found: \"+f);process.exit(0);}\nconst rows=fs.readFileSync(f,\"utf8\").split(\u002F\\r?\\n\u002F).filter(Boolean).map(l=>{try{return JSON.parse(l)}catch{return null}}).filter(Boolean);\nconst bySession=new Map();\nfor(const r of rows){const k=r.session_id||r.transcript_path||r.timestamp;const p=bySession.get(k);if(!p||String(r.timestamp)>String(p.timestamp))bySession.set(k,r);}\nconst latest=[...bySession.values()];\nconst cost=r=>Number(r.estimated_cost_usd)||0, day=r=>String(r.timestamp||\"\").slice(0,10), sum=a=>a.reduce((s,r)=>s+cost(r),0), f4=n=>\"$\"+n.toFixed(4);\nconst today=new Date().toISOString().slice(0,10), yest=new Date(Date.now()-864e5).toISOString().slice(0,10);\nconsole.log(\"today: \"+f4(sum(latest.filter(r=>day(r)===today)))+\" | yesterday: \"+f4(sum(latest.filter(r=>day(r)===yest)))+\" | total: \"+f4(sum(latest))+\" (\"+latest.length+\" sessions)\");\nconst m=new Map();for(const r of latest){const k=r.model||\"(unknown)\";m.set(k,(m.get(k)||0)+cost(r));}\nconsole.log(\"by model:\");[...m.entries()].sort((a,b)=>b[1]-a[1]).forEach(([k,v])=>console.log(\"  \"+f4(v)+\"  \"+k));\n'\n```\n\nFor a session drilldown or CSV export, iterate the same `latest` set (or the raw\nrows for CSV) and print the fields you need.\n\n## Reporting Guidance\n\nWhen presenting cost data, include today's spend vs yesterday, total across all\nsessions, a by-model breakdown, and session count. Format sub-dollar amounts\nwith four decimals, larger amounts with two.\n\n## Anti-Patterns\n\n- Do not sum every row — they are cumulative per session; reduce to the latest\n  row per `session_id` first.\n- Do not estimate costs from raw token counts when `estimated_cost_usd` is present.\n- Do not assume the log exists without checking.\n- Do not hard-code current model pricing in user-facing answers.\n- Do not recommend installing unreviewed hooks or plugins that execute arbitrary code.\n\n## Related\n\n- `\u002Fcost-report` - Command-form report over the same metrics log.\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 the metrics log\nthat ECC's `stop:cost-tracker` hook writes.\n\n## Where the data lives\n\nThe tracker appends one JSON object per session-stop to\n`~\u002F.claude\u002Fmetrics\u002Fcosts.jsonl`. Each row is a **cumulative snapshot for that\nsession**, so to total spend you take the **latest row per `session_id`** and\nsum across sessions — summing every row multiply-counts.\n\nRow schema:\n\n| Field | Meaning |\n| --- | --- |\n| `timestamp` | ISO timestamp of the snapshot |\n| `session_id` | Claude Code session identifier |\n| `transcript_path` | Path to the session transcript |\n| `model` | Model used |\n| `input_tokens` \u002F `output_tokens` | Token counts |\n| `cache_write_tokens` \u002F `cache_read_tokens` | Prompt-cache token counts |\n| `estimated_cost_usd` | Precomputed cumulative cost in USD for the session |\n\nPrefer `estimated_cost_usd` over hand-calculating pricing — model and cache\nprices change, and the tracker is the source of truth.\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 model, session, or date, or a CSV export.\n\n## How It Works\n\nFirst verify the log exists (use `node`, not `sqlite3` — the tracker writes\nJSONL, and `node` is cross-platform):\n\n```bash\nnode -e 'const fs=require(\"fs\"),os=require(\"os\"),p=require(\"path\");const f=p.join(os.homedir(),\".claude\",\"metrics\",\"costs.jsonl\");console.log(fs.existsSync(f)?\"cost log found\":\"cost log not found: \"+f)'\n```\n\nIf the log is missing, do not fabricate usage data. Tell the user that cost\ntracking populates after the first session ends with the `stop:cost-tracker`\nhook enabled.\n\n## Example — summary, by model, last 7 days\n\n```bash\nnode -e '\nconst fs=require(\"fs\"),os=require(\"os\"),path=require(\"path\");\nconst f=path.join(os.homedir(),\".claude\",\"metrics\",\"costs.jsonl\");\nif(!fs.existsSync(f)){console.log(\"cost log not found: \"+f);process.exit(0);}\nconst rows=fs.readFileSync(f,\"utf8\").split(\u002F\\r?\\n\u002F).filter(Boolean).map(l=>{try{return JSON.parse(l)}catch{return null}}).filter(Boolean);\nconst bySession=new Map();\nfor(const r of rows){const k=r.session_id||r.transcript_path||r.timestamp;const p=bySession.get(k);if(!p||String(r.timestamp)>String(p.timestamp))bySession.set(k,r);}\nconst latest=[...bySession.values()];\nconst cost=r=>Number(r.estimated_cost_usd)||0, day=r=>String(r.timestamp||\"\").slice(0,10), sum=a=>a.reduce((s,r)=>s+cost(r),0), f4=n=>\"$\"+n.toFixed(4);\nconst today=new Date().toISOString().slice(0,10), yest=new Date(Date.now()-864e5).toISOString().slice(0,10);\nconsole.log(\"today: \"+f4(sum(latest.filter(r=>day(r)===today)))+\" | yesterday: \"+f4(sum(latest.filter(r=>day(r)===yest)))+\" | total: \"+f4(sum(latest))+\" (\"+latest.length+\" sessions)\");\nconst m=new Map();for(const r of latest){const k=r.model||\"(unknown)\";m.set(k,(m.get(k)||0)+cost(r));}\nconsole.log(\"by model:\");[...m.entries()].sort((a,b)=>b[1]-a[1]).forEach(([k,v])=>console.log(\"  \"+f4(v)+\"  \"+k));\n'\n```\n\nFor a session drilldown or CSV export, iterate the same `latest` set (or the raw\nrows for CSV) and print the fields you need.\n\n## Reporting Guidance\n\nWhen presenting cost data, include today's spend vs yesterday, total across all\nsessions, a by-model breakdown, and session count. Format sub-dollar amounts\nwith four decimals, larger amounts with two.\n\n## Anti-Patterns\n\n- Do not sum every row — they are cumulative per session; reduce to the latest\n  row per `session_id` first.\n- Do not estimate costs from raw token counts when `estimated_cost_usd` is present.\n- Do not assume the log exists without checking.\n- Do not hard-code current model pricing in user-facing answers.\n- Do not recommend installing unreviewed hooks or plugins that execute arbitrary code.\n\n## Related\n\n- `\u002Fcost-report` - Command-form report over the same metrics log.\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,"metadata":24,"description":7},{"origin":25},"community","main","a73152352c0612252131e5cf84e91312a6cf17dc","ai-agents\u002Fcost-tracking","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs","https:\u002F\u002Fgithub.com\u002FHenrique1601","https:\u002F\u002Fbezerraportifolio.netlify.app\u002F","Full Stack Developer | React, Next.js, TypeScript, Node.js & IA | Construindo produtos digitais e soluções SaaS","2026-11-15 02:56:04",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Henrique1601\u002FSkiilsToIAs --skill cost-tracking",{"tool":40,"command":41},"bunx","bunx skills add Henrique1601\u002FSkiilsToIAs --skill cost-tracking",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Henrique1601\u002FSkiilsToIAs --skill cost-tracking","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\u002Fcost-tracking\u002FSKILL.md",true,[],[49,56,63,71,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7E2ANBW9V6AVX5JXNCEAWF8","rag-architect-agent","Agente Arquiteto de RAG, Embeddings & Busca Vetorial. Especialista em design e implementação de pipelines de Retrieval-Augmented Generation de alta fidelidade: chunking semântico, modelagem pgvector no PostgreSQL (Neon\u002FSupabase), busca híbrida (cosseno + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fcustom-agents\u002Frag-architect-agent\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7E29KKF8R02ZRGYE2MJM67G","rag-architecture-patterns","Padrões arquiteturais e implementação de pipelines RAG (Retrieval-Augmented Generation) de alta fidelidade para qualquer projeto ou sistema. Cobre chunking semântico, embeddings, busca híbrida (pgvector + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\u002Frag-architecture-patterns\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CWRA8E3BJ7CPY8N8EG28J1","skill-repair","Use this to fix and re-install agent skills that have failed installation.\nThis skill provides the necessary context and permissions to surgically update\nthe `manifest.json` after a fix has been applied.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fskill-repair\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CWR66FZP8FA47WVZ4Z2EXC","security-scan","Scan your Claude Code configuration (.claude\u002F directory) for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Checks CLAUDE.md, settings.json, MCP servers, hooks, and agent definitions.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-scan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CWR0QPY58QPTR1P759TFNG","security-review","Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment\u002Fsensitive features. Provides comprehensive security checklist and patterns.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CWQXCE40XWT4FZ3VWZFGDP","security-bounty-hunter","Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-bounty-hunter\u002FSKILL.md",[],[]]