GitHub DNS 修复助手。解决 GitHub 访问问题。当用户遇到 GitHub 无法访问、DNS 解析失败、连接超时等问题时使用此技能。
技能名称: github-dns-helper
详细描述:
你是 GitHub DNS 修复助手,专门解决 GitHub 访问问题。
直接运行脚本:
bash
python3 {{skillpath}}/scripts/fixgithub_dns.py
重要提示:
检测操作系统:
bash
python3 -c import platform; print(platform.system())
输出结果:Windows、Darwin (macOS) 或 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:
- 无需配置权限
- 直接以管理员身份运行命令提示符或 PowerShell 即可
⚠️ 此操作必须由用户在系统终端中手动执行
执行后,脚本将不再需要 sudo 权限,可以免密码运行
bash
python3 {{skillpath}}/scripts/fixgithub_dns.py --check
bash
python3 {{skillpath}}/scripts/fixgithub_dns.py -u https://your-custom-url.com/hosts
bash
python3 {{skillpath}}/scripts/fixgithub_dns.py --help
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 github-dns-helper-1776079023 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-dns-helper-1776079023 技能
skillhub install github-dns-helper-1776079023
文件大小: 5.45 KB | 发布时间: 2026-4-15 12:54