通过将 AI 集成到 GitHub Actions 中来简化开发工作流程。本技能提供可直接使用的模式,用于自动化 PR 审查、智能问题分类和 CI/CD 优化。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“github-workflow-automation”。 PR review for a feature adding user authentication
预期结果:
- ## Summary
- Adds JWT-based authentication with refresh tokens.
- ## Potential Issues
- - Line 42: Token expiration not validated before use
- - Line 78: Password hashing uses default iterations - consider increasing
- ## Suggestions
- - Add rate limiting to login endpoint
- - Implement token blacklist for logout functionality
正在使用“github-workflow-automation”。 Issue: App crashes when uploading large files
预期结果:
- Issue classified as: bug (high severity)
- Affected area: backend
- Auto-applied labels: bug, priority: high, area: backend
- Comment posted requesting: reproduction steps, file size details, server environment
安全审计
安全Static analysis flagged 136 patterns that are all false positives. The detected exec() calls are Node.js child_process functions for git commands, not Python exec(). Shell command substitutions and backticks are standard GitHub Actions workflow syntax. Environment variable access follows proper GitHub Secrets patterns. No malicious patterns, credential exfiltration, or prompt injection detected. This is a legitimate DevOps documentation skill.
质量评分
你能构建什么
工程团队负责人
为拉取请求自动提供代码审查反馈,确保一致的质量标准,并在人工审查前发现常见问题。
DevOps 工程师
通过智能地根据每个拉取请求中更改的文件选择要运行的测试套件,来减少 CI/CD 流水线的执行时间。
开源项目维护者
自动对传入的问题进行分类和添加标签,向 bug 报告者请求缺失的信息,并识别首次贡献者。
试试这些提示
审查此拉取请求的差异并提供反馈:1) 更改摘要,2) 潜在的 bug 或问题,3) 改进建议,4) 安全问题。格式化为 GitHub 风格的 markdown,并在适用时提供具体的行引用。
分析此 GitHub 问题并返回 JSON:type (bug/feature/question/docs/other)、severity level、affected area、summary、是否提供了复现步骤,以及建议的标签。问题标题:{title}。问题正文:{body}评估这些部署更改的风险。返回 JSON:riskLevel (low/medium/high)、具体问题、建议,以及是否需要人工审批。考虑数据库迁移、破坏性更改和安全影响。更改内容:{changes}我需要将提交 {commitHash} 挑选到分支 {targetBranch}。分析提交差异和受影响文件的当前状态。预测任何合并冲突并建议解决策略。如果发生冲突,提供逐步命令来解决冲突。最佳实践
- 将 API 密钥和令牌存储在 GitHub 密钥中,切勿在 workflow 文件中硬编码
- 在 workflow job 定义中使用最小必需权限(根据需要设置读/写范围)
- 为所有 job 设置超时,防止 workflow 挂起和资源浪费
- 在运行之间缓存依赖项以加快 workflow 执行
- 使用路径过滤器在某些文件未更改时跳过不相关的 job
避免
- 直接在 workflow YAML 文件中硬编码 API 密钥或令牌
- 使用过度宽松的权限,如只需读取时却使用 contents: write
- 在每个小更改上都运行 AI 审查,而不过滤显著的差异
- 为方便起见跳过状态检查或绕过分支保护
常见问题
此技能支持哪些 AI 模型?
如何配置 Anthropic API 密钥?
此技能能否与自托管运行器配合使用?
如何自定义 PR 审查提示?
如果超出 AI API 速率限制会怎样?
我可以将此用于私有仓库吗?
开发者详情
作者
sickn33许可证
MIT
仓库
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/github-workflow-automation引用
main
文件结构
📄 SKILL.md