Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add XuanRanL/loamwright-SEO-Skill --skill cost-guardgit clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-SkillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/cost-guard)<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/cost-guard"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/cost-guard/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/cost-guard"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/cost-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00306 |
| Opus 5 | $0.00021 | $0.00153 |
| Sonnet 5 | $0.00008 | $0.00061 |
| Haiku 4.5 | $0.00004 | $0.00031 |
Grade A, and why
cost-guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Cost Guard
Implementation: scripts/_core/cost_ledger.py.
This skill is mostly a wrapper to expose cost-guard ops via slash commands.
CLI commands
# Estimate cost for an upcoming API call
python -m scripts._core.cost_ledger --estimate --model claude-opus-4-7 --in 5000 --out 2000
# Get current day's spend summary
python -m scripts._core.cost_ledger --summary --period day --json
# Reset today's ledger (admin only)
python -m scripts._core.cost_ledger --reset-today
Caps (from ~/.xuanran-seo/config.yaml)
cost_limits:
daily_total_usd: 50
per_init_usd: 1.5
per_article_usd: 3.0
per_image_batch_usd: 2.0
Hook integration
hooks/pre_tool_use_cost_guard.pyenforces caps before Bash commands- Every API-calling script logs to ledger after call
See also
scripts/_core/cost_ledger.pyhooks/pre_tool_use_cost_guard.py
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 41 lines · 42 tokens per session scan A 11b006f59605
cost-guard is a skill published in the GitHub repository XuanRanL/loamwright-SEO-Skill (49 stars, last pushed 24d ago), licensed Apache-2.0. It adds 42 tokens to every session and 306 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
comps-analysis
Build comparable-company valuation workbooks in Excel.
excel-author
Build auditable financial workbooks headless via openpyxl.
hyperliquid
Hyperliquid market data, account history, trade review.
solana
Query Solana wallets, tokens, txs, and NFTs in USD.
stocks
Stock quotes, history, search, compare, crypto via Yahoo.
merger-model
Build M&A accretion/dilution workbooks in Excel.