cost-guard
Estimate and Track AI Coding Costs
Long coding sessions and recurring jobs can use more tokens than expected. Cost Guard estimates spend and checks your local records against budgets before you proceed.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "cost-guard" from https://skillstore.io/skills/kml11kml-cost-guard.md and its manifest at https://skillstore.io/api/skills/kml11kml-cost-guard/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“cost-guard”。 Estimate a Sonnet run with one million input tokens, 500,000 output tokens, and no cache reads.
预期结果:
Estimated cost: $10.50 using the bundled Sonnet rates. Actual charges may differ.
正在使用“cost-guard”。 Check a $2.50 step when the task has recorded $3.20 today and the $5 task budget is the limiting cap.
预期结果:
Budget check blocked. The task would reach $5.70, which exceeds its $5 budget.
正在使用“cost-guard”。 Estimate an hourly job that runs eight hours daily, uses 20,000 tokens per run, and has a 1.25 retry multiplier and two-million-token weekly allowance.
预期结果:
Eight scheduled runs and 200,000 estimated tokens per day. The supplied allowance would last 10 days at that rate.
安全审计
中风险The static alerts identify documented local file access, scoped settings, and Markdown examples. No evidence found of credential harvesting, network transmission by the scripts, or prompt injection. The audit found gaps in hook coverage, numeric validation, concurrent ledger updates, and preservation of existing budget settings.
已确认安全问题 (4)
风险因素
📁 文件系统访问 (36)
🔑 环境变量 (7)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/kml11kml-cost-guard/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/kml11kml-cost-guard?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/kml11kml-cost-guard?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/kml11kml-cost-guard/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/kml11kml-cost-guard.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
kml11kml. (2026). cost-guard security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/kml11kml-cost-guard/audits/1BibTeX 引用
@techreport{kml11kml-kml11kml-cost-guard-2026,
author = {kml11kml},
title = {cost-guard security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/kml11kml-cost-guard/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "cost-guard security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "kml11kml"
date-released: "2026-11-22"
url: "https://skillstore.io/skills/kml11kml-cost-guard/audits/1"
identifiers:
- type: other
value: "skillstore:kml11kml-cost-guard:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Budget a large code change
Estimate a refactor from expected token counts and compare it with the budget for that task today.
Compare schedules for a recurring job
Compare token demand at two intervals and estimate how long a supplied weekly allowance would last.
Set a retry threshold
Record repeated validation failures under one signature and pause when the threshold is reached.
试试这些提示
Estimate the cost for Sonnet with one million input tokens and 500,000 output tokens. Show the rates used and do not start the work.
Show today's recorded spend for the docs task. Check whether another $2.50 would exceed the daily or task budget. Stop and ask before proceeding if blocked.
Record this checkout test failure under the same signature as earlier attempts. Report the count and pause for approval if the retry threshold is reached.
Compare 15-minute and 60-minute schedules for eight active hours per day. Use 20,000 tokens per run, a 1.25 retry multiplier, and a two-million-token weekly allowance. Report daily runs, daily tokens, and days to exhaust the allowance without scheduling anything.
最佳实践
- Verify current rates and use realistic inputs for retries, overlap, and active hours.
- Record finished runs promptly and use a consistent task label for estimates and checks.
- Review the optional hooks before enabling them and keep provider-side spending controls in place.
避免
- Treating an estimate or the local ledger as a statement of actual charges.
- Assuming the sample Bash hook enforces a per-task limit or stops model calls.
- Reusing the same failure signature for unrelated problems or changing it between retries of the same failure.