vault-accounting

vault-accounting is a skill for Claude Code, Codex from PlamenTSV/plamen. It costs 37 tokens per session (2,329 once invoked), scanned A, original, MIT.

An audit method for checking the accounting rules of vaults, which hold assets and issue shares representing a user's portion of them.

In plain words
What is it for?
It is for reviewing deposit, withdrawal, strategy, share, fee, and asset-flow logic in EVM and Solana vaults.
Why use it?
It helps find incorrect share prices, fee calculations, withdrawals, or asset balances that can make users receive too much or too little.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for reviewing deposit, withdrawal, strategy, share, fee, and asset-flow logic in EVM and Solana vaults.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plamentsv/plamen/vault-accounting
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 PlamenTSV/plamen --skill vault-accounting
Clone the repo
git clone --depth 1 https://github.com/PlamenTSV/plamen

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 vault-accounting

README.md
[![agentmods](https://agentmods.dev/badge/skills/plamentsv/plamen/vault-accounting/github.svg)](https://agentmods.dev/skills/plamentsv/plamen/vault-accounting)
Your own site
<a href="https://agentmods.dev/skills/plamentsv/plamen/vault-accounting"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/vault-accounting/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 vault-accounting

Your own site · 80×15
<a href="https://agentmods.dev/skills/plamentsv/plamen/vault-accounting"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/vault-accounting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,329 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00037 $0.02329
Opus 5 $0.00018 $0.01164
Sonnet 5 $0.00007 $0.00466
Haiku 4.5 $0.00004 $0.00233

Measured 6d ago against content hash 6dd5bd61cf4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

vault-accounting 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 6d 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.

agents/skills/injectable/vault-accounting/SKILL.md · 133 lines

How it starts

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

Injectable Skill: Vault Accounting Correctness

Protocol Type Trigger: vault (detected in recon TASK 0 Step 1) Inject Into: Core state agent OR economic design agent (merge via M4 hierarchy) Language: Both EVM and Solana (language-agnostic methodology, language-specific examples omitted) Finding prefix: [VA-N]

Orchestrator Decomposition Guide

When decomposing this skill into depth agent investigation questions, map sections to domains:

  • Sections 1, 4: depth-edge-case (share price boundaries, first depositor)
  • Sections 2, 2b: depth-state-trace (time-decay state consistency, anchor timestamps)
  • Section 2c: depth-edge-case OR depth-state-trace (reported-vs-held asset divergence at dust supply)
  • Sections 3, 5, 5b: depth-token-flow (fee flows, cross-fee ratios, fee solvency)
  • Section 6: depth-edge-case OR depth-state-trace (withdrawal fairness)

When This Skill Activates

Recon classifies protocol as vault type based on indicators: deposit/withdraw/shares/strategy/vault. This skill adds vault-specific accounting checks that the general ECONOMIC_DESIGN_AUDIT does not cover.

1. Share Price Consistency Under Adversity

For vault protocols with share-based accounting (LP tokens, vault shares):

Compute share price = total_assets / total_shares at these states:

State total_assets total_shares Share Price Expected Issue?
After deposit {val} {val} {computed} {expected}
After withdrawal {val} {val} {computed} {expected}
After profit report {val} {val} {computed} {expected}
After loss report {val} {val} {computed} {expected}
After fee harvest {val} {val} {computed} {expected}
After time-decay expiry {val} {val} {computed} {expected}

Tag: [TRACE:state={event} -> share_price={value} -> {expected_or_unexpected}]

2. Time-Decay State Consistency (if applicable)

For vaults with time-decay mechanisms (locked profit, vesting schedules, streaming distributions):

  • Identify the BASE variable the decay operates on and the DECAY variable that diminishes over time
  • Enumerate ALL state transitions that modify the BASE (profit, loss, deposit, withdrawal, fee harvest)
  • For EACH transition: does the DECAY variable adjust accordingly? If BASE decreases but DECAY doesn't → DECAY can exceed BASE
  • Does adding new value to the decay (e.g., reporting new profit) reset the timer for ALL remaining decay, or only for the new portion?
  • At decay duration = 0: does everything release immediately? At MAX duration?
  • After full decay completion: is the decay variable exactly 0, or can dust remain?

Read the full file on GitHub · 133 lines

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. 6d ago First seen · 133 lines · 37 tokens per session scan A 6dd5bd61cf4c

Subscribe to this mod's changes

vault-accounting is a skill published in the GitHub repository PlamenTSV/plamen (295 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 2,329 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-09-03.

Related

Other skills, from other repositories

perp-cli

Multi-DEX perpetual futures trading via the perp-cli command-line tool. Use when user asks to: trade perps, check funding rates, scan/execute arbitrage (perp-perp or spot-perp), run delta-neutral strategies, bridge USDC across chains, manage positions/orders/leverage, deposit/withdraw, hedge spot+perp, trade HIP-3…

hypurrquant/perp-cli · 152 tokens

buy-x402

Buy from any x402-gated endpoint. Start with go — it probes, detects the offer type, and runs the right flow. Expert flows underneath: pay for one-shot HTTP services (single authorization, no sidecar), pay-agent for one-shot streaming agent calls, and buy for long-running paid inference (pre-authorized batch via…

ObolNetwork/obol-stack · 132 tokens

ethereum-local-wallet

Execute Ethereum transactions NOW — send ETH, approve tokens, call contracts, sign messages. Uses the in-cluster remote-signer (agents never touch private keys). Use this skill whenever the user wants to DO something onchain, not just learn about wallets.

ObolNetwork/obol-stack · 55 tokens

gas

Current Ethereum gas prices, transaction costs, and the real economics of building on Ethereum today. Use when estimating costs, choosing between mainnet and L2s, or when a user asks about Ethereum being expensive. Counters the.

ObolNetwork/obol-stack · 47 tokens

swap

Swap tokens on the chains the Obol Stack supports — USDC, WETH/ETH, and OBOL on Base and Ethereum mainnet via Uniswap V3. Use when earnings need converting (USDC → ETH for gas, consolidating USDC/OBOL revenue, rebalancing the agent treasury) or the user says 'swap', 'convert', 'sell my USDC', 'get ETH for gas'. Quote…

ObolNetwork/obol-stack · 101 tokens

stablecoin-chain-explorer

Explore stablecoin TVL distribution and yield opportunities by blockchain. Query which chains have the most stablecoins, compare cross-chain yields, and find the best opportunities on Ethereum, BSC, Arbitrum, Base, Polygon, and more. Powered by Barker (https://barker.money) — Yield Primitive for the Agent Economy.

okx/plugin-store · 72 tokens