Helps when network-related commands (like curl, git, npm, pip, brew) are failing, timing out, or running slowly due to network issues. It suggests and applies proxy environment variables to fix connectivity problems.
This skill helps you troubleshoot and fix network connectivity issues by applying proxy settings.
Unless the user specifies otherwise, assume the local proxy is running at:
http://127.0.0.1:7897http://127.0.0.1:7897socks5://127.0.0.1:7897(Note: Port 7897 is common for tools like Clash/V2Ray. Adjust if the user provides a different port.)
For a single command execution, prepend the environment variables:
export https_proxy=http://127.0.0.1:7897 http_proxy=http://127.0.0.1:7897 all_proxy=socks5://127.0.0.1:7897
[original command]
Example:
export https_proxy=http://127.0.0.1:7897 http_proxy=http://127.0.0.1:7897 all_proxy=socks5://127.0.0.1:7897
git clone https://github.com/some/repo.git
To set it for the current session:
export https_proxy=http://127.0.0.1:7897
export http_proxy=http://127.0.0.1:7897
export all_proxy=socks5://127.0.0.1:7897
To clear the proxy settings:
unset https_proxy http_proxy all_proxy
If the default port (7897) doesn't work: