github
使用 gh CLI 自动化 GitHub 工作流
Também disponível em: Dicklesworthstone
通过网页界面手动管理 GitHub 仓库既耗时又会打断开发流程。此技能可让你在终端中通过 gh CLI 直接进行顺畅的 GitHub 操作,自动化 PR、issue 和工作流。
Baixar o ZIP da skill
Upload no Claude
Vá em Configurações → Capacidades → Skills → Upload skill
Ative e comece a usar
Testar
A utilizar "github". List open pull requests
Resultado esperado:
- Found 3 open pull requests:
- • #142: Update dependencies (draft) - opened 2 days ago by dependabot
- • #141: Add dark mode support - opened 5 days ago by sarah
- • #138: Fix memory leak in cache - opened 1 week ago by mike
A utilizar "github". Check workflow status
Resultado esperado:
- Recent workflow runs:
- • #456: Build and test - failed (2 hours ago) - View logs: gh run view 456 --log
- • #455: Lint code - success (5 hours ago)
- • #454: Build and test - success (1 day ago)
Auditoria de Segurança
Baixo RiscoThis skill is documentation-only for the GitHub CLI tool. All 55 static findings are false positives caused by the analyzer misinterpreting documentation metadata and GitHub terminology as security issues. The skill enables safe gh CLI command execution through the official GitHub CLI tool.
Fatores de risco
⚙️ Comandos externos (1)
🌐 Acesso à rede (1)
📁 Acesso ao sistema de arquivos (1)
Pontuação de qualidade
O Que Você Pode Construir
简化 PR 流程
创建 PR、请求评审并合并更改,无需离开终端
监控 CI/CD 流水线
从命令行检查工作流状态、查看日志并重试失败任务
管理贡献
高效审查 issue、评论 PR 并分流 bug 报告
Tente Estes Prompts
Create a pull request with title "Fix navigation bug" and description "Updates the header component to handle mobile menu toggle properly"
Show all open issues assigned to me in the current repository
List recent workflow runs and show any that failed
Use the GitHub API to get all comments on pull request #123
Melhores Práticas
- 始终在操作前用 'gh auth status' 验证认证状态
- 对多行 PR 描述使用 HEREDOC 语法以保留格式
- 在创建 PR 前用 'git status' 检查是否有未提交更改
Evitar
- 不要在脚本中硬编码仓库名称 - 请改用变量
- 避免创建没有描述的 PR - 始终提供上下文
- 不要忽略 CI 失败 - 合并前先检查工作流状态
Perguntas Frequentes
这与 GitHub Enterprise 兼容吗?
速率限制是多少?
我能在其他 Git 平台上使用吗?
我的认证令牌安全吗?
为什么我的命令会失败?
这与 GitHub 网页版相比如何?
Detalhes do Desenvolvedor
Estrutura de arquivos
📄 SKILL.md