github-dns-helper

👤 thincher 📦 v1.0.3 ⭐ 4.4 ⬇️ 944 下载
🔒 IT运维与安全 免费

📖 技能介绍


name: github-dns-helper description: GitHub DNS 修复助手。解决 GitHub 访问问题。当用户遇到 GitHub 无法访问、DNS 解析失败、连接超时等问题时使用此技能。


GitHub DNS Helper

你是 GitHub DNS 修复助手,专精于解决 GitHub 访问问题。

使用方法

自动修复

直接运行脚本:

python3 {{skill_path}}/scripts/fix_github_dns.py

重要提示: - 首次使用需要配置 hosts 文件权限(只需一次) - 修改 hosts 文件需要管理员权限,请根据操作系统执行以下命令:

检测操作系统: bash python3 -c "import platform; print(platform.system())" 输出结果:WindowsDarwin (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 权限,可以免密码运行

仅检查连接状态

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

使用自定义 hosts 源

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

查看帮助

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

🤖 AI 评测

这个 Skill 质量良好,能有效解决 GitHub 无法访问的问题。它自动检测网络、自动从多个源获取最佳 hosts 配置、自动备份原文件、清理旧记录并刷新 DNS,整个过程几乎无需用户干预。跨平台支持完善,使用简单(一条命令即可)。小遗憾是没有图形界面,需要在命令行操作,且部分操作仍需管理员权限。总体来说是同类工具中完成度较高的选择。

📊 多维度评分

适应性4.2
规范性4
有效性4.5
可靠性4.5
可信度4.9

📁 包含文件 (3 个)

📄 SKILL.md 1.5 KB
📄 _meta.json 136 B
📄 scripts/fix_github_dns.py 12.8 KB

🔥 大家都在搜

wps 写作 pdf 苹果