Token导航 LogoToken导航

Agent Skill · 研究检索

deployment-pipeline-design(部署管道设计)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

deployment-pipeline-design 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,674 个 Skill 里排第 69,087。

总安装 220周安装 9GitHub Stars 265下载 71核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:deployment-pipeline-design(部署管道设计)
来源仓库:https://github.com/rsmdt/the-startup
仓库路径:skills/deployment-pipeline-design
安装命令:
npx skills add https://github.com/rsmdt/the-startup --skill deployment-pipeline-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rsmdt/the-startup --skill deployment-pipeline-design

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

deployment-pipeline-design 用于辅助云资源、部署、容器、基础设施和运维自动化任务。适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作。

涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。当前底部简介为空,需参考原始 SKILL.md 获取完整使用指南。

来源仓库内路径:skills/deployment-pipeline-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/rsmdt/the-startup --skill deployment-pipeline-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

deployment-pipeline-design 怎么安装?

在终端执行 npx skills add https://github.com/rsmdt/the-startup --skill deployment-pipeline-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

deployment-pipeline-design 支持哪些 AI 工具?

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

deployment-pipeline-design 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

deployment-pipeline-design 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

deployment-pipeline-design 用的人多吗?

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

deployment-pipeline-design 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
deployment-pipeline-design

部署管道设计 · 本页

220265需要联网MIT未收录

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

SKILL.md 原文

CI/CD Patterns

A comprehensive skill for designing and implementing continuous integration and deployment pipelines. Covers pipeline architecture, deployment strategies, quality gates, and platform-specific patterns for GitHub Actions and GitLab CI.

When to Use

  • Designing new CI/CD pipelines from scratch
  • Implementing deployment strategies (blue-green, canary, rolling)
  • Setting up quality gates and approval workflows
  • Configuring GitHub Actions or GitLab CI pipelines
  • Implementing automated rollback mechanisms
  • Creating multi-environment deployment workflows
  • Integrating security scanning into pipelines

Pipeline Architecture

Pipeline Stages

A well-designed pipeline follows these stages in order:

Build -> Test -> Analyze -> Package -> Deploy -> Verify

Stage Breakdown:

StagePurposeFailure Action
BuildCompile code, resolve dependenciesFail fast, notify developer
TestUnit tests, integration testsBlock deployment
AnalyzeSAST, linting, code coverageBlock or warn based on threshold
PackageCreate artifacts, container imagesFail fast
DeployPush to environmentRollback on failure
VerifySmoke tests, health checksTrigger rollback

Pipeline Design Principles

  1. Fail Fast: Run quick checks (lint, unit tests) before slow ones
  2. Parallel Execution: Run independent jobs concurrently
  3. Artifact Caching: Cache dependencies between runs
  4. Immutable Artifacts: Build once, deploy everywhere
  5. Environment Parity: Dev, staging, and prod should be identical

Deployment Strategies

Blue-Green Deployment

Two identical production environments where traffic switches instantly.

                    Load Balancer
                         |
            +------------+------------+
            |                         |
        [Blue v1.0]              [Green v1.1]
         (active)                 (standby)

When to Use:

  • Zero-downtime requirements
  • Need instant rollback capability
  • Sufficient infrastructure budget for duplicate environments

Implementation Steps:

  1. Deploy new version to inactive environment (Green)
  2. Run smoke tests against Green
  3. Switch load balancer to Green
  4. Monitor for issues
  5. Keep Blue running for quick rollback
  6. After confidence period, Blue becomes next deployment target

Rollback: Switch load balancer back to Blue (seconds)

Canary Deployment

Gradually shift traffic from old version to new version.

Traffic Distribution Over Time:

T0:  [====== v1.0 100% ======]
T1:  [=== v1.0 95% ===][v1.1 5%]
T2:  [== v1.0 75% ==][= v1.1 25% =]
T3:  [= v1.0 50% =][== v1.1 50% ==]
T4:  [====== v1.1 100% ======]

When to Use:

  • High-risk deployments
  • Need to validate with real traffic
  • Want gradual rollout with monitoring

Traffic Progression (Example):

  1. 5% for 15 minutes - validate basic functionality
  2. 25% for 30 minutes - monitor error rates
  3. 50% for 1 hour - check performance metrics
  4. 100% - full rollout

Rollback Triggers:

  • Error rate exceeds baseline + threshold
  • Latency exceeds acceptable limits
  • Health check failures

Rolling Deployment

Replace instances incrementally, one batch at a time.

Instance Pool (5 instances):

T0: [v1.0] [v1.0] [v1.0] [v1.0] [v1.0]
T1: [v1.1] [v1.0] [v1.0] [v1.0] [v1.0]
T2: [v1.1] [v1.1] [v1.0] [v1.0] [v1.0]
T3: [v1.1] [v1.1] [v1.1] [v1.0] [v1.0]
T4: [v1.1] [v1.1] [v1.1] [v1.1] [v1.0]
T5: [v1.1] [v1.1] [v1.1] [v1.1] [v1.1]

When to Use:

  • Limited infrastructure resources
  • Can tolerate mixed versions during deployment
  • Stateless applications

Configuration Parameters:

  • maxUnavailable: How many instances can be down simultaneously
  • maxSurge: How many extra instances during deployment
  • minReadySeconds: Wait time before considering instance healthy

Feature Flags

Decouple deployment from release - deploy code without activating features.

Code deployed with feature flag:

if (featureFlags.isEnabled('new-checkout', user)) {
  return newCheckoutFlow(cart);
} else {
  return legacyCheckoutFlow(cart);
}

When to Use:

  • Long-running feature development
  • A/B testing requirements
  • Gradual feature rollouts
  • Kill switch for problematic features

Rollback: Disable flag (no deployment required)

Quality Gates

Required Gates

Every pipeline should include these gates:

GateThresholdBlock Deploy?
Unit Tests100% passYes
Integration Tests100% passYes
Code Coverage>= 80%Yes
Security Scan (Critical)0 findingsYes
Security Scan (High)0 new findingsConfigurable
Dependency Vulnerabilities0 criticalYes

Manual Approval Gates

Use for production deployments:

# Conceptual flow
stages:
  - test
  - deploy-staging
  - approval        # Manual gate
  - deploy-prod
  - verify

Approval Requirements:

  • At least 2 approvers for production
  • No self-approval allowed
  • Time-boxed approval windows
  • Audit trail of approvals

GitHub Actions Patterns

Basic Pipeline Structure

name: CI/CD Pipeline

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'
      - run: npm ci
      - run: npm run build
      - uses: actions/upload-artifact@v4
        with:
          name: build
          path: dist/

  test:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/download-artifact@v4
        with:
          name: build
          path: dist/
      - run: npm ci
      - run: npm test

  deploy-staging:
    needs: test
    if: github.ref == 'refs/heads/main'
    environment: staging
    runs-on: ubuntu-latest
    steps:
      - uses: actions/download-artifact@v4
        with:
          name: build
      - run: ./deploy.sh staging

  deploy-prod:
    needs: deploy-staging
    if: github.ref == 'refs/heads/main'
    environment: production
    runs-on: ubuntu-latest
    steps:
      - uses: actions/download-artifact@v4
        with:
          name: build
      - run: ./deploy.sh production

Matrix Builds

Run tests across multiple configurations:

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
        node: [18, 20, 22]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node }}
      - run: npm ci
      - run: npm test

Reusable Workflows

Create reusable workflow in .github/workflows/deploy-reusable.yml:

name: Reusable Deploy

on:
  workflow_call:
    inputs:
      environment:
        required: true
        type: string
    secrets:
      DEPLOY_KEY:
        required: true

jobs:
  deploy:
    environment: ${{ inputs.environment }}
    runs-on: ubuntu-latest
    steps:
      - run: ./deploy.sh ${{ inputs.environment }}
        env:
          DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}

Call from another workflow:

jobs:
  deploy-staging:
    uses: ./.github/workflows/deploy-reusable.yml
    with:
      environment: staging
    secrets:
      DEPLOY_KEY: ${{ secrets.STAGING_DEPLOY_KEY }}

Environment Protection Rules

Configure in repository settings:

  • Required reviewers for production
  • Wait timer (e.g., 15 minutes before prod deploy)
  • Restrict to specific branches
  • Required status checks

GitLab CI Patterns

Basic Pipeline Structure

stages:
  - build
  - test
  - deploy

variables:
  NODE_VERSION: "20"

default:
  image: node:${NODE_VERSION}
  cache:
    paths:
      - node_modules/

build:
  stage: build
  script:
    - npm ci
    - npm run build
  artifacts:
    paths:
      - dist/
    expire_in: 1 hour

test:unit:
  stage: test
  script:
    - npm ci
    - npm run test:unit
  coverage: '/Coverage: \d+\.\d+%/'

test:integration:
  stage: test
  services:
    - postgres:15
  variables:
    POSTGRES_DB: test
    POSTGRES_USER: test
    POSTGRES_PASSWORD: test
  script:
    - npm ci
    - npm run test:integration

deploy:staging:
  stage: deploy
  environment:
    name: staging
    url: https://staging.example.com
  script:
    - ./deploy.sh staging
  only:
    - main

deploy:production:
  stage: deploy
  environment:
    name: production
    url: https://example.com
  script:
    - ./deploy.sh production
  when: manual
  only:
    - main

Pipeline Rules

deploy:production:
  rules:
    - if: $CI_COMMIT_BRANCH == "main"
      when: manual
    - if: $CI_COMMIT_TAG
      when: on_success
    - when: never

Include Templates

include:
  - template: Security/SAST.gitlab-ci.yml
  - template: Security/Dependency-Scanning.gitlab-ci.yml
  - local: .gitlab/ci/deploy.yml
  - project: 'devops/ci-templates'
    ref: main
    file: '/templates/docker-build.yml'

Dynamic Environments

deploy:review:
  stage: deploy
  environment:
    name: review/$CI_COMMIT_REF_SLUG
    url: https://$CI_COMMIT_REF_SLUG.review.example.com
    on_stop: stop:review
  script:
    - ./deploy.sh review
  only:
    - merge_requests

stop:review:
  stage: deploy
  environment:
    name: review/$CI_COMMIT_REF_SLUG
    action: stop
  script:
    - ./teardown.sh review
  when: manual
  only:
    - merge_requests

Rollback Mechanisms

Automated Rollback Triggers

# Conceptual rollback configuration
rollback:
  triggers:
    - metric: error_rate
      threshold: 5%
      window: 5m
    - metric: latency_p99
      threshold: 2000ms
      window: 5m
    - metric: health_check_failures
      threshold: 3
      window: 1m
  action:
    type: previous_version
    notify:
      - slack: #deployments
      - pagerduty: on-call

Database Migration Rollback

  1. Forward-only migrations (preferred):

- Never use destructive operations (DROP, DELETE) - Add new columns as nullable - Use feature flags to switch behavior - Clean up old columns in later release

  1. Rollback migrations:

- Every migration must have a corresponding rollback - Test rollbacks in staging before production - Keep rollback window defined (e.g., 24 hours)

Artifact-Based Rollback

rollback:production:
  stage: deploy
  environment:
    name: production
  script:
    - PREVIOUS_VERSION=$(get-previous-version.sh)
    - ./deploy.sh production $PREVIOUS_VERSION
  when: manual
  only:
    - main

Security Integration

SAST/DAST Integration

security:sast:
  stage: analyze
  image: security-scanner:latest
  script:
    - sast-scan --format sarif --output sast-results.sarif
  artifacts:
    reports:
      sast: sast-results.sarif

security:dependency:
  stage: analyze
  script:
    - npm audit --audit-level=high
    - trivy fs --security-checks vuln .

Secret Scanning

  • Never commit secrets to repository
  • Use environment secrets or vault integration
  • Scan for exposed secrets in pre-commit hooks
  • Rotate secrets immediately if exposed

Best Practices

Pipeline Design

  • Keep pipelines under 15 minutes for main branch
  • Use caching aggressively for dependencies
  • Run expensive tests in parallel
  • Fail fast with quick checks first
  • Use artifacts to avoid rebuilding

Deployment Safety

  • Always have a rollback plan
  • Deploy to staging before production
  • Use feature flags for risky changes
  • Monitor deployments in real-time
  • Document deployment procedures

Quality Assurance

  • Enforce code coverage thresholds
  • Block deployments on security findings
  • Require peer approval for production
  • Maintain environment parity
  • Test rollback procedures regularly

Observability

  • Log all deployment events
  • Track deployment frequency and lead time
  • Monitor change failure rate
  • Measure mean time to recovery
  • Alert on deployment failures

References

  • templates/pipeline-template.md - Complete pipeline template with all stages

平台分布

Claude Code

27.35%
按下载量换算19

windsurf

24.85%
按下载量换算18

OpenCode

16.01%
按下载量换算11

Codex

11.14%
按下载量换算8

Gemini CLI

6.95%
按下载量换算5

trae

3.11%
按下载量换算2

安全审计

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

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills