.agents/skills/pump-solana-architecture/SKILL.md
Design and derive Program Derived Addresses (PDAs) and account layouts across the Pump ecosystem's four Solana programs — global singletons, per-token accounts, per-user accumulators, and cross-program coordination patterns.
npx skillsauth add x402agent/solana-clawd pump-solana-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Design, derive, and manage Program Derived Addresses (PDAs) and account layouts across the Pump ecosystem's four Solana programs with cross-program invocation patterns.
| Program | ID | Purpose |
|---------|-----|---------|
| Pump | 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P | Bonding curve operations |
| PumpAMM | pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA | Graduated AMM pools |
| PumpFees | pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ | Fee sharing |
| Mayhem | MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e | Mayhem-mode tokens |
GLOBAL_PDA — ["global"] on Pump — protocol-wide configFEE_CONFIG_PDA — ["fee-config"] on Pump — tiered fee settingsGLOBAL_VOLUME_ACCUMULATOR_PDA — ["global_volume_accumulator"] — protocol-wide volumebondingCurvePda(mint) — ["bonding-curve", mint] — token bonding curve statebondingCurveTokenAccountPda(mint) — ["bonding-curve-token-account", mint]feeSharingConfigPda(mint) — ["sharing-config", mint] on PumpFeescanonicalPumpPoolPda(mint) — AMM pool for graduated tokencreatorVaultPda(creator) — ["creator-vault", creator] on PumpammCreatorVaultPda(creator) — ["creator_vault", creator] on PumpAMMuserVolumeAccumulatorPda(user) — ["user_volume_accumulator", user]mayhemMetadataPda(mint) — ["mayhem_metadata", mint] on MayhemmayhemWsolPda() — ["mayhem_wsol"] on MayhemMany operations span both Pump and PumpAMM — the SDK provides aggregation:
| Method | Description |
|--------|-------------|
| getCreatorVaultBalanceBothPrograms | Sum balance from both vaults |
| collectCoinCreatorFeeInstructions | Collect from both programs |
| fetchUserVolumeAccumulatorTotalStats | Aggregate volume across programs |
| claimTokenIncentivesBothPrograms | Claim rewards from both |
Pump Program PumpAMM Program
┌─────────────┐ ┌──────────────────┐
│ create │ │ │
│ buy / sell │ ── migrate ──► │ AMM trading │
│ graduate │ │ fee collection │
└─────────────┘ └──────────────────┘
│ │
└──── PumpFees Program ──────────┘
(fee sharing)
Bonding curve accounts may need extension to BONDING_CURVE_NEW_SIZE (151 bytes) before certain operations:
const extendIx = await PUMP_SDK.extendAccountInstruction({
bondingCurvePda: bondingCurvePda(mint),
bondingCurveAccountInfo
});
findProgramAddressSync for all PDA derivation — never manually compute bump seedsgetMultipleAccountsInfo call"creator-vault" (Pump, hyphen) vs "creator_vault" (AMM, underscore)canonicalPumpPoolPda uses the external pump-swap-sdk, not the Pump programMAyhSm...)development
Formally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions "qedgen", "lean proof", "formal proof", "verify my code", "prove correctness", "formal verification", or wants mathematical guarantees about their implementation.
data-ai
Orchestrate multi-bot trading swarms on Pump.fun with persona-driven agents
tools
End-to-end Solana development playbook (Jan 2026). Prefer Solana Foundation framework-kit (@solana/client + @solana/react-hooks) for React/Next.js UI. Prefer @solana/kit for all new client/RPC/transaction code. When legacy dependencies require web3.js, isolate it behind @solana/web3-compat (or @solana/web3.js as a true legacy fallback). Covers wallet-standard-first connection (incl. ConnectorKit), Anchor/Pinocchio programs, Codama-based client generation, LiteSVM/Mollusk/Surfpool testing, and security checklists.
tools
Buy and sell tokens on Pump.fun bonding curves and AMM pools