Works with the AI Agents you already use

    Solana Deploy Upgrade Ops

    by BanditXBT

    1

    Solana deployment ops: multisig upgrade authority, verified builds, buffer upgrades, layout migrations.

    Free

    Security scanned

    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.

    1. 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).
    2. 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.
    3. Separate roles: upgrade authority ≠ admin config authority ≠ pause guardian (pause-only, cannot withdraw).
    4. 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 build in the workspace root, or anchor build --verifiable), then deploy that artifact. Do not overwrite it with anchor build/cargo build-sbf: those usually produce a different hash and verification fails.
    • Commit Cargo.lock; for programs in subfolders pass --mount-path; verify with solana-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 with solana-verify remote submit-job. Flags have changed over time (e.g., --remote was deprecated): check --help for 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; run cargo clippy -- -D warnings, cargo audit/cargo deny for dependency advisories; review any unsafe.
    • Publish the IDL (anchor idl init/upgrade) and set IDL authority to the multisig too.
    1. solana program write-buffer target/deploy/prog.so → buffer account; verify the buffer's hash equals the audited build.
    2. 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.
    3. Execute upgrade at a planned time; keep the previous binary dumped (solana program dump) for rollback.
    4. Run a post-upgrade smoke test on mainnet with small amounts (core instructions, oracle reads, one liquidation path if applicable).
    5. Reclaim rent from leftover buffers (solana program close <BUFFER>); rent for program data must keep sized for larger binaries (extend with solana program extend when growing).

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 CLIDocker (for verified builds)

    Permissions

    No special permissions declared or detected

    Listed13 days ago

    What's inside

    Frequently Asked Questions

    Solana deployment ops: multisig upgrade authority, verified builds, buffer upgrades, layout migrations.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use solana-deploy-upgrade-ops on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    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.

    Free