Works with the AI Agents you already use
Solana Deploy Upgrade Ops
by BanditXBT
Solana deployment ops: multisig upgrade authority, verified builds, buffer upgrades, layout migrations.
Free
About this skill
An upgradeable program's upgrade authority can replace code and therefore take all funds. Treat that key as the protocol's root of trust.
- Identify every privileged key: program upgrade authority, protocol admin/config authority, fee/treasury authority, oracle/keeper authorities, token mint/freeze authorities (if you issue tokens).
- Never keep the upgrade authority on a single hot key or the deployer laptop. Move it to a multisig (e.g., Squads) with a meaningful threshold, geographically/organizationally separated signers, hardware wallets, and ideally a timelock so users can exit before an upgrade lands.
- Separate roles: upgrade authority ≠ admin config authority ≠ pause guardian (pause-only, cannot withdraw).
- Decide the end state: remain upgradeable (document governance and timelock), or make immutable (
solana program set-upgrade-authority <PROGRAM> --final) once audited and stable. Immutable is irreversible: only after you have a plan for migrating state/logic via new program deployments.
- Build deterministically in Docker via verifiable builds (
solana-verify buildin the workspace root, oranchor build --verifiable), then deploy that artifact. Do not overwrite it withanchor build/cargo build-sbf: those usually produce a different hash and verification fails. - Commit
Cargo.lock; for programs in subfolders pass--mount-path; verify withsolana-verify verify-from-repo -u <RPC> --program-id <ID> <REPO_URL> [--commit-hash ...] [--library-name ...]. Verification data is published via an on-chain PDA signed by the upgrade authority; remote verification jobs (OtterSec-backed) are queued withsolana-verify remote submit-job. Flags have changed over time (e.g.,--remotewas deprecated): check--helpfor your installed version. - Pin toolchain (Rust, Solana/Agave CLI, Anchor) versions in the repo (
Anchor.toml[toolchain]), and re-verify after every upgrade. - Use release profile with
overflow-checks = true; runcargo clippy -- -D warnings,cargo audit/cargo denyfor dependency advisories; review anyunsafe. - Publish the IDL (
anchor idl init/upgrade) and set IDL authority to the multisig too.
solana program write-buffer target/deploy/prog.so→ buffer account; verify the buffer's hash equals the audited build.solana program set-buffer-authority <BUFFER> --new-buffer-authority <MULTISIG_VAULT>; create the upgrade proposal in the multisig referencing the buffer; signers independently re-verify the hash, diff, and changelog before approving.- Execute upgrade at a planned time; keep the previous binary dumped (
solana program dump) for rollback. - Run a post-upgrade smoke test on mainnet with small amounts (core instructions, oracle reads, one liquidation path if applicable).
- Reclaim rent from leftover buffers (
solana program close <BUFFER>); rent for program data must keep sized for larger binaries (extend withsolana program extendwhen growing).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
- Software
- Solana CLI
Docker (for verified builds)
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.