[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74ABFB36R493ZGJ0AFHD3M4":3,"skill-same:01M74ABFB36R493ZGJ0AFHD3M4":56},{"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":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M74ABFB36R493ZGJ0AFHD3M4","anthropic-enterprise-analytics",null,"Pull Anthropic's Admin API usage_report into ~\u002F.claude\u002Fanalytics\u002F so brain-digest can reconcile estimated cost (from session JSONL list-price math) against actual billed cost (from Anthropic). Closes the estimated-vs-billed gap that any operator running on Pro\u002FMax\u002FEnterprise has.","CarlosCaPe\u002Foctorato","CarlosCaPe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39838249?v=4","01M72WXX4ZRR8MBH1EP1QND2FQ","dataqbs","01M72WXX5NA7YCKRSJ54GW1GQ8",18,"MIT","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fanthropic-enterprise-analytics\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: anthropic-enterprise-analytics\ndescription: \"Pull Anthropic's Admin API usage_report into ~\u002F.claude\u002Fanalytics\u002F so brain-digest can reconcile estimated cost (from session JSONL list-price math) against actual billed cost (from Anthropic). Closes the estimated-vs-billed gap that any operator running on Pro\u002FMax\u002FEnterprise has.\"\nmetadata:\n  short-description: \"Vendor-side cost truth — pulls per-user \u002F per-key actuals from the Anthropic Admin API and reconciles them with the brain's own estimate\"\n---\n\n# Anthropic Enterprise Analytics — ingestion\n\n## What this skill is\n\nThe fourth and final block of the FinOps pipeline. The first three\n(per-arm rollup, cost-spike watchdog, budget caps) all run on the\nbrain's *estimated* USD — list-price math applied to token counts read\nfrom native Claude Code session JSONLs.\n\nThe estimate is good enough for budget caps and spike detection, but it\nis **not** what Anthropic actually bills the operator. The Admin API\nexposes the truth: per-user, per-API-key, per-day cost figures with\nAnthropic's actual rate card applied (including any enterprise\ndiscounts).\n\nThis skill closes the gap. It pulls the Admin API daily, writes the\ndata to a private directory, and brain-digest renders a reconciliation\nrow alongside the per-arm estimate.\n\n## When to use\n\n- You are on **Anthropic Enterprise \u002F Team** with admin scope on the\n  organization (the regular per-user API key won't work).\n- You want the brain digest to surface \"estimated $X, billed $Y, delta\n  Z%\" so you catch any drift between the brain's list-price math and\n  Anthropic's actual invoice — usually drift indicates either a model\n  pricing change you haven't picked up in `_pricing.py` or a cache-read\n  classification mismatch.\n- You want to bill clients against *actual* spend, not estimated.\n\nIf you are on Pro\u002FMax only, this skill is dormant — the script exits\ncleanly with \"not configured\" and the rest of the FinOps pipeline keeps\nrunning on estimates.\n\n## How to set up\n\n### 1. Mint an Admin API key\n\nIn the Anthropic Console → **Settings → API keys → Admin keys**. Create\none with scope sufficient to read `usage_report`. Store it locally:\n\n```bash\necho 'export ANTHROPIC_ADMIN_API_KEY=\"sk-ant-admin-...\"' >> ~\u002F.profile\n# (or your shell's equivalent — never commit this to any repo)\n```\n\nIf your account spans multiple organizations, also set\n`ANTHROPIC_ORG_ID`.\n\n### 2. Run it once manually to verify\n\n```bash\npython3 ~\u002F.claude\u002Fscripts\u002Fanthropic-analytics-pull.py --dry-run\n# Confirms env vars + the URL it would hit.\n\npython3 ~\u002F.claude\u002Fscripts\u002Fanthropic-analytics-pull.py --days 7\n# Writes ~\u002F.claude\u002Fanalytics\u002Fanthropic-\u003Ctoday>.jsonl with 7 days of rows.\n```\n\n### 3. Schedule the daily pull\n\nAdd to your crontab (next to the brain-digest cron):\n\n```cron\n# Anthropic Admin Analytics — daily reconciliation pull at 09:30 MX local\n30 15 * * * \u002Fusr\u002Fbin\u002Fpython3 ~\u002F.claude\u002Fscripts\u002Fanthropic-analytics-pull.py \\\n  >> ~\u002F.claude\u002Fanalytics\u002Fcron.log 2>&1\n```\n\nThe cron runs *after* brain-digest (which fires at 15:00 UTC), so the\nreconciliation lands on the next morning's digest.\n\n### 4. Brain-digest reconciliation\n\n`brain-digest.py` automatically reads the latest\n`analytics\u002Fanthropic-*.jsonl` file (if present) and adds a row to the\nCost section showing **Estimated (Octorato) vs Billed (Anthropic)** and\nthe delta percentage. If the delta is >20% for two consecutive days, a\nnote flags it for operator review (drift likely indicates a stale\npricing dict in `_pricing.py`).\n\n## What goes in analytics\u002F\n\nEach pull writes one JSONL line per usage row returned by the Admin\nAPI. The exact schema is whatever Anthropic returns — we pass it\nthrough verbatim so the operator doesn't lose information when\nAnthropic adds fields. Typical fields per Anthropic's docs:\n\n- `date` or `time_bucket`\n- `model`\n- `tokens.input`, `tokens.output`, `tokens.cache_creation`,\n  `tokens.cache_read`\n- `usd_amount` or `usd_cost`\n- `api_key_id` (anonymized)\n\nThe directory is **gitignored** (`\u002Fanalytics\u002F` rule in `~\u002F.claude\u002F.gitignore`)\nbecause it contains vendor billing data — never enters the public brain\nrepo.\n\n## Anti-patterns\n\n- **Committing the admin key.** It grants org-wide usage visibility.\n  Anthropic publishes an audit trail of admin-key reads; rotate\n  immediately on accidental commit.\n- **Skipping the dry-run.** The Admin API endpoint has changed once\n  already (early 2026); a dry-run catches a stale base URL before the\n  cron is firing daily.\n- **Relying on this for active enforcement.** The Admin API is an\n  *after-the-fact* report — a runaway agent burning $5000 in an hour\n  shows up on tomorrow's pull, not in time to stop. That's what\n  `budget-check.py` (Feature 3) is for; this skill is the truth-table,\n  not the brake pedal.\n\n## Lessons Learned\n\n\u003C!-- Append as the operator runs reconciliations and discovers drift\npatterns or schema changes in the Anthropic Admin API. -->\n","# Anthropic Enterprise Analytics — ingestion\n\n## What this skill is\n\nThe fourth and final block of the FinOps pipeline. The first three\n(per-arm rollup, cost-spike watchdog, budget caps) all run on the\nbrain's *estimated* USD — list-price math applied to token counts read\nfrom native Claude Code session JSONLs.\n\nThe estimate is good enough for budget caps and spike detection, but it\nis **not** what Anthropic actually bills the operator. The Admin API\nexposes the truth: per-user, per-API-key, per-day cost figures with\nAnthropic's actual rate card applied (including any enterprise\ndiscounts).\n\nThis skill closes the gap. It pulls the Admin API daily, writes the\ndata to a private directory, and brain-digest renders a reconciliation\nrow alongside the per-arm estimate.\n\n## When to use\n\n- You are on **Anthropic Enterprise \u002F Team** with admin scope on the\n  organization (the regular per-user API key won't work).\n- You want the brain digest to surface \"estimated $X, billed $Y, delta\n  Z%\" so you catch any drift between the brain's list-price math and\n  Anthropic's actual invoice — usually drift indicates either a model\n  pricing change you haven't picked up in `_pricing.py` or a cache-read\n  classification mismatch.\n- You want to bill clients against *actual* spend, not estimated.\n\nIf you are on Pro\u002FMax only, this skill is dormant — the script exits\ncleanly with \"not configured\" and the rest of the FinOps pipeline keeps\nrunning on estimates.\n\n## How to set up\n\n### 1. Mint an Admin API key\n\nIn the Anthropic Console → **Settings → API keys → Admin keys**. Create\none with scope sufficient to read `usage_report`. Store it locally:\n\n```bash\necho 'export ANTHROPIC_ADMIN_API_KEY=\"sk-ant-admin-...\"' >> ~\u002F.profile\n# (or your shell's equivalent — never commit this to any repo)\n```\n\nIf your account spans multiple organizations, also set\n`ANTHROPIC_ORG_ID`.\n\n### 2. Run it once manually to verify\n\n```bash\npython3 ~\u002F.claude\u002Fscripts\u002Fanthropic-analytics-pull.py --dry-run\n# Confirms env vars + the URL it would hit.\n\npython3 ~\u002F.claude\u002Fscripts\u002Fanthropic-analytics-pull.py --days 7\n# Writes ~\u002F.claude\u002Fanalytics\u002Fanthropic-\u003Ctoday>.jsonl with 7 days of rows.\n```\n\n### 3. Schedule the daily pull\n\nAdd to your crontab (next to the brain-digest cron):\n\n```cron\n# Anthropic Admin Analytics — daily reconciliation pull at 09:30 MX local\n30 15 * * * \u002Fusr\u002Fbin\u002Fpython3 ~\u002F.claude\u002Fscripts\u002Fanthropic-analytics-pull.py \\\n  >> ~\u002F.claude\u002Fanalytics\u002Fcron.log 2>&1\n```\n\nThe cron runs *after* brain-digest (which fires at 15:00 UTC), so the\nreconciliation lands on the next morning's digest.\n\n### 4. Brain-digest reconciliation\n\n`brain-digest.py` automatically reads the latest\n`analytics\u002Fanthropic-*.jsonl` file (if present) and adds a row to the\nCost section showing **Estimated (Octorato) vs Billed (Anthropic)** and\nthe delta percentage. If the delta is >20% for two consecutive days, a\nnote flags it for operator review (drift likely indicates a stale\npricing dict in `_pricing.py`).\n\n## What goes in analytics\u002F\n\nEach pull writes one JSONL line per usage row returned by the Admin\nAPI. The exact schema is whatever Anthropic returns — we pass it\nthrough verbatim so the operator doesn't lose information when\nAnthropic adds fields. Typical fields per Anthropic's docs:\n\n- `date` or `time_bucket`\n- `model`\n- `tokens.input`, `tokens.output`, `tokens.cache_creation`,\n  `tokens.cache_read`\n- `usd_amount` or `usd_cost`\n- `api_key_id` (anonymized)\n\nThe directory is **gitignored** (`\u002Fanalytics\u002F` rule in `~\u002F.claude\u002F.gitignore`)\nbecause it contains vendor billing data — never enters the public brain\nrepo.\n\n## Anti-patterns\n\n- **Committing the admin key.** It grants org-wide usage visibility.\n  Anthropic publishes an audit trail of admin-key reads; rotate\n  immediately on accidental commit.\n- **Skipping the dry-run.** The Admin API endpoint has changed once\n  already (early 2026); a dry-run catches a stale base URL before the\n  cron is firing daily.\n- **Relying on this for active enforcement.** The Admin API is an\n  *after-the-fact* report — a runaway agent burning $5000 in an hour\n  shows up on tomorrow's pull, not in time to stop. That's what\n  `budget-check.py` (Feature 3) is for; this skill is the truth-table,\n  not the brake pedal.\n\n## Lessons Learned\n\n\u003C!-- Append as the operator runs reconciliations and discovers drift\npatterns or schema changes in the Anthropic Admin API. -->\n",{"name":5,"metadata":24,"description":7},{"short-description":25},"Vendor-side cost truth — pulls per-user \u002F per-key actuals from the Anthropic Admin API and reconciles them with the brain's own estimate","master","b4414608cd5a3f87d1525b518f1c6add8363540d","skills\u002Fanthropic-enterprise-analytics",6,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato","https:\u002F\u002Fwww.dataqbs.com\u002Foctorato","https:\u002F\u002Fgithub.com\u002FCarlosCaPe","www.dataqbs.com"," AI-powered data engineering\r\n& consulting\r\n\r\nWe build data platforms that turn complexity into clarity — from cloud architecture and ETL pipelines to AI-driven","2026-11-14 00:21:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add CarlosCaPe\u002Foctorato --skill anthropic-enterprise-analytics",{"tool":42,"command":43},"bunx","bunx skills add CarlosCaPe\u002Foctorato --skill anthropic-enterprise-analytics",{"tool":45,"command":46},"pnpm","pnpm dlx skills add CarlosCaPe\u002Foctorato --skill anthropic-enterprise-analytics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fanthropic-enterprise-analytics\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"skill.json","REFERENCE","参考文档",409,"https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fanthropic-enterprise-analytics\u002Fskill.json",[57,66,74,81,89,97],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M74EVAA4A4B4AKR5TT732GP4","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M74EV4WMRDKP2NQS4YWR8PXH","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M74EV05MHTXKEXD4B2QJEYTF","workspace-skill-discovery","Discover and include ALL skills across the workspace — not just global ones. Use at the start of every session or when the user asks about available skills. Ensures project-level skills (under .claude\u002Fskills\u002F or skills\u002F in any repo) are never missed.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkspace-skill-discovery\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M74ETV78525B4VP2F28Z6NRD","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M74ETR75NF67WGVEN7288ACV","winui-app","Create, build and design WinUI 3 desktop apps with C# and the Windows App SDK following Microsoft's official guidance and CommunityToolkit. Covers XAML, navigation, theming, accessibility and deployment.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwinui-app\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M74ETJFRNPPNSQZ36C6HD6CW","windows-brain-script-portability","Scripts in ~\u002F.claude\u002Fscripts\u002F that run on a Windows brain: use the python3.cmd shim and not bare python3, and reconfigure stdout to UTF-8 if you print symbols. Use it when writing a brain script or triaging a Windows-only crash.","https:\u002F\u002Fgithub.com\u002FCarlosCaPe\u002Foctorato\u002Fblob\u002Fmaster\u002Fskills\u002Fwindows-brain-script-portability\u002FSKILL.md",[],[]]