economic-design-audit

economic-design-audit is a skill for Claude Code, Codex from PlamenTSV/plamen. It costs 28 tokens per session (2,286 once invoked), scanned A, original, MIT.

A security review guide for economic parameters such as fees, rates, supply limits, emissions, inflation, pegs, and price bounds. It checks their allowed ranges and effects throughout the contract.

In plain words
What is it for?
Auditing parameter setters and their use in minting, burning, rewards, fees, rates, rebasing, emissions, and monetary calculations.
Why use it?
It helps find unsafe admin settings, arithmetic overflow, broken economic rules, and failures that appear only at extreme parameter values.

Skill for Claude CodeCodex

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

Good fit Auditing parameter setters and their use in minting, burning, rewards, fees, rates, rebasing, emissions, and monetary calculations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plamentsv/plamen/economic-design-audit
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 economic-design-audit
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 economic-design-audit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/plamentsv/plamen/economic-design-audit"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/economic-design-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,286 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.00028 $0.02286
Opus 5 $0.00014 $0.01143
Sonnet 5 $0.00006 $0.00457
Haiku 4.5 $0.00003 $0.00229

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

Security

Grade A, and why

economic-design-audit 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.

agents/skills/aptos/economic-design-audit/SKILL.md · 178 lines

How it starts

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

ECONOMIC_DESIGN_AUDIT Skill

Trigger Pattern: MONETARY_PARAMETER flag (required) Inject Into: Breadth agents (merged via M4 hierarchy) Purpose: Analyze admin-settable economic parameters (fees, rates, thresholds, emission schedules) for boundary violations, invariant breaks, interaction extremes, and fee formula correctness

For every monetary parameter setter (rate, rebase, supply, mint, burn, emission, inflation, peg, price cap/floor, fee, reward rate) in the protocol:

1. Parameter Boundary Analysis

Parameter Setter Function Min Value Max Value Enforced? Impact at Min Impact at Max
{param} {set_fn} {min} {max} YES/NO {impact} {impact}

For each parameter: substitute min and max into ALL consuming functions. Tag: [BOUNDARY:param=val -> outcome]

Aptos-specific checks:

  • Are bounds enforced via assert!() in the setter? If not, admin can set any value within the type range (u64::MAX, u128::MAX)
  • Does the protocol use u64 or u128 for monetary values? Check for overflow at max values.
  • Are there separate bounds for testnet vs mainnet? (Sometimes hardcoded differently)

2. Economic Invariant Identification

List all economic invariants the protocol must maintain:

Invariant Parameters Involved Can Admin Break It? Functions That Assume It
total_supply == sum(all_balances) mint/burn params YES/NO {fn list}
fees < principal fee_rate YES/NO {fn list}
collateral_ratio >= min_ratio ratio_param YES/NO {fn list}
rewards_distributed <= rewards_pool emission_rate YES/NO {fn list}

For each setter: can changing this parameter break an invariant that user-facing functions depend on? If yes -> finding.

Aptos-specific invariants:

  • FungibleAsset total supply tracking via supply() must match minted - burned
  • Object-based accounting: sum of all store balances == total assets managed
  • Resource conservation: tokens entering protocol == tokens accounted internally

Read the full file on GitHub · 178 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. 11d ago First seen · 178 lines · 28 tokens per session scan A 78ef28594079

Subscribe to this mod's changes

economic-design-audit is a skill published in the GitHub repository PlamenTSV/plamen (295 stars, last pushed 3d ago), licensed MIT. It adds 28 tokens to every session and 2,286 once invoked, about $0.0001 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.