[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75WJ5Q4APEX36QNKT4DQS4W":3,"skill-same:01M75WJ5Q4APEX36QNKT4DQS4W":52},{"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":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M75WJ5Q4APEX36QNKT4DQS4W","token-usage",null,"Show Claude Code token usage across sessions — daily, weekly, per-project, and per-session breakdowns. Parses {{HOME_TOOL_DIR}}\u002Fprojects\u002F**\u002F*.jsonl for consumption data. Use when the user asks about token usage, costs, how many tokens were used, session statistics, or wants a usage report.","stevengonsalvez\u002Fainb-toolkit","stevengonsalvez","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9320602?v=4","01M75W59QRYZYANWY3XG8CJB1P","Steven Gonsalvez","01M75W59RD5YW1RT67BDV0EAZF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoken-usage\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: token-usage\ndescription: 'Show Claude Code token usage across sessions — daily, weekly, per-project, and per-session breakdowns. Parses {{HOME_TOOL_DIR}}\u002Fprojects\u002F**\u002F*.jsonl for consumption data. Use when the user asks about token usage, costs, how many tokens were used, session statistics, or wants a usage report.'\nuser-invocable: true\nargument-hint: \"[--days N] [--since YYYY-MM-DD] [--project NAME]\"\n---\n\n# Token Usage\n\nAnalyze Claude Code token consumption across all sessions.\n\n## How to Run\n\n**IMPORTANT: Always use `--format markdown` and display the full output directly to the user as markdown tables. Do NOT summarize or truncate.**\n\nRun the script and display the FULL output as-is:\n\n```bash\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --format markdown [ARGS]\n```\n\nPass through any user-provided arguments (--days, --since, --project, --top-sessions).\n\n### Examples\n\n```bash\n# All time usage\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --format markdown\n\n# Last 7 days\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --days 7 --format markdown\n\n# Since a specific date\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --since 2026-04-01 --format markdown\n\n# Filter to a specific project\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --project shotclubhouse --format markdown\n\n# Top 20 costliest sessions\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --days 30 --top-sessions 20 --format markdown\n\n# JSON output (for piping to jq)\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --format json | jq '.grand_total'\n```\n\n## Display Instructions\n\nAfter running the script:\n1. **Show the ENTIRE markdown output** directly in your response — do not hide it behind a Bash tool call\n2. The output is already formatted as markdown tables — just paste it verbatim\n3. Do NOT add your own summary or interpretation unless the user asks for one\n4. If the output is long, show all of it — the user wants to see the full report\n\n## CLI Flags\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `--days N` | Only include last N days | All time |\n| `--since YYYY-MM-DD` | Only include since this date | All time |\n| `--project NAME` | Filter to project (substring match) | All projects |\n| `--top-sessions N` | Number of top sessions to show | 10 |\n| `--format text\\|markdown\\|json` | Output format | text |\n| `--projects-dir PATH` | Override projects directory | `{{HOME_TOOL_DIR}}\u002Fprojects` |\n\n## Data Source\n\nParses `{{HOME_TOOL_DIR}}\u002Fprojects\u002F**\u002F*.jsonl` — Claude Code's session transcript files. Each `assistant` message contains a `usage` block with `input_tokens`, `cache_creation_input_tokens`, `cache_read_input_tokens`, and `output_tokens`.\n\n## Integration with ainb-tui\n\nThe ainb-tui has a built-in Usage Analytics screen (press `i` from home screen or select \"Stats\" in the sidebar) that provides the same data with a visual bar chart and provider selector. This skill is the CLI-only alternative.\n\n## Notes\n\n- Token counts are RAW — they don't map directly to cost since cache reads are heavily discounted and different models have different pricing\n- The script is pure Python 3 with no external dependencies (uses only stdlib)\n- For cost estimates, multiply by model-specific per-token pricing from Anthropic's pricing page\n","# Token Usage\n\nAnalyze Claude Code token consumption across all sessions.\n\n## How to Run\n\n**IMPORTANT: Always use `--format markdown` and display the full output directly to the user as markdown tables. Do NOT summarize or truncate.**\n\nRun the script and display the FULL output as-is:\n\n```bash\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --format markdown [ARGS]\n```\n\nPass through any user-provided arguments (--days, --since, --project, --top-sessions).\n\n### Examples\n\n```bash\n# All time usage\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --format markdown\n\n# Last 7 days\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --days 7 --format markdown\n\n# Since a specific date\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --since 2026-04-01 --format markdown\n\n# Filter to a specific project\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --project shotclubhouse --format markdown\n\n# Top 20 costliest sessions\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --days 30 --top-sessions 20 --format markdown\n\n# JSON output (for piping to jq)\npython3 {{HOME_TOOL_DIR}}\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py --format json | jq '.grand_total'\n```\n\n## Display Instructions\n\nAfter running the script:\n1. **Show the ENTIRE markdown output** directly in your response — do not hide it behind a Bash tool call\n2. The output is already formatted as markdown tables — just paste it verbatim\n3. Do NOT add your own summary or interpretation unless the user asks for one\n4. If the output is long, show all of it — the user wants to see the full report\n\n## CLI Flags\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `--days N` | Only include last N days | All time |\n| `--since YYYY-MM-DD` | Only include since this date | All time |\n| `--project NAME` | Filter to project (substring match) | All projects |\n| `--top-sessions N` | Number of top sessions to show | 10 |\n| `--format text\\|markdown\\|json` | Output format | text |\n| `--projects-dir PATH` | Override projects directory | `{{HOME_TOOL_DIR}}\u002Fprojects` |\n\n## Data Source\n\nParses `{{HOME_TOOL_DIR}}\u002Fprojects\u002F**\u002F*.jsonl` — Claude Code's session transcript files. Each `assistant` message contains a `usage` block with `input_tokens`, `cache_creation_input_tokens`, `cache_read_input_tokens`, and `output_tokens`.\n\n## Integration with ainb-tui\n\nThe ainb-tui has a built-in Usage Analytics screen (press `i` from home screen or select \"Stats\" in the sidebar) that provides the same data with a visual bar chart and provider selector. This skill is the CLI-only alternative.\n\n## Notes\n\n- Token counts are RAW — they don't map directly to cost since cache reads are heavily discounted and different models have different pricing\n- The script is pure Python 3 with no external dependencies (uses only stdlib)\n- For cost estimates, multiply by model-specific per-token pricing from Anthropic's pricing page\n",{"name":5,"description":7,"argument-hint":24,"user-invocable":25},"[--days N] [--since YYYY-MM-DD] [--project NAME]",true,"main","9cf32d1e636db09530158af14ba301bfa5d401e9","skills\u002Ftoken-usage","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez","stevengonsalvez.com","2026-11-12 00:50:59",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add stevengonsalvez\u002Fainb-toolkit --skill token-usage",{"tool":39,"command":40},"bunx","bunx skills add stevengonsalvez\u002Fainb-toolkit --skill token-usage",{"tool":42,"command":43},"pnpm","pnpm dlx skills add stevengonsalvez\u002Fainb-toolkit --skill token-usage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoken-usage\u002FSKILL.md",[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"scripts\u002Ftoken_usage.py","SCRIPT","脚本",13924,"https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoken-usage\u002Fscripts\u002Ftoken_usage.py",[53,60,67,73,80,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75WK9B8DKVJBJJ4CX2QMJMX","well-formed","Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fclean\u002Fwell-formed\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75WK6ZGDXJJN8879K49QEYG","underscore-tools","Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Funderscore-tools\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75WK524MVT2H9E27ZCEA3HR","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75WJWZBMKR8R60PG3T3MCCC","long-description","Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Flong-description\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75WJVRH3J22WKED7E5D01S8","some-other-name","Fixture skill whose frontmatter name does not match its parent directory name.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fdir-mismatch\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M75WJTC7H5FRP6S129VBSMZC","bad_Name","Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fbad_Name\u002FSKILL.md",[],[]]