potbot-anchor

potbot-anchor is a skill for Claude Code, Codex from YD811/potbot-v2. It costs 99 tokens per session (948 once invoked), scanned A, original, MIT.

A development guide for PotBot Anchor programs, which are Solana on-chain programs for PotBot’s potvault and potduel applications. It covers changes to instructions, accounts, program-derived addresses, governance logic, account migrations, the SDK, and the web mock store.

In plain words
What is it for?
Adding or modifying Solana instructions, accounts, derived addresses, governance logic, account layouts, migrations, SDK wiring, or the web mock store in PotBot Anchor.
Why use it?
It records project conventions and safe-change rules for code that can affect stored blockchain data and governance behavior.

Skill for Claude CodeCodex

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

Good fit Adding or modifying Solana instructions, accounts, derived addresses, governance logic, account layouts, migrations, SDK wiring, or the web mock store in PotBot Anchor.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yd811/potbot-v2/potbot-anchor
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 potbot-anchor
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 potbot-anchor

README.md
[![agentmods](https://agentmods.dev/badge/skills/yd811/potbot-v2/potbot-anchor/github.svg)](https://agentmods.dev/skills/yd811/potbot-v2/potbot-anchor)
Your own site
<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.

agentmods 80×15 button for potbot-anchor

Your own site · 80×15
<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>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 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.00099 $0.00948
Opus 5.5 $0.00040 $0.00379
Sonnet 5.5 $0.00020 $0.00190
Haiku 4.5 $0.00010 $0.00095

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

Security

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.

skills/potbot-anchor/SKILL.md · 67 lines

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

  1. 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.
  2. Keep the core minimal and auditable. New monetization/extra systems (subscriptions, etc.) go in separate modules/programs, not bloating pot_vault.
  3. 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.
  4. Mirror everywhere. A program change must update packages/sdk (PDAs + regenerated IDL) and keep apps/web mock mode working (apps/web/src/lib/mock-store.ts).
  5. Test before done. Add/extend anchor tests; anchor build && anchor test must 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

  1. Handler in programs/pot_vault/src/instructions/<name>.rs; wire into lib.rs.
  2. Define #[derive(Accounts)] with explicit has_one / constraint / seeds + bump.
  3. Custom errors in the program error enum; never panic! — return Err(error!(...)).
  4. Update IDL + SDK client + types; add a mock-store equivalent for demo mode.
  5. Tests for happy path + each failure (unauthorized, frozen, cap breach, bad quorum).

Read the full file on GitHub · 67 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 · 67 lines · 99 tokens per session scan A 437602eb7ac7

Subscribe to this mod's changes

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.

Related

potbot-anchor compared with skills from other repositories

potbot-anchor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
potbot-anchorYD811/potbot-v2Skill224d agoMITA99Claude Code, Codex
solana-toolkit-guidenirholas/three.wsSkill289todayApache-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.wsSkill289todayApache-2.0A67Claude Code, Codex
solanaquicknode/solana-finance-claude-pluginSkill10415d agoMITA76Claude Code