[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F5C41PM74DV48KA8J8HEC1":3,"skill-same:01M7F5C41PM74DV48KA8J8HEC1":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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F5C41PM74DV48KA8J8HEC1","spend-forecast",null,"Forecast Claude Code spend to the end of the week or month from the daily session trend on the Agent Monitor dashboard — moving average of daily spend × days remaining, added to spend-to-date. Uses \u002Fapi\u002Fanalytics daily_sessions, \u002Fapi\u002Fpricing\u002Fcost, and \u002Fapi\u002Fsessions for a per-day cost curve. Use when projecting cost or asking \"where will my spend land\".","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fspend-forecast\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: spend-forecast\ndescription: >\n  Forecast Claude Code spend to the end of the week or month from the daily\n  session trend on the Agent Monitor dashboard — moving average of daily spend\n  × days remaining, added to spend-to-date. Uses \u002Fapi\u002Fanalytics daily_sessions,\n  \u002Fapi\u002Fpricing\u002Fcost, and \u002Fapi\u002Fsessions for a per-day cost curve.\n  Use when projecting cost or asking \"where will my spend land\".\n---\n\n# Spend Forecast\n\nProject where Claude Code spend will end up by the close of the current week or month.\n\n## Input\n\nThe user provides: **$ARGUMENTS**\n\nThis is the forecast horizon — `\"week\"`, `\"month\"`, or a specific date. Default to\n**month** (calendar month-end) when nothing is given, and state the horizon you used.\n\n## Data Sources\n\n| Endpoint | Returns |\n|----------|---------|\n| `GET \u002Fapi\u002Fanalytics` | `{ total_cost, tokens (effective totals, baselines pre-summed), daily_sessions (365d: [{ date, count }]), daily_events, overview, ... }` — `daily_sessions` is the trend the forecast extrapolates |\n| `GET \u002Fapi\u002Fpricing\u002Fcost` | `{ total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` — authoritative spend-to-date and avg cost-per-session input |\n| `GET \u002Fapi\u002Fsessions?limit=200` | Session list with inline `cost` and `started_at` — group by day for a sharper daily-spend curve than the count-based approximation |\n\n## Forecast method\n\nSpend has no native per-day field, so build a daily-spend series and extrapolate:\n\n1. **Spend-to-date** = `total_cost` from `\u002Fapi\u002Fpricing\u002Fcost`.\n2. **Avg cost per session** = `total_cost \u002F total_session_count`.\n3. **Daily spend series**: for the trailing window, `daily_spend[d] ≈ daily_sessions[d].count × avg_cost_per_session`. For a sharper curve, instead sum inline session `cost` grouped by `DATE(started_at)`.\n4. **Moving average**: `avg_daily_spend = mean(daily_spend over the trailing 7 days)`. Also compute a 14-day average to gauge whether the trend is accelerating (▲) or cooling (▼).\n5. **Remaining days**: days left until the end of the chosen horizon (week = through Sunday; month = through the last calendar day).\n6. **Projection**: `projected_total = spend_to_date_this_period + (avg_daily_spend × days_remaining)`.\n\n> Spend-to-date this period: when the trend covers more than the current period, restrict the spend-to-date term to sessions whose `started_at` falls inside the current week\u002Fmonth so the projection isn't inflated by older spend.\n\n## Report Sections\n\n### 1. Spend to date\n`total_cost`, session count, avg cost\u002Fsession, and how much falls inside the current period.\n\n### 2. Daily trend\nThe 7-day and 14-day moving averages of daily spend, with a ▲\u002F▼ accelerating-vs-cooling read. Show the last 7 days as a compact table (date, sessions, est. spend).\n\n### 3. Projection\n`avg_daily_spend × days_remaining` and the resulting `projected_total` for the horizon. State the days-remaining count explicitly.\n\n### 4. Budget check (if a budget is known)\nIf the user mentions a budget, show projected vs. budget, the over\u002Funder delta, and the date the budget is projected to be crossed (`days_to_budget = (budget − spend_to_date) \u002F avg_daily_spend`).\n\n### 5. Confidence & caveats\nNote that the forecast assumes the recent daily pace holds, that daily spend is approximated from session counts unless an inline-cost curve was used, and call out any low-data horizons (e.g. fewer than 7 active days).\n\n## Output\n\nMarkdown with the trend table and the projection. Currency as USD to 4 decimal places; show moving averages and the projected total prominently. Deltas with ▲\u002F▼.\n","# Spend Forecast\n\nProject where Claude Code spend will end up by the close of the current week or month.\n\n## Input\n\nThe user provides: **$ARGUMENTS**\n\nThis is the forecast horizon — `\"week\"`, `\"month\"`, or a specific date. Default to\n**month** (calendar month-end) when nothing is given, and state the horizon you used.\n\n## Data Sources\n\n| Endpoint | Returns |\n|----------|---------|\n| `GET \u002Fapi\u002Fanalytics` | `{ total_cost, tokens (effective totals, baselines pre-summed), daily_sessions (365d: [{ date, count }]), daily_events, overview, ... }` — `daily_sessions` is the trend the forecast extrapolates |\n| `GET \u002Fapi\u002Fpricing\u002Fcost` | `{ total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` — authoritative spend-to-date and avg cost-per-session input |\n| `GET \u002Fapi\u002Fsessions?limit=200` | Session list with inline `cost` and `started_at` — group by day for a sharper daily-spend curve than the count-based approximation |\n\n## Forecast method\n\nSpend has no native per-day field, so build a daily-spend series and extrapolate:\n\n1. **Spend-to-date** = `total_cost` from `\u002Fapi\u002Fpricing\u002Fcost`.\n2. **Avg cost per session** = `total_cost \u002F total_session_count`.\n3. **Daily spend series**: for the trailing window, `daily_spend[d] ≈ daily_sessions[d].count × avg_cost_per_session`. For a sharper curve, instead sum inline session `cost` grouped by `DATE(started_at)`.\n4. **Moving average**: `avg_daily_spend = mean(daily_spend over the trailing 7 days)`. Also compute a 14-day average to gauge whether the trend is accelerating (▲) or cooling (▼).\n5. **Remaining days**: days left until the end of the chosen horizon (week = through Sunday; month = through the last calendar day).\n6. **Projection**: `projected_total = spend_to_date_this_period + (avg_daily_spend × days_remaining)`.\n\n> Spend-to-date this period: when the trend covers more than the current period, restrict the spend-to-date term to sessions whose `started_at` falls inside the current week\u002Fmonth so the projection isn't inflated by older spend.\n\n## Report Sections\n\n### 1. Spend to date\n`total_cost`, session count, avg cost\u002Fsession, and how much falls inside the current period.\n\n### 2. Daily trend\nThe 7-day and 14-day moving averages of daily spend, with a ▲\u002F▼ accelerating-vs-cooling read. Show the last 7 days as a compact table (date, sessions, est. spend).\n\n### 3. Projection\n`avg_daily_spend × days_remaining` and the resulting `projected_total` for the horizon. State the days-remaining count explicitly.\n\n### 4. Budget check (if a budget is known)\nIf the user mentions a budget, show projected vs. budget, the over\u002Funder delta, and the date the budget is projected to be crossed (`days_to_budget = (budget − spend_to_date) \u002F avg_daily_spend`).\n\n### 5. Confidence & caveats\nNote that the forecast assumes the recent daily pace holds, that daily spend is approximated from session counts unless an inline-cost curve was used, and call out any low-data horizons (e.g. fewer than 7 active days).\n\n## Output\n\nMarkdown with the trend table and the projection. Currency as USD to 4 decimal places; show moving averages and the projected total prominently. Deltas with ▲\u002F▼.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fspend-forecast",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill spend-forecast",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill spend-forecast",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill spend-forecast","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fspend-forecast\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",268,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fspend-forecast\u002Fagents\u002Fopenai.yaml",[53,60,65,72,79,86],{"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},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"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":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]