Network Switch Skill

Toggle proxy environment variables for external network access in development workflows.

2|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/MushroomDAO/blog --skill network-switch-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Network Switch Skill
Source: https://github.com/MushroomDAO/blog/tree/main/.agents/skills/network-switch
Command: npx skills add https://github.com/MushroomDAO/blog --skill network-switch-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of inconsistent network connectivity when you need to access external services (like GitHub or Google) by quickly turning a local proxy on and off.

Core Features & Use Cases

  • One-command proxy activation: Exports standard proxy environment variables (http_proxy, https_proxy, all_proxy) to route traffic through a local proxy endpoint (default port 7890).
  • Safe proxy shutdown: Unsets the proxy variables afterward to prevent accidental interference with local network services.
  • Diagnostics included: Provides practical checks to confirm proxy functionality (curl test), verify port listening, and inspect current proxy environment state.
  • Use cases: Installing external Go tools, downloading GitHub release assets, or running a single command with temporary proxy settings.

Quick Start

Source your proxy helper file, enable the proxy, run your external network command (e.g., a GitHub download), then disable the proxy again.

Frequently Asked Questions about Network Switch Skill

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

FAQPage Schema
How do I temporarily enable a proxy for curl and GitHub downloads?

To temporarily enable a proxy for curl and GitHub downloads, this Skill exports http_proxy, https_proxy, and all_proxy environment variables to route traffic through a local endpoint, then unsets them afterward to ensure safe proxy shutdown.

What is the best way to switch network proxy environment variables on and off for Go tool installation?

The best way to switch network proxy environment variables for Go tool installation is using a session-scoped helper that toggles proxy_on and proxy_off, preventing accidental interference with local network services while fetching external resources.

Do I need a local shell configuration to use proxy toggle commands?

Yes, you need to load a local shell configuration like ~/.zshrc_proxy that defines proxy_on, proxy_off, and proxy_status with correct HTTP, HTTPS, and SOCKS settings before executing network access commands.

How does proxy diagnostics verify external network access is working?

Proxy diagnostics verify external network access by performing a curl test to confirm proxy functionality, checking port listening status, and inspecting the current proxy environment state to ensure reliable connectivity.

Why does my local network service break after enabling proxy environment variables?

Local network services break when proxy environment variables remain set after external downloads. This Skill prevents this by unsetting http_proxy and https_proxy variables immediately after your session-scoped task completes.

Can I use this proxy toggle Skill with Clash on port 7890?

Yes, this Skill works with Clash by routing traffic through a local proxy endpoint on default port 7890, allowing controlled access to external websites and registries like GitHub within a specific session scope.