network-proxy

Apply proxy environment variables to resolve network connectivity issues for command-line tools.

3.9k|388|Updated Dec 6, 2018
One-click install
npx skills add https://github.com/didi/mpx --skill network-proxy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: network-proxy
Source: https://github.com/didi/mpx/tree/main/.agents/skills/network-proxy
Command: npx skills add https://github.com/didi/mpx --skill network-proxy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill resolves network-related command failures, timeouts, and slow performance caused by connectivity problems by applying proxy environment variables.

Core Features & Use Cases

  • Troubleshoot Network Errors: Helps diagnose and fix issues like "connection refused" or "network unreachable".
  • Improve Download/Install Speed: Addresses slow performance for network-dependent operations.
  • Apply Proxy Settings: Configures HTTP, HTTPS, and SOCKS proxies temporarily or for the current session.
  • Use Case: If git clone is failing due to a network timeout, this skill can be used to set up the necessary proxy environment variables to enable the connection.

Quick Start

Use the network-proxy skill to set the http proxy to http://127.0.0.1:7897 for the current terminal session.

Frequently Asked Questions about network-proxy

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

FAQPage Schema
How do I fix git clone network timeout or connection refused errors?

To fix git clone network timeout or connection refused errors, apply HTTP, HTTPS, or SOCKS proxy environment variables to route traffic through a local proxy, resolving connectivity failures for command-line operations.

What is the best way to set a proxy for curl and npm in a terminal session?

The best way to set a proxy for curl and npm in a terminal session is configuring proxy environment variables session-wide, ensuring all subsequent network-dependent command-line operations route through the specified proxy address.

Does configuring environment variables improve slow download speeds for command-line tools?

Configuring proxy environment variables does improve slow download speeds for command-line tools by redirecting network requests through an optimized path, addressing slow performance in operations like curl, git, and npm.

Can I apply a proxy temporarily for a single command execution instead of the whole session?

You can apply a proxy temporarily for a single command execution by scoping the environment variables to that specific command, preventing permanent changes to your session-wide configuration.

Why does my network proxy configuration stop working for git operations?

Your network proxy configuration might stop working for git operations if the proxy environment variables are unset or incorrectly scoped, causing operations to revert to direct connections and fail.

How do I unset proxy environment variables to restore direct network connectivity?

To unset proxy environment variables and restore direct network connectivity, remove the HTTP, HTTPS, and SOCKS proxy settings from your current session, reverting command-line tools to default network routing.