[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EXFYPENAJ92WXR1SC16CS7":3,"skill-same:01M7EXFYPENAJ92WXR1SC16CS7":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},"01M7EXFYPENAJ92WXR1SC16CS7","budget-set",null,"Define a spend budget for Claude Code and, optionally, create a cost alert rule that fires when usage crosses the limit, via POST \u002Fapi\u002Falerts\u002Frules on the Agent Monitor dashboard. Reads current spend from \u002Fapi\u002Fpricing\u002Fcost to size the budget sensibly and explains every rule field before writing. Use when setting a spend limit or wiring up a budget guardrail.","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-技能与代理开发\u002Fbudget-set\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: budget-set\ndescription: >\n  Define a spend budget for Claude Code and, optionally, create a cost alert\n  rule that fires when usage crosses the limit, via POST \u002Fapi\u002Falerts\u002Frules on\n  the Agent Monitor dashboard. Reads current spend from \u002Fapi\u002Fpricing\u002Fcost to\n  size the budget sensibly and explains every rule field before writing.\n  Use when setting a spend limit or wiring up a budget guardrail.\n---\n\n# Budget Set\n\nHelp the user define a spend budget and turn it into a live cost guardrail on the\nAgent Monitor dashboard.\n\n## Input\n\nThe user provides: **$ARGUMENTS**\n\nThis is the budget to set — e.g. `\"$50\u002Fmonth\"`, `\"$10\u002Fweek\"`, or `\"200000 tokens\"`.\nIf a period is omitted, treat it as a monthly budget and say so. If no number is\ngiven, read current spend first and propose a target.\n\n## Data Sources\n\n| Endpoint | Returns |\n|----------|---------|\n| `GET \u002Fapi\u002Fpricing\u002Fcost` | `{ total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` — current spend, used to size the budget and compute the blended $\u002Ftoken rate |\n| `GET \u002Fapi\u002Falerts\u002Frules` | `{ rules: [{ id, name, rule_type, config, enabled, cooldown_seconds }] }` — existing rules, so you don't create a duplicate guardrail |\n| `POST \u002Fapi\u002Falerts\u002Frules` | Create a rule. Body: `{ name, rule_type, config, enabled?, cooldown_seconds? }`. Returns `{ rule }` |\n\n## How a budget becomes a rule\n\nThe dashboard's alerting engine fires on **tokens**, not dollars. The spend-relevant\nrule type is **`token_threshold`**, whose config is `{ total_tokens }` — it fires when\na session's cumulative tokens (input + output + cache_read + cache_write) cross the\nthreshold. To turn a **dollar** budget into a token ceiling:\n\n```\nblended_rate_per_token = total_cost \u002F total_tokens          # from \u002Fapi\u002Fpricing\u002Fcost\ntoken_ceiling          = budget_dollars \u002F blended_rate_per_token\n```\n\nCompute `total_tokens` by summing the four token columns across the cost `breakdown`.\n\n### Rule fields explained\n\n| Field | Meaning |\n|-------|---------|\n| `name` | Human label shown in the alert feed (e.g. `\"Monthly $50 budget\"`). Required, non-empty. |\n| `rule_type` | `\"token_threshold\"` for a spend guardrail. (Other types: `event_pattern`, `inactivity`, `status_duration` — not spend-related.) |\n| `config.total_tokens` | Positive integer token ceiling. A session crossing it fires the alert. Derive from the dollar budget as above. |\n| `enabled` | `true` to arm immediately (default), `false` to stage it. |\n| `cooldown_seconds` | Minimum seconds between re-fires for the same scope. Default `300`. Raise it (e.g. `3600`) so a single overspending session doesn't spam the feed. |\n\n## Report Sections\n\n### 1. Current spend snapshot\nFrom `\u002Fapi\u002Fpricing\u002Fcost`: `total_cost`, total tokens, and the blended $\u002FMtok rate. State how much of the proposed budget is already consumed.\n\n### 2. Budget interpretation\nRestate the parsed budget (amount + period). If converting dollars → tokens, show the blended rate and the `token_ceiling` arithmetic.\n\n### 3. Existing guardrails\nList any `token_threshold` rules from `\u002Fapi\u002Falerts\u002Frules` so the user sees what is already in place; warn before creating a near-duplicate.\n\n### 4. Proposed alert rule\nShow the exact JSON body you would POST, with each field annotated. Then give the ready-to-run command (only run it on explicit confirmation):\n\n```\ncurl -s -X POST http:\u002F\u002Flocalhost:4820\u002Fapi\u002Falerts\u002Frules \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"name\":\"Monthly $50 budget\",\"rule_type\":\"token_threshold\",\"config\":{\"total_tokens\":12500000},\"cooldown_seconds\":3600}'\n```\n\n### 5. Confirmation\nOn success, echo the returned `rule` (id, name, config). Remind the user that the rule is per-session token usage — to track a whole-period dollar budget, pair it with `\u002Fccam-cost-guard:forecast` and the `spend-forecast` skill.\n\n## Output\n\nMarkdown with the snapshot, the conversion math, and the annotated rule body. Currency as USD to 4 decimal places; token counts with thousands separators. Only POST after the user confirms — never create a rule silently.\n","# Budget Set\n\nHelp the user define a spend budget and turn it into a live cost guardrail on the\nAgent Monitor dashboard.\n\n## Input\n\nThe user provides: **$ARGUMENTS**\n\nThis is the budget to set — e.g. `\"$50\u002Fmonth\"`, `\"$10\u002Fweek\"`, or `\"200000 tokens\"`.\nIf a period is omitted, treat it as a monthly budget and say so. If no number is\ngiven, read current spend first and propose a target.\n\n## Data Sources\n\n| Endpoint | Returns |\n|----------|---------|\n| `GET \u002Fapi\u002Fpricing\u002Fcost` | `{ total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` — current spend, used to size the budget and compute the blended $\u002Ftoken rate |\n| `GET \u002Fapi\u002Falerts\u002Frules` | `{ rules: [{ id, name, rule_type, config, enabled, cooldown_seconds }] }` — existing rules, so you don't create a duplicate guardrail |\n| `POST \u002Fapi\u002Falerts\u002Frules` | Create a rule. Body: `{ name, rule_type, config, enabled?, cooldown_seconds? }`. Returns `{ rule }` |\n\n## How a budget becomes a rule\n\nThe dashboard's alerting engine fires on **tokens**, not dollars. The spend-relevant\nrule type is **`token_threshold`**, whose config is `{ total_tokens }` — it fires when\na session's cumulative tokens (input + output + cache_read + cache_write) cross the\nthreshold. To turn a **dollar** budget into a token ceiling:\n\n```\nblended_rate_per_token = total_cost \u002F total_tokens          # from \u002Fapi\u002Fpricing\u002Fcost\ntoken_ceiling          = budget_dollars \u002F blended_rate_per_token\n```\n\nCompute `total_tokens` by summing the four token columns across the cost `breakdown`.\n\n### Rule fields explained\n\n| Field | Meaning |\n|-------|---------|\n| `name` | Human label shown in the alert feed (e.g. `\"Monthly $50 budget\"`). Required, non-empty. |\n| `rule_type` | `\"token_threshold\"` for a spend guardrail. (Other types: `event_pattern`, `inactivity`, `status_duration` — not spend-related.) |\n| `config.total_tokens` | Positive integer token ceiling. A session crossing it fires the alert. Derive from the dollar budget as above. |\n| `enabled` | `true` to arm immediately (default), `false` to stage it. |\n| `cooldown_seconds` | Minimum seconds between re-fires for the same scope. Default `300`. Raise it (e.g. `3600`) so a single overspending session doesn't spam the feed. |\n\n## Report Sections\n\n### 1. Current spend snapshot\nFrom `\u002Fapi\u002Fpricing\u002Fcost`: `total_cost`, total tokens, and the blended $\u002FMtok rate. State how much of the proposed budget is already consumed.\n\n### 2. Budget interpretation\nRestate the parsed budget (amount + period). If converting dollars → tokens, show the blended rate and the `token_ceiling` arithmetic.\n\n### 3. Existing guardrails\nList any `token_threshold` rules from `\u002Fapi\u002Falerts\u002Frules` so the user sees what is already in place; warn before creating a near-duplicate.\n\n### 4. Proposed alert rule\nShow the exact JSON body you would POST, with each field annotated. Then give the ready-to-run command (only run it on explicit confirmation):\n\n```\ncurl -s -X POST http:\u002F\u002Flocalhost:4820\u002Fapi\u002Falerts\u002Frules \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"name\":\"Monthly $50 budget\",\"rule_type\":\"token_threshold\",\"config\":{\"total_tokens\":12500000},\"cooldown_seconds\":3600}'\n```\n\n### 5. Confirmation\nOn success, echo the returned `rule` (id, name, config). Remind the user that the rule is per-session token usage — to track a whole-period dollar budget, pair it with `\u002Fccam-cost-guard:forecast` and the `spend-forecast` skill.\n\n## Output\n\nMarkdown with the snapshot, the conversion math, and the annotated rule body. Currency as USD to 4 decimal places; token counts with thousands separators. Only POST after the user confirms — never create a rule silently.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fbudget-set",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 budget-set",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill budget-set",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill budget-set","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fbudget-set\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",256,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fbudget-set\u002Fagents\u002Fopenai.yaml",[53,61,66,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":60},"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",[],[],"2026-11-16 10:05:34",{"skillNo":62,"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":63,"categories":64,"keywords":65,"publishedAt":60},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\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":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":60},"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":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":60},"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":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":60},"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":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":60},"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",[],[]]