[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7331GAWAVAG0DZSK949MN26":3,"skill-same:01M7331GAWAVAG0DZSK949MN26":51},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7331GAWAVAG0DZSK949MN26","financial-velocity-budgeting",null,"Implement token cost estimation, sliding-window velocity caps, and hierarchical credit allocation for multi-agent LLM systems. Prevent runaway API spend with pre-request budget gates and dead-man switches.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ffinancial-velocity-budgeting\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: financial-velocity-budgeting\ndescription: Implement token cost estimation, sliding-window velocity caps, and hierarchical credit allocation for multi-agent LLM systems. Prevent runaway API spend with pre-request budget gates and dead-man switches.\norigin: YAMTAM Engine rule 60, Anthropic usage API, tiktoken (MIT)\nlicense: Apache-2.0\nversion: 1.0.0\ncompatibility: claude-sonnet-4-6, claude-opus-4-7\n---\n\n# Financial Velocity Budgeting\n\nEnforce hard token budgets before LLM requests are made — not after the bill arrives.\n\n## When to Use\n\n- Multi-agent systems where any single runaway agent can exhaust daily API budget\n- Autonomous loops that run unsupervised for extended periods\n- Cost-sensitive deployments where token spend must be bounded per agent\u002Fsession\n- Detecting prompt injection attacks that inflate token usage deliberately\n\n## Do NOT use for\n\n- Single-request CLI tools where cost is predictable and low\n- Internal model inference (no API cost)\n\n## Pre-Request Budget Gate\n\n```js\nclass TokenBudgetGate {\n  constructor(opts = {}) {\n    this.dailyCap   = opts.dailyCap   ?? parseInt(process.env.YAMTAM_DAILY_TOKEN_BUDGET ?? '100000');\n    this.agentCap   = opts.agentCap   ?? parseInt(process.env.YAMTAM_AGENT_TOKEN_CAP ?? '5000');\n    this.windowSec  = opts.windowSec  ?? 10;\n    this.windowCap  = opts.windowCap  ?? 2000;\n    this.used       = new Map();   \u002F\u002F agentId → { session, window, windowStart }\n    this.dailyTotal = 0;\n  }\n\n  \u002F\u002F Estimate tokens before sending (rough: 1 token ≈ 4 chars)\n  estimate(prompt) {\n    return Math.ceil(prompt.length \u002F 4) * 1.3;  \u002F\u002F +30% output estimate\n  }\n\n  check(agentId, prompt) {\n    const estimated = this.estimate(prompt);\n    const state = this.used.get(agentId) ?? { session: 0, window: 0, windowStart: Date.now() };\n\n    \u002F\u002F Reset sliding window\n    if (Date.now() - state.windowStart > this.windowSec * 1000) {\n      state.window = 0;\n      state.windowStart = Date.now();\n    }\n\n    if (state.session + estimated > this.agentCap)\n      throw new BudgetExceededError('AGENT_SESSION_CAP', agentId, estimated, this.agentCap - state.session);\n    if (state.window + estimated > this.windowCap)\n      throw new BudgetExceededError('VELOCITY_CAP', agentId, estimated, this.windowCap - state.window);\n    if (this.dailyTotal + estimated > this.dailyCap)\n      throw new BudgetExceededError('DAILY_CAP', agentId, estimated, this.dailyCap - this.dailyTotal);\n\n    return { ok: true, estimated };\n  }\n\n  record(agentId, actual) {\n    const state = this.used.get(agentId) ?? { session: 0, window: 0, windowStart: Date.now() };\n    state.session += actual;\n    state.window  += actual;\n    this.dailyTotal += actual;\n    this.used.set(agentId, state);\n  }\n}\n```\n\n## Prompt Injection Cost Attack Detection\n\n```js\nfunction detectCostAttack(prompt) {\n  \u002F\u002F Repeated phrase bomb\n  const words = prompt.split(\u002F\\s+\u002F);\n  const freq = new Map();\n  for (const w of words) freq.set(w, (freq.get(w) ?? 0) + 1);\n  const maxFreq = Math.max(...freq.values());\n  if (maxFreq > 50) throw new Error('COST_ATTACK: repeated phrase detected');\n\n  \u002F\u002F Token stuffing via Unicode\n  const unicodeDensity = (prompt.match(\u002F[^\\x00-\\x7F]\u002Fg)?.length ?? 0) \u002F prompt.length;\n  if (unicodeDensity > 0.3) throw new Error('COST_ATTACK: Unicode stuffing detected');\n}\n```\n\n## Hierarchical Budget Tree\n\n```\nGlobal (100k tokens\u002Fday)\n  ├── Orchestrators (40k)  ← YAMTAM_ORCH_TOKEN_POOL\n  ├── Executors     (50k)  ← YAMTAM_EXEC_TOKEN_POOL\n  │   └── Per agent (5k)   ← YAMTAM_AGENT_TOKEN_CAP\n  └── Reserve       (10k)  ← emergency rollback + auditor\n```\n\n## Dead-Man Integration\n\n```js\n\u002F\u002F If daily budget > 80%, require human confirmation\nif (gate.dailyTotal > gate.dailyCap * 0.8) {\n  const approved = await requireHumanApproval('Budget at 80% — continue?');\n  if (!approved) throw new Error('DEADMAN: human declined continuation');\n}\n```\n\n## Anti-Fake-Pass Checklist\n\n- [ ] `gate.check()` called BEFORE every LLM API call, not after\n- [ ] `gate.record()` called with ACTUAL tokens from API response (not estimate)\n- [ ] Velocity window resets correctly — test with `Date.now()` mock\n- [ ] Cost attack detection tested with 100× repeated phrase\n- [ ] Dead-man 80% threshold tested by simulating high daily usage\n","# Financial Velocity Budgeting\n\nEnforce hard token budgets before LLM requests are made — not after the bill arrives.\n\n## When to Use\n\n- Multi-agent systems where any single runaway agent can exhaust daily API budget\n- Autonomous loops that run unsupervised for extended periods\n- Cost-sensitive deployments where token spend must be bounded per agent\u002Fsession\n- Detecting prompt injection attacks that inflate token usage deliberately\n\n## Do NOT use for\n\n- Single-request CLI tools where cost is predictable and low\n- Internal model inference (no API cost)\n\n## Pre-Request Budget Gate\n\n```js\nclass TokenBudgetGate {\n  constructor(opts = {}) {\n    this.dailyCap   = opts.dailyCap   ?? parseInt(process.env.YAMTAM_DAILY_TOKEN_BUDGET ?? '100000');\n    this.agentCap   = opts.agentCap   ?? parseInt(process.env.YAMTAM_AGENT_TOKEN_CAP ?? '5000');\n    this.windowSec  = opts.windowSec  ?? 10;\n    this.windowCap  = opts.windowCap  ?? 2000;\n    this.used       = new Map();   \u002F\u002F agentId → { session, window, windowStart }\n    this.dailyTotal = 0;\n  }\n\n  \u002F\u002F Estimate tokens before sending (rough: 1 token ≈ 4 chars)\n  estimate(prompt) {\n    return Math.ceil(prompt.length \u002F 4) * 1.3;  \u002F\u002F +30% output estimate\n  }\n\n  check(agentId, prompt) {\n    const estimated = this.estimate(prompt);\n    const state = this.used.get(agentId) ?? { session: 0, window: 0, windowStart: Date.now() };\n\n    \u002F\u002F Reset sliding window\n    if (Date.now() - state.windowStart > this.windowSec * 1000) {\n      state.window = 0;\n      state.windowStart = Date.now();\n    }\n\n    if (state.session + estimated > this.agentCap)\n      throw new BudgetExceededError('AGENT_SESSION_CAP', agentId, estimated, this.agentCap - state.session);\n    if (state.window + estimated > this.windowCap)\n      throw new BudgetExceededError('VELOCITY_CAP', agentId, estimated, this.windowCap - state.window);\n    if (this.dailyTotal + estimated > this.dailyCap)\n      throw new BudgetExceededError('DAILY_CAP', agentId, estimated, this.dailyCap - this.dailyTotal);\n\n    return { ok: true, estimated };\n  }\n\n  record(agentId, actual) {\n    const state = this.used.get(agentId) ?? { session: 0, window: 0, windowStart: Date.now() };\n    state.session += actual;\n    state.window  += actual;\n    this.dailyTotal += actual;\n    this.used.set(agentId, state);\n  }\n}\n```\n\n## Prompt Injection Cost Attack Detection\n\n```js\nfunction detectCostAttack(prompt) {\n  \u002F\u002F Repeated phrase bomb\n  const words = prompt.split(\u002F\\s+\u002F);\n  const freq = new Map();\n  for (const w of words) freq.set(w, (freq.get(w) ?? 0) + 1);\n  const maxFreq = Math.max(...freq.values());\n  if (maxFreq > 50) throw new Error('COST_ATTACK: repeated phrase detected');\n\n  \u002F\u002F Token stuffing via Unicode\n  const unicodeDensity = (prompt.match(\u002F[^\\x00-\\x7F]\u002Fg)?.length ?? 0) \u002F prompt.length;\n  if (unicodeDensity > 0.3) throw new Error('COST_ATTACK: Unicode stuffing detected');\n}\n```\n\n## Hierarchical Budget Tree\n\n```\nGlobal (100k tokens\u002Fday)\n  ├── Orchestrators (40k)  ← YAMTAM_ORCH_TOKEN_POOL\n  ├── Executors     (50k)  ← YAMTAM_EXEC_TOKEN_POOL\n  │   └── Per agent (5k)   ← YAMTAM_AGENT_TOKEN_CAP\n  └── Reserve       (10k)  ← emergency rollback + auditor\n```\n\n## Dead-Man Integration\n\n```js\n\u002F\u002F If daily budget > 80%, require human confirmation\nif (gate.dailyTotal > gate.dailyCap * 0.8) {\n  const approved = await requireHumanApproval('Budget at 80% — continue?');\n  if (!approved) throw new Error('DEADMAN: human declined continuation');\n}\n```\n\n## Anti-Fake-Pass Checklist\n\n- [ ] `gate.check()` called BEFORE every LLM API call, not after\n- [ ] `gate.record()` called with ACTUAL tokens from API response (not estimate)\n- [ ] Velocity window resets correctly — test with `Date.now()` mock\n- [ ] Cost attack detection tested with 100× repeated phrase\n- [ ] Dead-man 80% threshold tested by simulating high daily usage\n",{"name":5,"origin":24,"license":15,"version":25,"description":7,"compatibility":26},"YAMTAM Engine rule 60, Anthropic usage API, tiktoken (MIT)","1.0.0","claude-sonnet-4-6, claude-opus-4-7","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa",".claude\u002Fskills\u002Ffinancial-velocity-budgeting",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill financial-velocity-budgeting",{"tool":43,"command":44},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill financial-velocity-budgeting",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill financial-velocity-budgeting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ffinancial-velocity-budgeting\u002FSKILL.md",true,[],[52,60,67,75,83,91],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\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},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\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":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"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":94,"categories":95,"keywords":96,"publishedAt":19},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]