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.5 $0.00015 $0.00932
Sonnet 5.5 $0.00007 $0.00466
Haiku 4.5 $0.00004 $0.00233

Measured 2mo ago against content hash 6dd5bd61cf4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (320 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 2,329 once invoked, about $0.0001 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-09-03.

Related

vault-accounting compared with skills from other repositories

vault-accounting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vault-accountingPlamenTSV/plamenSkill3202mo agoMITA37Claude Code, Codex
trading-futuresalsk1992/CloddsBotSkill3.1k16d agoMITA28Claude Code, Codex
pump-swarmalsk1992/CloddsBotSkill3.1k16d agoMITA13Claude Code, Codex
riskalsk1992/CloddsBotSkill3.1k16d agoMITA18Claude Code, Codex
trading-solanaalsk1992/CloddsBotSkill3.1k16d agoMITA28Claude Code, Codex
copy-tradingalsk1992/CloddsBotSkill3.1k16d agoMITA16Claude Code, Codex
feedsalsk1992/CloddsBotSkill3.1k16d agoMITA13Claude Code, Codex