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.
npx skills add YD811/potbot-v2 --skill solana-security-reviewgit clone --depth 1 https://github.com/YD811/potbot-v2Wrote 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.
[](https://agentmods.dev/skills/yd811/potbot-v2/solana-security-review)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
AccountInfoused where a typed/owned account is required.
2. Fund-movement invariants
- Funds leave the vault ONLY via
execute_proposal/execute_swapafter 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).
4. Roles (recommended hardening)
- 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.
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.
- 3mo ago First seen · 64 lines · 75 tokens per session scan A 4c0f45205219
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.
solana-security-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| solana-security-reviewYD811/potbot-v2 | Skill | 22 | 3d ago | MIT | A | 75 | Claude Code, Codex |
| solana-toolkit-guidenirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 50 | Claude Code, Codex |
| blockchain-solanaj4flmao/agent-skills | Skill | 46 | 13d ago | MIT | A | 142 | Claude Code, Codex |
| solana-devStarchild-ai-agent/official-skills | Skill | 34 | 4d ago | none | A | 57 | Claude Code |
| safe-solana-builderFrankcastleauditor/safe-solana-builder | Skill | 151 | 1mo ago | none | B | 148 | Claude Code, Codex |
| bnb-chain-toolkit-guidenirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |
| solanaquicknode/solana-finance-claude-plugin | Skill | 103 | 15d ago | MIT | A | 76 | Claude Code |