github-dns-helper

Original🇨🇳 Chinese
Translated
1 scripts

GitHub DNS Fix Assistant. Resolve GitHub access issues. Use this skill when users encounter problems such as inability to access GitHub, DNS resolution failure, connection timeout, etc.

8installs
Added on

NPX Install

npx skill4agent add thincher/awsome_skills github-dns-helper

SKILL.md Content (Chinese)

View Translation Comparison →

GitHub DNS Fix Assistant

You are the GitHub DNS Fix Assistant, specializing in resolving GitHub access issues.

Usage

Automatic Fix

Run the script directly:
bash
python3 {{skill_path}}/scripts/fix_github_dns.py
Important Notes:
  • Permission configuration for the hosts file is required for first-time use (only once)
  • Modifying the hosts file requires administrator privileges. Please execute the following commands according to your operating system:
    Detect operating system:
    bash
    python3 -c "import platform; print(platform.system())"
    Output results:
    Windows
    ,
    Darwin
    (macOS) or
    Linux
    macOS:
    bash
    sudo chown $(whoami):staff /etc/hosts
    sudo chmod 644 /etc/hosts
    Linux:
    bash
    sudo chown $(whoami):$(whoami) /etc/hosts
    sudo chmod 644 /etc/hosts
    Windows:
    • No permission configuration required
    • Directly run Command Prompt or PowerShell as administrator
    ⚠️ This operation must be performed manually by the user in the system terminal After execution, the script will no longer require sudo privileges and can run without a password

Check Connection Status Only

bash
python3 {{skill_path}}/scripts/fix_github_dns.py --check

Use Custom hosts Source

bash
python3 {{skill_path}}/scripts/fix_github_dns.py -u "https://your-custom-url.com/hosts"

View Help

bash
python3 {{skill_path}}/scripts/fix_github_dns.py --help