[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ERJ1PPMEP6JD2CZCAG6VE0":3,"skill-same:01M7ERJ1PPMEP6JD2CZCAG6VE0":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":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7ERJ1PPMEP6JD2CZCAG6VE0","cost-diff",null,"Snapshot delta between two cost-summary JSON outputs. PR-level cost regression detection — answers \"what changed between these two specific snapshots?\". Pairs with cost-summary's stable JSON contract.","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\u002F04-安全渗透\u002Fruflo\u002Fplugins\u002Fruflo-cost-tracker\u002Fskills\u002Fcost-diff\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cost-diff\ndescription: Snapshot delta between two cost-summary JSON outputs. PR-level cost regression detection — answers \"what changed between these two specific snapshots?\". Pairs with cost-summary's stable JSON contract.\nargument-hint: \"--baseline \u003Cbaseline.json> --current \u003Ccurrent.json> [--alert-on-pct N] [--alert-on-usd N] [--alert-on-class-pct \u003Cclass>:N[,\u003Cclass>:N]] [--format table|json]\"\nallowed-tools: Bash\n---\n\nPR-level cost regression detection. Where cost-counterfactual compares\nto HYPOTHETICAL baselines (always-haiku\u002Fsonnet\u002Fopus) and cost-burn\ncompares latest bucket to PRIOR MEAN, cost-diff compares two SPECIFIC\nknown-good snapshots.\n\n| Question | Skill |\n|---|---|\n| \"What would we have spent at always-X?\" | `cost-counterfactual` |\n| \"Is daily burn accelerating vs prior mean?\" | `cost-burn` |\n| \"Did THIS PR add spend vs main?\" | **`cost-diff`** ← this |\n\n## Algorithm\n\nImplementation: [`scripts\u002Fdiff.mjs`](..\u002F..\u002Fscripts\u002Fdiff.mjs). Consumes the\nstable JSON contract from `cost summary --format json`.\n\n1. Load `--baseline` and `--current` JSON snapshots.\n2. Sanity check: both must have `total_cost_usd` + `sessionCount` (cost-summary shape).\n3. Per-key delta: `byTier` (haiku\u002Fsonnet\u002Fopus) and `byModel` (each model).\n4. Each entry tagged `added` \u002F `removed` \u002F `changed` based on\n   baseline \u002F current zero-ness.\n5. Sort table by `|delta|` descending so the biggest movers are at the top.\n6. `--alert-on-pct N`: exit 1 when `total_pct > N`.\n7. `--alert-on-usd N`: exit 1 when `total_delta_usd > N`.\n   Both can be set; first to trigger wins.\n\n## PR-gate workflow\n\n```bash\n# Capture baseline (e.g. on main, via the cost-tracker-smoke CI workflow)\ncost summary --format json > baseline.json\n\n# On the PR branch, capture current state\ncost summary --format json > current.json\n\n# Compare; fail the PR if total spend grew >10% OR >$5\ncost diff --baseline baseline.json --current current.json \\\n          --alert-on-pct 10 --alert-on-usd 5.00\n```\n\nThe combination of both flags catches:\n- **Percent-only fires**: a small absolute change but a meaningful shift\n  (e.g. doubling from $0.10 to $0.20 hits +100% but only +$0.10).\n- **USD-only fires**: a large absolute change with a small percent\n  (e.g. growing from $100 to $110 is only +10% but +$10).\n\nEither signal can fail the PR independently — they're OR'd.\n\n## --alert-on-class-pct (iter 86)\n\nThe two USD-level thresholds above miss a regression class: when ONE\ntoken type grows disproportionately even though total spend grows\nmodestly. Example: a PR introduces a verbose context-cache pattern,\ntotal spend grows only 10% (under --alert-on-pct 50), but `cache_write`\ntokens grow 900%. The iter-82 driver hides inside the USD signal.\n\n`--alert-on-class-pct cache_write:50` exits 1 when cache_write tokens\ngrow more than 50% baseline → current. Multiple classes can be checked\nin one flag (comma-separated):\n\n```bash\ncost diff --baseline baseline.json --current current.json \\\n          --alert-on-class-pct cache_write:50,output:25\n```\n\nFirst class to breach wins. Valid classes: `input | output | cache_write | cache_read`.\n\nRecommended PR-gate triad:\n\n```bash\ncost diff --baseline ... --current ... \\\n          --alert-on-pct 25 \\\n          --alert-on-usd 5.00 \\\n          --alert-on-class-pct cache_write:100\n```\n\nThree orthogonal signals — `pct` (total grew), `usd` (large absolute\njump), `class-pct` (composition shifted). Each catches what the others\nmiss; AND-of-OR semantics means any one firing fails the PR.\n\n## Smoke transcript (synthetic baseline + current)\n\n```\n| Total spend       | $1.000000 | $1.500000 | +$0.500000 | 50.00% |\n| Sessions          | 10        | 13        | +3         | 30.00% |\n\n## By tier\n| opus   | $0      | $0.60   | +$0.600000 | new      | added   |\n| sonnet | $0.70   | $0.50   | -$0.200000 | -28.57%  | changed |\n| haiku  | $0.30   | $0.40   | +$0.100000 | 33.33%   | changed |\n```\n\nNotice the table is **sorted by absolute delta**, not alphabetically —\nthe biggest mover (opus newly added) bubbles to the top. Operators\nreading top-down see \"what mattered\" first.\n\n## Exit codes\n\n| Exit | Meaning |\n|---|---|\n| 0 | No alert, OR no thresholds set |\n| 1 | --alert-on-pct or --alert-on-usd threshold exceeded |\n| 2 | Config error (missing files, invalid JSON, malformed snapshot) |\n\n## Status column\n\n| Status | Meaning |\n|---|---|\n| `added` | This tier\u002Fmodel was $0 in baseline, >$0 in current |\n| `removed` | This tier\u002Fmodel was >$0 in baseline, $0 in current |\n| `changed` | Both baseline and current >$0; delta is the difference |\n\nEntries with `baseline === 0 && current === 0` are dropped (nothing to\nreport).\n\n## Composition with cost-summary\n\ncost-diff is the SECOND HALF of a contract that cost-summary started:\nthe stable JSON shape from `cost summary --format json`. Both pieces\nhave been frozen — adding fields to summary is fine; renaming or\nremoving isn't.\n\nIf you're consuming snapshots elsewhere (dashboards, alerting), the\nsame shape works — `cost-diff` is just one consumer.\n","PR-level cost regression detection. Where cost-counterfactual compares\nto HYPOTHETICAL baselines (always-haiku\u002Fsonnet\u002Fopus) and cost-burn\ncompares latest bucket to PRIOR MEAN, cost-diff compares two SPECIFIC\nknown-good snapshots.\n\n| Question | Skill |\n|---|---|\n| \"What would we have spent at always-X?\" | `cost-counterfactual` |\n| \"Is daily burn accelerating vs prior mean?\" | `cost-burn` |\n| \"Did THIS PR add spend vs main?\" | **`cost-diff`** ← this |\n\n## Algorithm\n\nImplementation: [`scripts\u002Fdiff.mjs`](..\u002F..\u002Fscripts\u002Fdiff.mjs). Consumes the\nstable JSON contract from `cost summary --format json`.\n\n1. Load `--baseline` and `--current` JSON snapshots.\n2. Sanity check: both must have `total_cost_usd` + `sessionCount` (cost-summary shape).\n3. Per-key delta: `byTier` (haiku\u002Fsonnet\u002Fopus) and `byModel` (each model).\n4. Each entry tagged `added` \u002F `removed` \u002F `changed` based on\n   baseline \u002F current zero-ness.\n5. Sort table by `|delta|` descending so the biggest movers are at the top.\n6. `--alert-on-pct N`: exit 1 when `total_pct > N`.\n7. `--alert-on-usd N`: exit 1 when `total_delta_usd > N`.\n   Both can be set; first to trigger wins.\n\n## PR-gate workflow\n\n```bash\n# Capture baseline (e.g. on main, via the cost-tracker-smoke CI workflow)\ncost summary --format json > baseline.json\n\n# On the PR branch, capture current state\ncost summary --format json > current.json\n\n# Compare; fail the PR if total spend grew >10% OR >$5\ncost diff --baseline baseline.json --current current.json \\\n          --alert-on-pct 10 --alert-on-usd 5.00\n```\n\nThe combination of both flags catches:\n- **Percent-only fires**: a small absolute change but a meaningful shift\n  (e.g. doubling from $0.10 to $0.20 hits +100% but only +$0.10).\n- **USD-only fires**: a large absolute change with a small percent\n  (e.g. growing from $100 to $110 is only +10% but +$10).\n\nEither signal can fail the PR independently — they're OR'd.\n\n## --alert-on-class-pct (iter 86)\n\nThe two USD-level thresholds above miss a regression class: when ONE\ntoken type grows disproportionately even though total spend grows\nmodestly. Example: a PR introduces a verbose context-cache pattern,\ntotal spend grows only 10% (under --alert-on-pct 50), but `cache_write`\ntokens grow 900%. The iter-82 driver hides inside the USD signal.\n\n`--alert-on-class-pct cache_write:50` exits 1 when cache_write tokens\ngrow more than 50% baseline → current. Multiple classes can be checked\nin one flag (comma-separated):\n\n```bash\ncost diff --baseline baseline.json --current current.json \\\n          --alert-on-class-pct cache_write:50,output:25\n```\n\nFirst class to breach wins. Valid classes: `input | output | cache_write | cache_read`.\n\nRecommended PR-gate triad:\n\n```bash\ncost diff --baseline ... --current ... \\\n          --alert-on-pct 25 \\\n          --alert-on-usd 5.00 \\\n          --alert-on-class-pct cache_write:100\n```\n\nThree orthogonal signals — `pct` (total grew), `usd` (large absolute\njump), `class-pct` (composition shifted). Each catches what the others\nmiss; AND-of-OR semantics means any one firing fails the PR.\n\n## Smoke transcript (synthetic baseline + current)\n\n```\n| Total spend       | $1.000000 | $1.500000 | +$0.500000 | 50.00% |\n| Sessions          | 10        | 13        | +3         | 30.00% |\n\n## By tier\n| opus   | $0      | $0.60   | +$0.600000 | new      | added   |\n| sonnet | $0.70   | $0.50   | -$0.200000 | -28.57%  | changed |\n| haiku  | $0.30   | $0.40   | +$0.100000 | 33.33%   | changed |\n```\n\nNotice the table is **sorted by absolute delta**, not alphabetically —\nthe biggest mover (opus newly added) bubbles to the top. Operators\nreading top-down see \"what mattered\" first.\n\n## Exit codes\n\n| Exit | Meaning |\n|---|---|\n| 0 | No alert, OR no thresholds set |\n| 1 | --alert-on-pct or --alert-on-usd threshold exceeded |\n| 2 | Config error (missing files, invalid JSON, malformed snapshot) |\n\n## Status column\n\n| Status | Meaning |\n|---|---|\n| `added` | This tier\u002Fmodel was $0 in baseline, >$0 in current |\n| `removed` | This tier\u002Fmodel was >$0 in baseline, $0 in current |\n| `changed` | Both baseline and current >$0; delta is the difference |\n\nEntries with `baseline === 0 && current === 0` are dropped (nothing to\nreport).\n\n## Composition with cost-summary\n\ncost-diff is the SECOND HALF of a contract that cost-summary started:\nthe stable JSON shape from `cost summary --format json`. Both pieces\nhave been frozen — adding fields to summary is fine; renaming or\nremoving isn't.\n\nIf you're consuming snapshots elsewhere (dashboards, alerting), the\nsame shape works — `cost-diff` is just one consumer.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25},"Bash","--baseline \u003Cbaseline.json> --current \u003Ccurrent.json> [--alert-on-pct N] [--alert-on-usd N] [--alert-on-class-pct \u003Cclass>:N[,\u003Cclass>:N]] [--format table|json]","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fruflo\u002Fplugins\u002Fruflo-cost-tracker\u002Fskills\u002Fcost-diff",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":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill cost-diff",{"tool":40,"command":41},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill cost-diff",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill cost-diff","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fruflo\u002Fplugins\u002Fruflo-cost-tracker\u002Fskills\u002Fcost-diff\u002FSKILL.md",true,[],[49,57,62,69,76,83],{"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":56},"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":58,"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":59,"categories":60,"keywords":61,"publishedAt":56},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":56},"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":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":56},"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":56},"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":56},"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",[],[]]