Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

ci-cd-expertCI CD 专家

Agent Skill

ci-cd-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

643

周安装

26

GitHub Stars

公开资料未说明

下载量

202
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add srstomp/pokayokay --skill "ci-cd-expert"

简介

用于查找、检索和筛选相关信息。ci-cd-expert 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合在需要根据关键词或任务场景快速定位候选结果时使用。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或命令执行。
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

SKILL.md

name
ci-cd-expert
description
Create, review, debug, and optimize CI/CD pipelines across platforms. Covers GitHub Actions, GitLab CI, CircleCI, Azure DevOps, and Bitbucket Pipelines. Use this skill when creating new pipelines, debugging failing builds, implementing deployment strategies (blue-green, canary, rolling), reviewing pipelines for security and efficiency, or optimizing build times. Triggers on "ci", "cd", "pipeline", "deployment", "github actions", "gitlab ci", "workflow", "build failing", "deploy to staging/production".

CI/CD Expert

Create, debug, and optimize CI/CD pipelines.

Platform Selection

PlatformBest ForKey Strength
GitHub ActionsGitHub-hosted repos, open sourceNative GitHub integration, marketplace
GitLab CIGitLab repos, self-hostedBuilt-in registry, Auto DevOps
CircleCIComplex workflows, speedParallelism, orbs ecosystem
Azure DevOpsMicrosoft/enterprise, multi-repoAzure integration, YAML templates
BitbucketAtlassian stack, Jira integrationPipes marketplace, deployments

Quick pick:

  • GitHub repo? → GitHub Actions
  • GitLab repo? → GitLab CI
  • Need extreme parallelism? → CircleCI
  • Azure/Microsoft shop? → Azure DevOps
  • Using Jira/Confluence? → Bitbucket Pipelines

Core Workflows

1. Pipeline Creation

Requirements → Platform Selection → Structure → Implementation → Validation

Steps:

  1. Identify triggers (push, PR, schedule, manual)
  2. Define stages (build, test, deploy)
  3. Map environments (dev, staging, prod)
  4. Configure secrets and variables
  5. Set up caching strategy
  6. Implement deployment gates

Minimal viable pipeline:

# Every pipeline needs these elements
triggers:        # When to run
stages:          # What to run (in order)
  - build        # Compile/bundle
  - test         # Validate
  - deploy       # Ship (optional)
caching:         # Speed optimization
environment:     # Secrets/variables

2. Pipeline Review

Review checklist (in order of priority):

  1. Security

- [ ] Secrets not hardcoded - [ ] Minimal permissions (least privilege) - [ ] Dependencies pinned (no @latest) - [ ] Untrusted input sanitized

  1. Reliability

- [ ] Idempotent steps - [ ] Explicit failure handling - [ ] Timeouts configured - [ ] Retry logic for flaky steps

  1. Efficiency

- [ ] Caching implemented - [ ] Parallelization where possible - [ ] Conditional execution (skip unchanged) - [ ] Resource sizing appropriate

  1. Maintainability

- [ ] DRY (reusable workflows/templates) - [ ] Clear naming conventions - [ ] Comments on non-obvious logic

3. Pipeline Debugging

Diagnostic framework:

Symptom → Category → Platform-specific fix

Common failure categories:

SymptomLikely CauseFirst Check
"Command not found"Missing dependencyEnvironment setup
"Permission denied"File/secret accessPermissions config
"Connection refused"Service not readyHealth checks, wait
"Out of memory"Resource limitsRunner sizing
"Timeout exceeded"Slow step or deadlockStep isolation
"Exit code 1"Script failureRun locally first

Debug approach:

  1. Read the full error (scroll up!)
  2. Identify which step failed
  3. Check if it works locally
  4. Add debug output (set -x, verbose flags)
  5. Check platform-specific logs

4. Deployment Strategy Selection

                     Risk Tolerance
                          ↑
                    Low   │   High
                          │
        ┌─────────────────┼─────────────────┐
        │                 │                 │
 Slow   │   Blue-Green    │    Rolling      │  Fast
        │   (safest)      │   (balanced)    │
        │                 │                 │
        ├─────────────────┼─────────────────┤
        │                 │                 │
        │    Canary       │   Direct        │
        │   (measured)    │   (fastest)     │
        │                 │                 │
        └─────────────────┴─────────────────┘
                     Rollback Speed →

Decision guide:

StrategyUse WhenAvoid When
Blue-GreenZero downtime critical, simple rollback neededLimited infrastructure budget
CanaryNeed to validate with real traffic, gradual rolloutUrgent hotfix, no traffic splitting
RollingLarge clusters, cost-consciousStateful apps, breaking changes
DirectDev/test environments, low riskProduction, user-facing services

5. Build Optimization

Optimization priority:

  1. Caching (highest impact)
  2. Parallelization
  3. Conditional execution
  4. Resource sizing
  5. Image optimization

Caching hierarchy:

Dependencies (npm, pip) → Build artifacts → Docker layers → Test fixtures
       ↑                        ↑                ↑              ↑
   Always cache          If build slow     If using Docker   If tests slow

Cache key strategies:

# Dependencies - hash lockfile
key: deps-${{ hashFiles('package-lock.json') }}

# Build artifacts - hash source
key: build-${{ hashFiles('src/**') }}

# Combined - hash both
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

Common Patterns

Secret Management

# ✅ Good: Environment variables
env:
  API_KEY: ${{ secrets.API_KEY }}

# ❌ Bad: Inline secrets
run: curl -H "Authorization: hardcoded-secret"

Secret rotation checklist:

  • [ ] Secrets stored in platform secret store
  • [ ] Secrets scoped to minimum required (repo/org/env)
  • [ ] Rotation procedure documented
  • [ ] No secrets in logs (mask sensitive output)

Environment Progression

┌─────────┐    ┌─────────┐    ┌─────────┐    ┌─────────┐
│   Dev   │ →  │Staging  │ →  │   QA    │ →  │  Prod   │
└─────────┘    └─────────┘    └─────────┘    └─────────┘
  Auto          Auto          Manual          Manual
  deploy        deploy        approval        approval

Artifact Management

# Upload
- name: Upload build
  uses: actions/upload-artifact@v4
  with:
    name: dist
    path: dist/
    retention-days: 7

# Download (later job)
- name: Download build
  uses: actions/download-artifact@v4
  with:
    name: dist

Matrix Builds

# Test across multiple versions
strategy:
  matrix:
    node: [18, 20, 22]
    os: [ubuntu-latest, macos-latest]
  fail-fast: false  # Continue other jobs if one fails

Anti-Patterns

❌ Secrets in Logs

# BAD
run: echo "Deploying with key $API_KEY"

# GOOD
run: echo "Deploying..." && deploy --key "$API_KEY"

❌ No Caching

# BAD: Downloads deps every run
- run: npm install

# GOOD: Cache node_modules
- uses: actions/cache@v4
  with:
    path: node_modules
    key: ${{ hashFiles('package-lock.json') }}
- run: npm ci

❌ Mutable Tags

# BAD: Could change anytime
uses: actions/checkout@master

# GOOD: Pinned version
uses: actions/checkout@v4

❌ Overly Broad Triggers

# BAD: Runs on every push to every branch
on: push

# GOOD: Specific triggers
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

❌ Sequential When Parallel Works

# BAD: 15 min total
jobs:
  lint:
    ...
  test:
    needs: lint  # Waits for lint
    ...

# GOOD: 10 min total (parallel)
jobs:
  lint:
    ...
  test:
    ...  # Runs alongside lint

Troubleshooting Quick Reference

Error PatternPlatformSolution
EACCES: permission deniedAllchmod +x script.sh or check file ownership
rate limit exceededGitHubUse GITHUB_TOKEN, implement backoff
no space left on deviceAllClean workspace, use smaller runner
SSL certificate problemAllUpdate CA certs, check proxy settings
container not foundDocker-basedCheck registry auth, image exists
workflow not triggeredGitHubCheck trigger conditions, branch patterns
job timeoutAllIncrease timeout, optimize slow steps

Integration Points

With version control:

  • Branch protection rules
  • Required status checks
  • Auto-merge on success

With deployment targets:

  • Cloud providers (AWS, GCP, Azure)
  • Container registries (Docker Hub, ECR, GCR)
  • Kubernetes clusters
  • Serverless (Lambda, Cloud Functions)

With monitoring:

  • Build metrics (duration, success rate)
  • Deployment tracking
  • Error alerting (Slack, PagerDuty)

Skill Usage

Creating a pipeline:

  1. Identify platform from repo hosting
  2. Read platform-specific reference
  3. Follow creation workflow above
  4. Validate with platform's linter

Debugging a failure:

  1. Categorize the error (table above)
  2. Read debugging-guide.md for detailed steps
  3. Check platform-specific quirks

Implementing deployments:

  1. Choose strategy using decision guide
  2. Read deployment-strategies.md
  3. Implement with platform-specific syntax

Security audit:

  1. Use review checklist above
  2. Read security-checklist.md for comprehensive review
  3. Generate ohno tasks for findings

References:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.46%
按下载量换算57

Codex

23.91%
按下载量换算48

Antigravity

16.41%
按下载量换算33

windsurf

12.16%
按下载量换算25

trae

7.22%
按下载量换算15

github-copilot

3.38%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills