Token导航 LogoToken导航

Agent Skill · 开发

infra-ci-cd-github-actions(infra CI CD GitHub actions 开发)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

infra-ci-cd-github-actions 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 18,464。

总安装 336周安装 14GitHub Stars 5下载 112核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:infra-ci-cd-github-actions(infra CI CD GitHub actions 开发)
来源仓库:https://github.com/agents-inc/skills
仓库路径:skills/infra-ci-cd-github-actions
安装命令:
npx skills add https://github.com/agents-inc/skills --skill infra-ci-cd-github-actions
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/agents-inc/skills --skill infra-ci-cd-github-actions

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于围绕 GitHub 仓库与协作流程提供辅助能力,适合在 CI/CD 中查询状态或创建 PR。可整理 Issue、分支变更并生成可执行下一步建议,提升协作效率。通过 npx skills add 命令从指定仓库安装,需区分只读查询与写入操作权限。涉及推送分支或访问私有仓库时,应确认 token 范围和用户授权。

infra-ci-cd-github-actions 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/infra-ci-cd-github-actions

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/agents-inc/skills --skill infra-ci-cd-github-a…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

infra-ci-cd-github-actions 怎么安装?

在终端执行 npx skills add https://github.com/agents-inc/skills --skill infra-ci-cd-github-actions。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

infra-ci-cd-github-actions 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

infra-ci-cd-github-actions 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

infra-ci-cd-github-actions 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

infra-ci-cd-github-actions 用的人多吗?

公开数据是累计安装 336 次,近一周安装 14 次,下载 112 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

infra-ci-cd-github-actions 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
infra-ci-cd-github-actions

infra CI CD GitHub actions 开发 · 本页

3365接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

CI/CD Pipelines

Quick Guide: GitHub Actions for CI/CD. Affected detection for monorepo optimization (e.g., Turborepo --affected or --filter=...[origin/main]). Dependency and build output caching for fast CI. Quality gates: lint + type-check + test + build + coverage as required status checks. Multi-environment deployments with build promotion. OIDC authentication for cloud providers. Pin all action and runtime versions.

<critical_requirements>

CRITICAL: Before Using This Skill

All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering, import type, named constants)

(You MUST use affected/changed-package detection for PR builds - NEVER run full test suite on PRs)

(You MUST cache package manager dependencies and build outputs - CI without caching wastes 70% of runtime)

(You MUST pin action versions (actions/checkout@v6, oven-sh/setup-bun@v2, actions/cache@v5) - NEVER use @main or unversioned)

(You MUST implement quality gates (lint + type-check + test + build) as required status checks - block merge on failures)

(You MUST use OIDC for cloud provider auth where supported - NEVER use static long-lived credentials)

</critical_requirements>


Detailed Resources:


Auto-detection: GitHub Actions, CI/CD pipelines, .github/workflows, Turborepo affected detection, remote cache, deployment automation, quality gates, OIDC authentication, secret rotation, artifact attestations, SLSA provenance, reusable workflows, composite actions, matrix builds, workflow_call

When to use:

  • Setting up GitHub Actions workflows for monorepos
  • Implementing affected detection for faster PR builds
  • Configuring remote cache for shared build artifacts
  • Setting up quality gates and branch protection rules
  • Implementing OIDC authentication for cloud deployments
  • Adding artifact attestations for supply chain security

When NOT to use:

  • Projects not using GitHub (use your CI provider's native docs)
  • No automated testing or build step needed

Key patterns covered:

  • Pipeline configuration with parallel jobs and dependency caching
  • Affected detection (Turborepo --affected flag or --filter=...[origin/main])
  • Quality gates (lint, type-check, test, build as parallel jobs with dependencies)
  • OIDC authentication (no static credentials for cloud providers)
  • Reusable workflows (workflow_call, up to 10 levels total)
  • Composite actions (using: composite, shared setup logic)
  • Matrix builds (include/exclude, fail-fast, dynamic matrices)
  • Artifact attestations (SLSA v1.0 Build Level 2 provenance)
  • Multi-environment deployment with build promotion

Philosophy

CI/CD pipelines automate testing, building, and deployment. In a monorepo, intelligent caching and affected detection are critical for maintaining fast CI as the codebase grows.

Core principles:

  • Fast feedback: PR builds should complete in < 5 minutes via affected detection and caching
  • Build once, promote everywhere: Single build artifact deployed through preview/staging/production
  • No static credentials: OIDC for cloud providers, secrets managers for rotating credentials
  • Quality gates block merge: Lint, type-check, test, and build must all pass before merge

Core Patterns

Pattern 1: Pipeline Configuration

Separate install, parallel quality checks, then build.

# Recommended workflow structure:
# ci.yml      - lint, test, type-check, build (PR + main)
# deploy.yml  - production deployment from main
# preview.yml - preview deployments for PRs

Key decisions:

  • Pin runtime and action versions (never use latest)
  • Separate install job with cached dependencies, then fan out to parallel lint/test/type-check
  • Build only after all quality gates pass
  • Use concurrency with cancel-in-progress: true to avoid wasting resources

See examples/core.md for complete workflow examples.


Pattern 2: Affected Detection

Only test and build changed packages in monorepos.

Turborepo example (two approaches, choose one):

# Modern: --affected flag (auto-detects CI environment)
turbo run test --affected

# Manual: --filter with git comparison
turbo run test --filter=...[origin/main]

Key principle: PRs use affected detection for fast feedback (< 5 min). Main branch runs full suite.

Gotcha: New packages have no git history and get skipped by affected detection. Always check for new package.json files and fall back to full suite.

See examples/testing.md for PR vs main branch workflow examples.


Pattern 3: Quality Gates

Automated checks that must pass before merge.

Quality gate order:

  1. Linting (code style and static analysis)
  2. Type checking (TypeScript errors)
  3. Tests with coverage (functionality validation)
  4. Build verification (production build succeeds)
  5. Bundle size check (performance regression prevention)
  6. Security audit (dependency vulnerabilities)

Configure as required status checks in branch protection. Use strict: true to require branches be up-to-date before merge.

See examples/testing.md for comprehensive quality gate workflow.


Pattern 4: OIDC Authentication

Eliminate static credentials for cloud deployments.

# Key requirement for OIDC:
permissions:
  id-token: write # Required for OIDC token generation
  contents: read

OIDC eliminates: manual key rotation, permanent security risk from leaked keys, and untraceable deployments. Temporary credentials auto-expire (typically 1 hour).

See examples/security.md for AWS OIDC and token-based authentication examples.


Pattern 5: Reusable Workflows vs Composite Actions

Centralize CI/CD logic across repositories.

FeatureReusable WorkflowComposite Action
ScopeMultiple jobsSteps within a job
SecretsNative secrets contextMust pass via inputs
NestingUp to 10 levels total (caller + 9 nested), 50 unique per runN/A
Use forFull pipeline templatesShared setup/teardown

See examples/core.md for implementation examples.


Performance Optimization

Goal: CI runtime < 5 minutes for PR builds

Parallelization techniques:

  • Separate install job, parallel lint/test/type-check jobs (saves 40% time)
  • Matrix builds for multiple OS/versions (only on main, not PRs)
  • Split test suites (unit, integration, e2e as parallel jobs)
  • Use concurrency with cancel-in-progress: true to cancel outdated runs

Monitoring targets:

  • CI runtime: < 5 min (PR), < 10 min (main)
  • Cache hit rate: > 80% (remote cache)
  • Failure rate: < 5% (excluding flaky tests)
  • Time to deploy: < 10 min (commit to production)

<red_flags>

RED FLAGS

High Priority:

  • Running full test suite on every PR - Use affected detection or CI takes 10+ minutes
  • No caching configured - Reinstalling dependencies every run wastes 2-3 minutes
  • Using latest for runtime versions - Non-deterministic builds break reproducibility
  • Static cloud credentials in secrets - Use OIDC authentication, never store long-lived access keys
  • Committing secrets to repository - Use GitHub Secrets, never hardcode credentials in YAML
  • No quality gates on main branch - Missing lint/test/type-check allows broken code to merge

Medium Priority:

  • Sequential jobs instead of parallel - Lint/test/type-check should fan out after install
  • No concurrency limits - Multiple CI runs on same PR waste resources
  • Rebuilding for each environment - Build once, promote artifact through environments
  • No monitoring of CI performance - Cannot identify bottlenecks without tracking duration and cache hit rate
  • Magic numbers in workflows - Hardcoded timeouts and thresholds with no documentation of intent

Common Mistakes:

  • Not using fetch-depth: 0 for affected detection (git diff fails without history)
  • Using needs: [all, previous, jobs] on every job (creates sequential execution)
  • Not handling new packages in affected detection (they get skipped)

Gotchas & Edge Cases:

  • fetch-depth: 0 required for affected detection (shallow clone breaks git diff)
  • New packages have no git history so affected detection skips them
  • actions/cache default limit is 10GB per repo (configurable up to 10TB, additional storage billed at $0.07/GiB/month)
  • OIDC requires id-token: write permission or token generation fails silently
  • Environment secrets override repository secrets with the same name
  • Artifact attestations require attestations: write AND id-token: write AND contents: read
  • Reusable workflows support 10 levels total (caller + 9 nested, increased from 4) and 50 unique per run
  • actions/create-release is deprecated - use softprops/action-gh-release@v2 instead
  • workflow_dispatch now supports 25 inputs (increased from 10)

</red_flags>


<critical_reminders>

CRITICAL REMINDERS

All code must follow project conventions in CLAUDE.md

(You MUST use affected/changed-package detection for PR builds - NEVER run full test suite on PRs)

(You MUST cache package manager dependencies and build outputs - CI without caching wastes 70% of runtime)

(You MUST pin action versions (actions/checkout@v6, oven-sh/setup-bun@v2, actions/cache@v5) - NEVER use @main or unversioned)

(You MUST implement quality gates (lint + type-check + test + build) as required status checks - block merge on failures)

(You MUST use OIDC for cloud provider auth where supported - NEVER use static long-lived credentials)

Failure to follow these rules will result in slow CI (10+ min), security vulnerabilities (leaked credentials), and broken builds (missing quality gates).

</critical_reminders>

平台分布

Codex

34.24%
按下载量换算38

Claude

30.08%
按下载量换算34

Cursor

16.55%
按下载量换算19

Gemini CLI

9.76%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills