economic-analyst

economic-analyst is an agent for Claude Code from solanabr/auditor-skill. It costs 45 tokens per session (614 once invoked), scanned A, original, MIT.

A security-review agent focused on economic and logic risks in Solana programs. It examines how value moves through a program and models attacks such as flash loans, oracle manipulation, and reward-accounting errors.

In plain words
What is it for?
Use it to review staking and reward systems, deposit and withdrawal flows, price oracles, rounding, first-depositor risks, and other value-related logic.
Why use it?
It helps determine whether an attacker could profit from flawed rules or calculations, rather than only finding technical code errors.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions Claude Code.

Part of the auditor plugin — 2 skills, 17 commands, 9 agents shipped together

Good fit Use it to review staking and reward systems, deposit and withdrawal flows, price oracles, rounding, first-depositor risks, and other value-related logic.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/solanabr/auditor-skill/economic-analyst
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.

Clone the repo
git clone --depth 1 https://github.com/solanabr/auditor-skill

Made for: Claude Code.

Or install auditor, the plugin that ships this one along with the rest of its 2 skills, 17 commands, 9 agents.

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-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/solanabr/auditor-skill/economic-analyst/github.svg)](https://agentmods.dev/agents/solanabr/auditor-skill/economic-analyst)
Your own site
<a href="https://agentmods.dev/agents/solanabr/auditor-skill/economic-analyst"><img src="https://agentmods.dev/badge/agents/solanabr/auditor-skill/economic-analyst/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-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/solanabr/auditor-skill/economic-analyst"><img src="https://agentmods.dev/badge/agents/solanabr/auditor-skill/economic-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 614 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.00045 $0.00614
Opus 5.5 $0.00018 $0.00246
Sonnet 5.5 $0.00009 $0.00123
Haiku 4.5 $0.00005 $0.00061

Measured 26d ago against content hash 89d3d545aac9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

economic-analyst 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 26d 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/economic-analyst.md · 17 lines

What it actually says

Economic Analyst

You evaluate value-flow safety and quantify economic attacks. Cover checklist 06 including §6.10 staking / reward accounting, plus the economic known-vectors (first-depositor, donation, MEV, oracle, rounding).

For any candidate High / Critical economic finding, do not stop at yes/no — quantify: attack cost vs extractable value, flash-loanable ceilings, atomicity. When a Surfpool mainnet-fork is available, reproduce deposit→manipulate→withdraw against forked state and record the net P/L: that fork run can be the finding's PoC, and Rule 5b also accepts a narrative PoC with the quantified figures (OUTPUT-RULES.md Rule 5b). The fork fetches that state from its RPC datasource, which receives the program ids and account addresses it reads: record the provider domain (the host's last two DNS labels) for the report's outside-service disclosure (OUTPUT-RULES.md Rule 11b), never a URL with a key.

Report findings with the quantified Attacker-Model block filled.

Tools. Write and edit files only with the Write and Edit tools, never through a heredoc or a shell redirect: the command that spawned you pre-approves writes under its run directory (audit_*/ or incident_*/) and nowhere else. Run each bundled tool as a Bash call of its own, from the working directory, exactly in the form given here: its quoted absolute path first, with nothing in front (no bash, no cd, no VAR=value), then its arguments, every value written out literally; join no other command to it with ; or &&, pipe it only into grep, head, tail or wc, and put no $ or backtick anywhere in the line, inside quotes too. Read a file outside the working directory, the installation's own included, with the Read tool, never with grep, cat or find: Claude Code asks about a shell read there. Those forms run without a prompt under the command's grant; anything else asks the human, or is denied in a non-interactive run: report it as not run, with the reason, and never work around it. Return each distinct note a bundled tool prints, a <tool>: note: line or a runner's >> note: line, once, as it stands: it goes into Coverage & Limitations (OUTPUT-RULES.md Rule 11f). Started directly, with no command and so no step 0, say also: working tree not checked by preflight.

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. 26d ago Changed 89d3d545aac9
  2. 1mo ago Changed · +2 lines c1fa2571ad48
  3. 1mo ago Changed 0cc14e638d45
  4. 3mo ago First seen · 15 lines · 45 tokens per session scan A 8a53434a9292

Subscribe to this mod's changes

economic-analyst is an agent published in the GitHub repository solanabr/auditor-skill (67 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 614 once invoked, about $0.0002 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-30.

Related

economic-analyst compared with agents from other repositories

economic-analyst next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
economic-analystsolanabr/auditor-skillAgent673d agoMITA45Claude Code
depth-consensus-invariantPlamenTSV/plamenAgent3212mo agoMITA36Claude Code
depth-externalPlamenTSV/plamenAgent3212mo agoMITA17Claude Code
helius-integration-specialisthelius-labs/core-aiAgent33yesterdayMITA54Claude Code, Cursor
token-engineersolanabr/solana-ai-kitAgent1042mo agoMITA46Claude Code
defi-engineersolanabr/solana-ai-kitAgent1042mo agoMITA56Claude Code
game-architectsolanabr/solana-ai-kitAgent1042mo agoMITA42Claude Code