Devnet vs Mainnet Safety

Enforce safety checks for Solana devnet to mainnet deployments.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/2Rds/block-drive-vault --skill devnet-vs-mainnet-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Devnet vs Mainnet Safety
Source: https://github.com/2Rds/block-drive-vault/tree/main/plugins/blockdrive-solana/skills/devnet-mainnet-safety
Command: npx skills add https://github.com/2Rds/block-drive-vault --skill devnet-vs-mainnet-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Operating on Solana mainnet involves real funds and irreversible transactions. This skill provides safety checks, environment detection patterns, and best practices to prevent costly mistakes during development-to-production transitions.

Core Features & Use Cases

  • Automatic network detection (devnet vs mainnet) to ensure correct environment is targeted
  • Pre-operation validations and risk warnings to prevent irreversible actions
  • Environment-switch guidance and deployment readiness checks for safe production deployments
  • Pre-deployment checklist and configuration patterns to standardize setups across teams

Quick Start

Review your current environment and confirm readiness before production. Set SOLANA_NETWORK to devnet for testing, verify safety checks pass, then switch to mainnet only after all warnings are resolved.

Frequently Asked Questions about Devnet vs Mainnet Safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental Solana mainnet deployments from devnet?

To prevent accidental Solana mainnet deployments, you can use environment detection patterns and pre-operation validations to ensure you are targeting devnet. This involves setting the SOLANA_NETWORK variable to devnet and verifying safety checks pass before switching environments.

What are the necessary pre-deployment checks for Solana mainnet?

Necessary pre-deployment checks for Solana mainnet include verifying environment detection, resolving all risk warnings, and completing a pre-deployment checklist. These checks ensure production deployments remain deliberate, auditable, and safe from irreversible actions.

How does environment detection work for Solana devnet and mainnet?

Environment detection for Solana devnet and mainnet works through automatic checks and configuration-based patterns, often utilizing the SOLANA_NETWORK variable. It identifies the active network to ensure pre-operation validations target the correct environment.

Can I use configuration patterns to standardize Solana deployment safety checks?

Yes, you can use configuration patterns to standardize Solana deployment safety checks across teams. This skill provides sample configurations and a pre-deployment checklist to standardize setups, enforce risk warnings, and guide environment switches.

Why do I need a dangerous-operations list for Solana production deployments?

You need a dangerous-operations list for Solana production deployments because mainnet involves real funds and irreversible transactions. The list provides risk warnings to prevent costly mistakes during development-to-production transitions.