技能 github-actions-templates
⚙️

github-actions-templates

安全 🌐 網路存取⚙️ 外部命令📁 檔案系統存取🔑 環境變數

快速构建 GitHub Actions 工作流

也可從以下取得: sickn33

CI/CD 工作流编写耗时且容易配置错误。此技能提供经过验证的 GitHub Actions 模板,适用于测试、构建、部署和安全扫描。

支援: Claude Codex Code(CC)
📊 69 充足
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「github-actions-templates」。 Create a matrix build for Python 3.9 to 3.12 on Linux, macOS, and Windows.

預期結果:

  • 在 ubuntu-latest、macos-latest 和 windows-latest 上运行
  • 测试 Python 3.9、3.10、3.11 和 3.12
  • 使用 pip 安装依赖并运行 pytest
  • 在推送和拉取请求时触发

正在使用「github-actions-templates」。 Create a Docker workflow that pushes to GHCR on version tags.

預期結果:

  • 使用 GitHub_TOKEN 登录到 GitHub 容器仓库
  • 使用 Docker 元数据操作提取元数据
  • 使用 GitHub Actions 缓存构建和推送
  • 使用分支和语义化版本模式打标签

安全審計

安全
v4 • 1/17/2026

This skill contains only static documentation with YAML workflow examples. All static findings are false positives: the scanner misinterpreted markdown code fences as backtick execution, GitHub Actions secret injection syntax as credential exposure, and YAML version pinning as weak crypto. The skill does not execute code, access files, or make network requests.

2
已掃描檔案
509
分析行數
4
發現項
4
審計總數
審計者: claude 查看審計歷史 →

品質評分

38
架構
100
可維護性
85
內容
21
社群
100
安全
91
規範符合性

你能建構什麼

启动 CI 基线

为新仓库启动测试和代码检查工作流,保持构建可靠性。

标准化流水线

跨团队复用 Docker 构建、审批和可复用工作流模板。

添加安全扫描

采用 Trivy 和 Snyk 工作流示例,尽早发现漏洞。

試試這些提示

入门测试流程
Create a GitHub Actions workflow that runs npm ci, lint, and tests on pushes and pull requests using Node 20.
Docker 构建发布
Provide a workflow to build and push a Docker image to GHCR with tags for branches and semver releases.
Kubernetes 部署
Draft a workflow that configures AWS credentials and deploys manifests from k8s/ to production.
可复用测试工作流
Create a reusable workflow that accepts node-version input and uses NPM_TOKEN for private installs.

最佳實務

  • 固定操作版本而不是使用 latest
  • 对令牌和凭证使用密钥
  • 将工作流权限限制为所需的最小值

避免

  • 使用来自未知来源的未固定操作
  • 将凭证直接存储在工作流文件中
  • 在没有审批门的情况下部署到生产环境

常見問題

哪些平台兼容?
适用于 GitHub Actions。在 Claude、Codex 或 Claude Code 中使用模板进行起草。
主要限制是什么?
模板是示例,可能需要针对您的技术栈、仓库路径或云配置进行编辑。
如何与我的仓库集成?
将工作流复制到 .github/workflows 并调整触发器、密钥和命令。
我的数据安全吗?
此技能提供静态模板,不会读取或传输您的文件或密钥。
如果工作流失败怎么办?
检查日志,验证操作版本,并确认所需的密钥和权限。
与从头编写相比如何?
它通过从经过验证的模式开始来节省时间,同时仍允许自定义。

開發者詳情

檔案結構

📄 SKILL.md