Writes production-ready GitHub Actions CI/CD workflows (.github/workflows/*.yml) including testing, Docker build/push, K8s deployment, matrix builds, security scanning, reusable workflows, and approval gates.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
适用于为 GitHub 托管仓库编写 .github/workflows/*.yml,实现自动化测试、构建并推送容器镜像、部署到 Kubernetes、跑安全扫描、矩阵多环境构建、抽取可复用工作流、生产审批门禁等场景。
不该用:目标平台是 GitLab CI、Jenkins、CircleCI、Azure Pipelines 等非 GitHub Actions(改用对应平台技能);只是编写应用业务代码或本地脚本而不涉及 CI/CD 编排;需要的是流水线整体架构设计而非具体工作流文件落地。
push/pull_request 的分支、tags、workflow_call(可复用)或 workflow_dispatch(手动)。ubuntu-latest 为默认;跨平台需求用 matrix 列 os。actions/checkout@v4,再按需 setup 语言、装依赖、跑测试/构建/部署。permissions,敏感值一律走 secrets。cache: "npm" 或 cache-from/cache-to: type=gha)加速。environment 触发审批门禁,并加失败/成功通知。@v4),禁止 @latest,保证可复现。permissions: 显式声明最小权限(如 contents: read、packages: write)。workflow_call 可复用工作流;生产环境加审批门禁与失败通知。测试工作流(含 Node 矩阵 + 覆盖率上传):
name: Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm test
- uses: codecov/codecov-action@v4
with:
files: ./coverage/lcov.info
构建并推送镜像到 GHCR(带 GHA 缓存、自动打 tag):
name: Build and Push
on:
push:
branches: [main]
tags: ["v*"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
- uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
可复用工作流(workflow_call 定义 + 调用):
# .github/workflows/reusable-test.yml
on:
workflow_call:
inputs:
node-version: { required: true, type: string }
secrets:
NPM_TOKEN: { required: true }
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: ${{ inputs.node-version }} }
- run: npm ci
- run: npm test
# 调用方
jobs:
call-test:
uses: ./.github/workflows/reusable-test.yml
with: { node-version: "20.x" }
secrets: { NPM_TOKEN: ${{ secrets.NPM_TOKEN }} }
安全扫描(Trivy + SARIF 上传到 GitHub Security):
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: aquasecurity/[email protected]
with:
scan-type: "fs"
scan-ref: "."
format: "sarif"
output: "trivy-results.sarif"
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: "trivy-results.sarif"
带审批门禁的生产部署(environment + 失败/成功通知):
on:
push:
tags: ["v*"]
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: production
url: https://app.example.com
steps:
- uses: actions/checkout@v4
- run: echo "Deploying to production..."
- if: success()
uses: slackapi/slack-github-action@v1
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
payload: |
{"text": "Deployment to production completed successfully!"}
部署到 Kubernetes(EKS 场景关键命令):
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- run: aws eks update-kubeconfig --name production-cluster --region us-west-2
- run: |
kubectl apply -f k8s/
kubectl rollout status deployment/my-app -n production
@latest 在复现和供应链安全上都不可取。secrets.GITHUB_TOKEN 默认权限受 permissions: 约束,跨仓库或推镜像时按需显式放权。cache: type=gha 与 npm/pip 缓存能显著缩短 CI 时间,但注意缓存键命中与失效。fail-fast/include/exclude 收敛。environment 审批门禁,避免误推;失败时加通知(Slack/邮件)便于及时介入。ubuntu 通过却在 windows 失败)。dependency-auditor:把依赖漏洞审计接入 CI 安全扫描步骤。code-reviewer:在 PR 工作流中触发自动化代码审查与状态检查。本条采编自 wshobson/agents(MIT 许可证)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/10-platform:github-actions-authorfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platform66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录Other plugins' skills for the same job