Agent skill

Economic Design Audit

by PlamenTSV in PlamenTSV/plamen

Trigger Pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy)

MITAuto-check passedMedia & Creative

Install Economic Design Audit

skills CLI
$ npx skills add PlamenTSV/plamen --skill economic-design-audit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PlamenTSV/plamen economic-design-audit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/skills/sui/economic-design-audit .claude/skills/economic-design-audit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
economic-design-audit
GitHub stars
303
Token cost
~2.5k tokens
SKILL.md length
1,076 words
Files
1
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Trigger Pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy)

  • Works in 5 steps: Parameter Boundary Analysis → Economic Invariant Identification → Rate/Supply Interaction Matrix → …
  • Pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy)
  • SKILL.md covers 1. Parameter Boundary Analysis, 2. Economic Invariant…, 3. Rate/Supply Interaction… and 4. Fee Formula Verification at…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Economic Design Audit is an agent skill from PlamenTSV/plamen. Trigger Pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy)

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Design review and critique. The repository describes itself as: Autonomous Web3 security audit agent for Claude Code. The licence is MIT.

When your agent uses it

  • Pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy)
  • Tasks that involve Design review and critique

Example prompts

  • “/economic-design-audit”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Parameter Boundary Analysis
  2. Economic Invariant Identification
  3. Rate/Supply Interaction Matrix
  4. Fee Formula Verification at Normal Values
  5. Emission/Inflation Sustainability

What it can do on your machine

Read from SKILL.md and the folder at commit 795962b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Economic Design Audit loads about 2.5k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 1,076 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from PlamenTSV/plamen at commit 795962b, republished under its MIT licence (© PlamenTSV). 1,076 words, ~2,537 tokens.

Download SKILL.mdSave it as .claude/skills/economic-design-audit/SKILL.md (or your agent's skills folder).
name
economic-design-audit
description
Trigger Pattern MONETARY_PARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy)

ECONOMIC_DESIGN_AUDIT Skill (Sui)

Trigger Pattern: MONETARY_PARAMETER flag (required) Inject Into: Breadth agents (merged via M4 hierarchy) Purpose: Analyze economic design of monetary parameters in Sui Move protocols for boundary violations, invariant breaks, and fee formula errors

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

1. Parameter Boundary Analysis

Enumerate all admin-settable monetary parameters stored in shared config objects:

ParameterSetter FunctionRequired CapMin ValueMax ValueEnforced?Impact at MinImpact at Max
{param}{module::set_param}{AdminCap}{min}{max}{YES/NO}{trace impact}{trace impact}

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

Sui-specific: Parameters are typically stored in shared objects (e.g., Config, Registry, Pool). Check:

  • Are bounds enforced in the setter function? (assert!(value >= MIN && value <= MAX))
  • Can the setter bypass bounds? (e.g., separate force_set function)
  • Are bounds hardcoded or stored (and themselves admin-settable)?

Move arithmetic model: Move uses unsigned integers only (u8, u64, u128, u256). No native BPS type.

  • u64 max: 18,446,744,073,709,551,615 (~1.8e19). SUI has 9 decimals, so max u64 represents ~18.4 billion SUI.
  • Overflow: Move aborts on arithmetic overflow/underflow by default (no silent wrapping). An overflow in a fee calculation aborts the entire transaction.
  • Division by zero: Move aborts. Check all divisions where divisor is a parameter or derived from state.
  • amount * fee_bps where amount is large: e.g., 1e18 * 10000 = 1e22 which OVERFLOWS u64. Check for u128 intermediate casts.

2. Economic Invariant Identification

List all economic invariants the protocol must maintain:

InvariantParameters InvolvedCan Admin Break It?Functions That Assume It
total_supply == sum(user_balances)supply, balances{YES/NO via mint/burn cap}{list}
fee_rate <= MAX_FEEfee_rate, MAX_FEE{YES/NO}{list}
collateral_value >= debt_valuecollateral_ratio, prices{YES/NO via param change}{list}

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

Sui invariant patterns:

  • TreasuryCap<T> controls minting -- does unlimited minting break a peg or backing invariant?
  • Shared pool balances must satisfy: balance::value(&pool.token_a) * balance::value(&pool.token_b) >= k (AMM invariant)
  • Vault invariant: total_shares * price_per_share <= total_assets (no unbacked shares)

3. Rate/Supply Interaction Matrix

For protocols with multiple monetary parameters that interact:

Parameter AParameter BInteractionCan A*B Produce Extreme Output?
{reward_rate}{total_supply}reward_per_token = rate / supplyYES if supply -> 0 while rate > 0
{fee_rate_A}{fee_rate_B}compound fee = A then BYES if both at max -> excessive total fee
{mint_cap}{burn_rate}net supply = minted - burnedYES if mint >> burn -> inflation spiral

Check: can two independently-valid parameter settings combine to create an extreme or invalid economic state? (Rule 14 constraint coherence)

Sui-specific interactions:

  • TreasuryCap mint + admin fee rate: can mint + fee combine to extract more than pool holds?
  • Epoch-based emission + stake/unstake delay: can users game emission timing around epoch boundaries?

4. Fee Formula Verification at Normal Values

For every fee-related computation (fee calculation, fee deduction, fee distribution):

4a. Concrete Example Computation

Pick 3 representative fee rates (e.g., 1% = 100 BPS, 5% = 500 BPS, 10% = 1000 BPS) and trace through the actual code formula:

Fee ParamValueFormulaInput AmountExpected OutputActual OutputMatch?
{fee_bps}100{code formula}1_000_000_000{expected}{computed}YES/NO
{fee_bps}500{code formula}1_000_000_000{expected}{computed}YES/NO
{fee_bps}1000{code formula}1_000_000_000{expected}{computed}YES/NO

Tag: [BOUNDARY:fee_bps={val} -> effective_rate={computed_rate}]

Red flags:

  • Gross-up formulas: amount * MAX / (MAX - fee) charges effective rate of fee/(MAX-fee), not fee/MAX. At 5% this is 5.26%, not 5%. Document whether this is intentional.
  • Fee-on-fee: Does fee A's output feed into fee B's input? If so, the combined effective rate is not simply A + B.
  • Rounding direction: In Sui Move, integer division truncates (rounds toward zero). Does this favor the protocol or the user? For fee deductions, amount * fee / MAX rounds down (user-favorable). Is (amount * fee + MAX - 1) / MAX used for protocol-favorable rounding?
  • Precision loss: With u64 math, do intermediate products overflow? Sui Move aborts on overflow -- is u128 used for intermediate calculations? Check for (amount as u128) * (fee as u128) / (MAX as u128) patterns.
  • Gas budget constraint: Sui transaction gas budget cap is 50 SUI (~50 billion MIST). If fee computation involves iteration, dynamic field traversal, or complex math, can gas exhaustion prevent fee collection or cause user transactions to fail? Check: are there unbounded loops in fee distribution paths?
Show full SKILL.md (386 more words)Show less
4b. Fee Interaction Matrix

For protocols with multiple fee types:

Fee AFee BA Output Feeds B Input?Combined Effective RateIndependent Rate SumDiscrepancy?
4c. Fee Impact on Share Price

If the protocol uses share-based accounting (vaults, LP tokens):

  • After fee deduction: does the share price change?
  • Does the fee mechanism create a spread between deposit and immediate withdrawal?
  • Is the spread documented and within reasonable bounds?
4d. Fee-Base Consistency

For every fee computation, trace the base amount (the value the fee is computed on) through ALL subsequent code paths:

Fee SiteBase Amount VariableModified After Fee?Modified HowFee Recomputed?Overcharge?

Methodology:

  • Identify the variable used as fee base (e.g., amount, deposit_amount)
  • Trace that variable FORWARD from the fee computation to the end of the function
  • If the variable is reduced (capped, downscaled, adjusted to remaining capacity) AFTER the fee was computed -> the fee was charged on a larger base than what was actually used
  • Concrete test: If fee = amount * fee_rate / MAX, then amount is reduced to leftover (e.g., remaining allocation), the user paid fee on amount but only leftover was processed -- overcharge of fee * (1 - leftover/amount)

5. Emission/Inflation Sustainability

For protocols with emission/inflation/rebase mechanics:

Emission ParamMax RateOver 1 DayOver 1 WeekOver 1 YearSustainable?
{reward_rate}{max}{computed}{computed}{computed}{analysis}
  • What is the maximum emission rate over 1 day / 1 week / 1 year?
  • Can emissions exceed the protocol's capacity to back them?
  • Is there a supply cap enforced by TreasuryCap or explicit checks? Can it be bypassed by parameter changes?
  • Epoch-based emissions: If rewards are distributed per epoch (~24h on Sui), can reward pool be drained faster than replenished?

Finding Template

markdown
**ID**: [ED-N]
**Severity**: [based on fund impact and parameter reachability]
**Step Execution**: check1,2,3,4,5 | x(reasons) | ?(uncertain)
**Rules Applied**: [R10:check, R14:check]
**Location**: module::function:LineN
**Title**: [Parameter/invariant issue] in [function] enables [impact]
**Description**: [Specific economic design issue with parameter trace]
**Impact**: [Quantified impact at boundary values]

Instantiation Parameters

{CONTRACTS}           -- Move modules to analyze
{CONFIG_OBJECTS}      -- Shared config/registry objects
{MONETARY_PARAMS}     -- Admin-settable monetary parameters
{FEE_FUNCTIONS}       -- Functions computing or deducting fees
{INVARIANTS}          -- Known economic invariants
{EMISSION_PARAMS}     -- Emission/inflation parameters
{CAP_TYPES}           -- Capability types required for parameter changes

Output Schema

FieldRequiredDescription
parameter_boundariesyesAll monetary params with min/max analysis
invariantsyesEconomic invariants and breakability
interaction_matrixyesCross-parameter interactions
fee_verificationyesFee formula correctness at normal values
findingyesCONFIRMED / REFUTED / CONTESTED
evidenceyesCode locations with line numbers
step_executionyesStatus for each step

Step Execution Checklist (MANDATORY)

SectionRequiredCompleted?
1. Parameter Boundary AnalysisYESY/N/?
2. Economic Invariant IdentificationYESY/N/?
3. Rate/Supply Interaction MatrixIF >1 monetary paramY/N(N/A)/?
4. Fee Formula Verification at Normal ValuesIF fee parameters detectedY/N(N/A)/?
4d. Fee-Base ConsistencyIF fee parameters detectedY/N(N/A)/?
5. Emission/Inflation SustainabilityIF emission/rebase detectedY/N(N/A)/?

© PlamenTSV, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agents/skills/sui/economic-design-audit of PlamenTSV/plamen.

Open the folder on GitHubat commit 795962b

Compare with similar skills

Economic Design Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Economic Design Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Economic Design Audit this skillPlamenTSV/plamen303—~2.5kAutomated safety check: PassMIT
Consult ClaudeEpicenterHQ/epicenter4.8k—~2kAutomated safety check: PassCustom licence
System Atlasinkboard/system-atlas430—~2.3kAutomated safety check: PassMIT
Design Image Studiokangarooking/design-image-studio102—~1.5kAutomated safety check: PassMIT
Kicad Reviewmixelpixx/Konnect927—~3.2kAutomated safety check: PassAGPL-3.0
Design AuditUniClipboard/UniClipboard1.9k—~554Automated safety check: PassAGPL-3.0

Similar skills

  • Consult Claude

    EpicenterHQ/epicenter

    Assign Claude Code a read-only investigation, recommendation, or finished text draft.

    4.8k GitHub stars~2k tokensUpdated 3 days ago
    Media & CreativeAuto-check passed
  • System Atlas

    inkboard/system-atlas

    Build and maintain an explorable, progressively-disclosed isometric "atlas" of a system's architecture — an interactive page (hover to read, click to pin, go inside for steps, moving data packets…

    430 GitHub stars~2.3k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Design Image Studio

    kangarooking/design-image-studio

    Directly generate design-oriented AI images with strong creative direction and prompt engineering.

    102 GitHub stars~1.5k tokensUpdated 5 mo ago
    Media & CreativeAuto-check passed
  • Kicad Review

    mixelpixx/Konnect

    Design review and validation workflow for KiCAD projects via MCP tools.

    927 GitHub stars~3.2k tokensUpdated 5 days ago
    Media & CreativeAuto-check passed
  • Design Audit

    UniClipboard/UniClipboard

    定期审计代码库的工程设计问题(高心智复杂度、单一真相源被破坏、catch-all 胖接口、死代码、散落魔法字面量、泄漏抽象、资源生命周期靠环形缓冲)与可优化点,范围限定为自上次审计以来的 git churn,每条发现都落到 file:line 并对照本项目自己的 VISION.md / 各级 AGENTS.md / memory…

    1.9k GitHub stars~554 tokensUpdated today
    Media & CreativeAuto-check passed
  • L1 AI Design Review

    PaperMoonuu/Design-workflow-skills

    L1 × AI 设计评审:对已完成的单页、局部 UI 设计稿进行小型迭代评审,识别影响面、状态遗漏、文案与一致性风险,并给出 P0/P1/P2 建议和验收清单。用户提供 Figma 链接、截图、前后设计稿或可评审原型,并要求设计走查、风险评审或开发前 UI 检查时使用;不用于设计前方案预检、完整多页面流程或 L2 开发交付。

    316 GitHub stars~492 tokensUpdated 19 days ago
    Media & CreativeAuto-check passed

More from PlamenTSV/plamen

All 87 skills in this repo
  • Audit Prep

    PlamenTSV/plamen

    Prepare Solidity projects for a security audit — test coverage, test quality, NatSpec docs, code hygiene, dependency health, best-practice enforcement, deployment readiness, and project…

    303 GitHub stars~3.7k tokensUpdated 14 days ago
    Auto-check passed
  • Verification Protocol

    PlamenTSV/plamen

    Trigger Pattern Always (used by all verifier agents) - Inject Into security-verifier agents (Phase 5)

    303 GitHub stars~3.5k tokensUpdated 14 days ago
    Auto-check passed
  • Ability Analysis

    PlamenTSV/plamen

    Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth agents, depth agents

    303 GitHub stars~3.3k tokensUpdated 14 days ago
    Auto-check passed
  • Ability Analysis

    PlamenTSV/plamen

    Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents

    303 GitHub stars~3.2k tokensUpdated 14 days ago
    Auto-check passed
  • Account Lifecycle

    PlamenTSV/plamen

    Trigger Pattern ACCOUNTCLOSING flag detected (close/CloseAccount usage) - Inject Into Breadth agents, depth agents

    303 GitHub stars~1.2k tokensUpdated 14 days ago
    Auto-check passed
  • Account Validation

    PlamenTSV/plamen

    Trigger Pattern Always required for Solana audits - Inject Into Breadth agents, depth agents

    303 GitHub stars~1.7k tokensUpdated 14 days ago
    Auto-check passed

Questions about Economic Design Audit

What does Economic Design Audit do?

Trigger Pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy). Economic Design Audit is an agent skill from PlamenTSV/plamen.

When should I use Economic Design Audit?

Economic Design Audit fits situations like: pattern MONETARYPARAMETER flag (required) - Inject Into Breadth agents (merged via M4 hierarchy); tasks that involve Design review and critique.

How do I install Economic Design Audit in Claude Code?

Run `npx skills add PlamenTSV/plamen --skill economic-design-audit -a claude-code`. Or copy the skill folder (agents/skills/sui/economic-design-audit in PlamenTSV/plamen) into .claude/skills/economic-design-audit in your project. Claude Code loads it when a task matches its description.

How do I install Economic Design Audit in Codex?

Run `npx skills add PlamenTSV/plamen --skill economic-design-audit -a codex`. Or copy the skill folder (agents/skills/sui/economic-design-audit in PlamenTSV/plamen) into .agents/skills/economic-design-audit in your project. Codex loads it when a task matches its description.

Can I use Economic Design Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PlamenTSV/plamen --skill economic-design-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/economic-design-audit, .gemini/skills/economic-design-audit, .github/skills/economic-design-audit and .opencode/skills/economic-design-audit in your project.

What does Economic Design Audit need to run?

SKILL.md names no scripts, command-line tools or credentials: Economic Design Audit is instructions for the agent only.

Does Economic Design Audit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Economic Design Audit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Economic Design Audit use?

Economic Design Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Economic Design Audit use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Economic Design Audit?

Skills that share tags, products or a category with Economic Design Audit: Consult Claude (EpicenterHQ/epicenter, 4.8k stars), System Atlas (inkboard/system-atlas, 430 stars), Design Image Studio (kangarooking/design-image-studio, 102 stars) and Kicad Review (mixelpixx/Konnect, 927 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Economic Design Audit?

PlamenTSV (a GitHub user) maintains it in PlamenTSV/plamen, which has 303 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.

Source: PlamenTSV/plamen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.