solana-security-review

solana-security-review is a skill for Claude Code, Codex from YD811/potbot-v2. It costs 75 tokens per session (798 once invoked), scanned A, original, MIT.

A security review checklist for PotBot Anchor programs and DeFi integrations before they reach mainnet. Mainnet is the live blockchain network, and DeFi means financial applications built on blockchains.

In plain words
What is it for?
It is for checking security before a mainnet deployment and reviewing changes involving funds, CPI calls, or governance, including audit requests.
Why use it?
It focuses reviews on changes and deployments that could affect user funds, cross-program calls, or governance.

Skill for Claude CodeCodex

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

Good fit It is for checking security before a mainnet deployment and reviewing changes involving funds, CPI calls, or governance, including audit requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yd811/potbot-v2/solana-security-review
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 YD811/potbot-v2 --skill solana-security-review
Clone the repo
git clone --depth 1 https://github.com/YD811/potbot-v2

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 solana-security-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/yd811/potbot-v2/solana-security-review/github.svg)](https://agentmods.dev/skills/yd811/potbot-v2/solana-security-review)
Your own site
<a href="https://agentmods.dev/skills/yd811/potbot-v2/solana-security-review"><img src="https://agentmods.dev/badge/skills/yd811/potbot-v2/solana-security-review/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 solana-security-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/yd811/potbot-v2/solana-security-review"><img src="https://agentmods.dev/badge/skills/yd811/potbot-v2/solana-security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 798 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.00075 $0.00798
Opus 5.5 $0.00030 $0.00319
Sonnet 5.5 $0.00015 $0.00160
Haiku 4.5 $0.00007 $0.00080

Measured 3mo ago against content hash 4c0f45205219, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

solana-security-review 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 3mo 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.

skills/solana-security-review/SKILL.md · 64 lines

How it starts

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

Solana security review — PotBot

Run this before mainnet and on any change to fund-moving or governance code. Goal: no path lets anyone move funds except a passed proposal executed by the program. Inspired by Morpho Vault V2's role separation + timelocks + caps.

1. Account & authority checks

  • Every privileged instruction validates the signer (Signer) and ownership (has_one, constraint, address =). No instruction trusts a client-passed pubkey for authority.
  • PDAs derived with correct seeds + bump; no user-supplied bump without verification.
  • Token accounts: verify mint, owner, and that the vault PDA is the authority.
  • No AccountInfo used where a typed/owned account is required.

2. Fund-movement invariants

  • Funds leave the vault ONLY via execute_proposal/execute_swap after a passed vote.
  • Withdraw burns the right share amount and pays proportional value (recomputed on-chain).
  • Share/NAV math: checked arithmetic only (checked_add/mul/div), no silent overflow, no precision loss that lets dust drain value. Guard divide-by-zero on empty pools.
  • Re-entrancy / double-execute: a proposal can execute at most once (status flips, checked first).

3. Governance integrity

  • Vote weight = shares at the correct snapshot; can't vote twice; can't vote after window.
  • Quorum + approval thresholds enforced before execution; maxSwapPct / budget caps respected.
  • Settings changes can't retroactively pass an in-flight proposal.
  • (Recommended) Timelock on risky param changes (quorum, approval %, caps, maxSwapPct).
  • Sentinel/guardian: can freeze pot / cancel a proposal, can NEVER withdraw or change ownership.
  • Clear separation: authority/owner vs sentinel vs member; compromise of one ≠ loss of funds.
  • When frozen: deposits-execution and proposal execution blocked; withdraw policy explicit.

5. CPI safety (Jupiter / SPL / yield protocols)

  • Validate the target program id against an allowlist before CPI.
  • For swaps: enforce min-out / slippage bounds; verify the destination is the vault.
  • Per-protocol and per-asset exposure caps enforced at execution time.
  • Don't forward more accounts/authority than the CPI needs.

Read the full file on GitHub · 64 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. 3mo ago First seen · 64 lines · 75 tokens per session scan A 4c0f45205219

Subscribe to this mod's changes

solana-security-review is a skill published in the GitHub repository YD811/potbot-v2 (22 stars, last pushed 3d ago), licensed MIT. It adds 75 tokens to every session and 798 once invoked, about $0.0003 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

solana-security-review compared with skills from other repositories

solana-security-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
solana-security-reviewYD811/potbot-v2Skill223d agoMITA75Claude Code, Codex
solana-toolkit-guidenirholas/three.wsSkill287yesterdayApache-2.0A50Claude Code, Codex
blockchain-solanaj4flmao/agent-skillsSkill4613d agoMITA142Claude Code, Codex
solana-devStarchild-ai-agent/official-skillsSkill344d agononeA57Claude Code
safe-solana-builderFrankcastleauditor/safe-solana-builderSkill1511mo agononeB148Claude Code, Codex
bnb-chain-toolkit-guidenirholas/three.wsSkill287yesterdayApache-2.0A67Claude Code, Codex
solanaquicknode/solana-finance-claude-pluginSkill10315d agoMITA76Claude Code