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 potbot-anchorgit 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/potbot-anchor)<a href="https://agentmods.dev/skills/yd811/potbot-v2/potbot-anchor"><img src="https://agentmods.dev/badge/skills/yd811/potbot-v2/potbot-anchor/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/potbot-anchor"><img src="https://agentmods.dev/badge/skills/yd811/potbot-v2/potbot-anchor.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.00099 | $0.00948 |
| Opus 5.5 | $0.00040 | $0.00379 |
| Sonnet 5.5 | $0.00020 | $0.00190 |
| Haiku 4.5 | $0.00010 | $0.00095 |
Grade A, and why
potbot-anchor 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 — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PotBot — Anchor program conventions
Programs: packages/program/programs/pot_vault (core) and pot_duel (1v1, post-MVP).
Anchor 0.30.1. Read docs/architecture/program.md and governance.md before non-trivial changes.
Golden rules
- Plan first. Before writing code, list: files touched, new/changed account fields, account-size delta + migration impact, new error codes, and which instructions enforce what. Wait for approval, then implement in small commits.
- Keep the core minimal and auditable. New monetization/extra systems (subscriptions, etc.)
go in separate modules/programs, not bloating
pot_vault. - Backward compatible. Prefer additive
Option<T>fields with sane defaults. Any change to an existing account layout needs a migration plan and a callout before mainnet. - Mirror everywhere. A program change must update
packages/sdk(PDAs + regenerated IDL) and keepapps/webmock mode working (apps/web/src/lib/mock-store.ts). - Test before done. Add/extend anchor tests;
anchor build && anchor testmust be green.
PDAs (keep seeds consistent — see packages/sdk/src/pda.ts)
[b"pot", name, authority] // PotAccount
[b"vault", potPubkey] // vault SOL/token authority
[b"member", potPubkey, wallet] // MemberAccount (shares, depositTotal)
[b"proposal", potPubkey, id_bytes] // ProposalAccount
New PDAs: follow the same [b"<label>", ...keys] pattern; document the seed in program.md.
Instructions (current)
Core: create_pot · deposit · withdraw · create_proposal · vote · execute_proposal · execute_swap (Jupiter v6 CPI) · update_tamagotchi · init_token_mint
Strategy: create_strategy_vault · join_strategy_vault · exit_strategy_vault · evolve_tamagotchi
Adding an instruction
- Handler in
programs/pot_vault/src/instructions/<name>.rs; wire intolib.rs. - Define
#[derive(Accounts)]with explicithas_one/constraint/seeds+bump. - Custom errors in the program error enum; never
panic!— returnErr(error!(...)). - Update IDL + SDK client + types; add a mock-store equivalent for demo mode.
- Tests for happy path + each failure (unauthorized, frozen, cap breach, bad quorum).
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 · 67 lines · 99 tokens per session scan A 437602eb7ac7
potbot-anchor is a skill published in the GitHub repository YD811/potbot-v2 (22 stars, last pushed 4d ago), licensed MIT. It adds 99 tokens to every session and 948 once invoked, about $0.0004 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.
potbot-anchor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| potbot-anchorYD811/potbot-v2 | Skill | 22 | 4d ago | MIT | A | 99 | Claude Code, Codex |
| solana-toolkit-guidenirholas/three.ws | Skill | 289 | today | 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 | 289 | today | Apache-2.0 | A | 67 | Claude Code, Codex |
| solanaquicknode/solana-finance-claude-plugin | Skill | 104 | 15d ago | MIT | A | 76 | Claude Code |