money-path-safety

money-path-safety is a skill for Claude Code, Codex from oleg494/coding-kit. It costs 99 tokens per session (1,211 once invoked), scanned A, original, MIT.

A set of safety rules for code that handles money, paid credits, bonuses, refunds, quotas, or other user value. It covers locking, duplicate-request protection, balance separation, charging, logging, and tests.

In plain words
What is it for?
Use it when implementing or changing payments, subscriptions, promotional credits, refunds, usage limits, or any logic that adds or removes value.
Why use it?
It helps prevent double charges, missing refunds, incorrect deductions, and balances changing when an external operation fails.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when implementing or changing payments, subscriptions, promotional credits, refunds, usage limits, or any logic that adds or removes value.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oleg494/coding-kit/money-path-safety
Install

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.

Any agent
npx skills add oleg494/coding-kit --skill money-path-safety
Clone the repo
git clone --depth 1 https://github.com/oleg494/coding-kit

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for money-path-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/oleg494/coding-kit/money-path-safety/github.svg)](https://agentmods.dev/skills/oleg494/coding-kit/money-path-safety)
Your own site
<a href="https://agentmods.dev/skills/oleg494/coding-kit/money-path-safety"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/money-path-safety/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.

agentmods 80×15 button for money-path-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/oleg494/coding-kit/money-path-safety"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/money-path-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.01211
Opus 5.5 $0.00040 $0.00484
Sonnet 5.5 $0.00020 $0.00242
Haiku 4.5 $0.00010 $0.00121

Measured yesterday against content hash f6a682374cf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

money-path-safety 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 yesterday.

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.

.agents/skills/money-path-safety/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Money path safety

Applies to any path that deducts, credits, grants, expires or limits value: payments, balances, quotas, promo codes, referrals, subscriptions. A bug here is silent, permanent and spends real money.

Rules

  1. Lock, idempotency, audit record, double-submit test. Pressing "pay" twice leaves balance +X, not +2X.
  2. Idempotency by default: operation key (invoice id, event id, request id) + recorded outcome + early return. Run the handler twice — the second run is a no-op.
  3. Three outcomes, not two. For every payment or value-provider call, classify what came back:
    • confirmed success → debit exactly once;
    • confirmed failure → no debit, record the rejection;
    • unknown — timeout, reset connection, 5xx, process death between the call and your write → neither debit nor refund yet. An unknown outcome may exist on the provider side: write a pending record under the idempotency key, then reconcile with the provider (query by key, webhook, statement) before debiting or refunding. Never charge twice, never drop the case silently. A timeout is not a failure.
  4. Separate buckets. Trial, promo, purchase and subscription are distinct entities, not one balance; the deduction order (free → bonus → paid) lives in one function.
  5. Gate before expensive work. Check entitlement, limit and money before the external call (CPU, API, LLM); at zero balance it never happens.
  6. Audit record per mutation — one per credit, debit, grant, refund or expiry, with subject (or pseudonymous) id, amount, currency or unit, operation, idempotency key, outcome. Grep by subject reconstructs the history. Identifiers only: no secrets, tokens, card numbers or free-form personal data; the trail is access-controlled, and application logs are not a substitute.
  7. No silent except on side effects. Swallowing an exception is fine in cleanup, never on money, auth or data loss: log and fall back, or fail loudly.
  8. Read-modify-write under one lock or transaction; reading, computing and writing without it is a lost update.
  9. One source of truth. UI, cache and logs are derivatives; read incidents from the store.

Read the full file on GitHub · 53 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. yesterday Changed · -9 lines · -40 tokens per session f6a682374cf3
  2. 2d ago Changed bf97bbbbffe4
  3. 4d ago Changed 16d1120e0ca4
  4. 6d ago Changed 437335cc1c61
  5. 13d ago Changed 7ca6ee3dc21f
  6. 19d ago Changed 004df29a8170
  7. 22d ago Changed 4b8288688a1e
  8. 1mo ago Changed 6faca8ab4695
  9. 1mo ago Changed fba91e19bc00
  10. 1mo ago First seen · 62 lines · 139 tokens per session scan A 0540c9519ce0

Subscribe to this mod's changes

money-path-safety is a skill published in the GitHub repository oleg494/coding-kit (3 stars, last pushed yesterday), licensed MIT. It adds 99 tokens to every session and 1,211 once invoked, about $0.0004 per session on Opus 5.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-31.

Related

Other skills, from other repositories

metronome

Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing, products), invoicing lifecycle (grace periods, finalization, Stripe sync), credit and commit management (prepaid, postpaid…

fcakyon/claude-codex-settings · 184 tokens

receipt-compiler

Use when compiling phone-camera photos of receipts into an A4 PDF expense-claim pack — straighten, B&W scan look, optional cover/numbering/captions.

moonlight-lupin/agent-skills · 38 tokens

lov-skill-pricing

A pricing workflow for creating an explanation-backed pricing card for an AI agent skill. It considers creation and maintenance effort, user value, scarcity, buyer confidence, and distribution potential.

lovstudio/skills · 78 tokens

lov-expense-report

A tool that reads invoice photos, scanned receipts, or expense descriptions and turns them into a categorized Excel reimbursement report. It extracts details such as date, vendor, item, amount, and notes.

lovstudio/skills · 127 tokens

expense-report

Summarizes and validates company expense reports against the corporate travel & meal policy, including per-meal spending caps. Use this skill whenever the user asks about expense-report policy limits, whether a specific expense complies with policy, or asks you to compute the overage amount for a meal expense.

AgentEvalHQ/AgentEval · 61 tokens

ainb-fleet:cost

Show fleet spend — per-session, per-model, per-day, and per-group USD cost rollups for every claude/codex session, sourced live from ainb's burndown analytics (which already prices every provider call). Use when you need spend visibility across a multi-session fleet, want to find the most expensive session/model, or…

stevengonsalvez/agents-in-a-box · 120 tokens