Ci Cd Pipeline logo

Ci Cd Pipeline

Community
zhaoxuya520
ci-cd-pipeline

CI/CD 流水线设计与实现,覆盖 GitHub Actions / GitLab CI / Jenkins。标准阶段:lint → test → build → scan → deploy。关注流水线性能、安全门禁、环境隔离。

Overview

Publisherzhaoxuya520
RepositoryAI-Fullstack-Delivery-Workflow
Skill nameci-cd-pipeline
Stars
56
Forks
18
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zhaoxuya520 on GitHub. Read the source before you install it.

Installation

Install the Ci Cd Pipeline AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow/tree/master/workflows/devops-engineer/skills/ci-cd-pipeline
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow.git /tmp/AI-Fullstack-Delivery-Workflow
mkdir -p .claude/skills
cp -r /tmp/AI-Fullstack-Delivery-Workflow/workflows/devops-engineer/skills/ci-cd-pipeline .claude/skills/ci-cd-pipeline
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ci Cd Pipeline in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ci Cd Pipeline on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ci Cd Pipeline is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CI/CD 流水线(CI/CD Pipeline)

参考来源:GitHub Actions 官方文档、GitLab CI/CD 文档、Jenkins Pipeline 文档、DORA 指标、Continuous Delivery(Jez Humble)。

适用场景

  • 新项目搭建 CI/CD 流水线
  • 现有流水线优化(速度 / 可靠性)
  • 多环境部署策略(dev → staging → prod)
  • 安全门禁集成(SAST / DAST / 依赖扫描)
  • Monorepo 流水线设计
  • 自动化发布(语义化版本)

核心原则

text
1. 快速反馈
   lint + unit test < 5 分钟
   全流水线 < 15 分钟

2. 失败即阻断
   任何阶段失败 → 不进入下一阶段
   安全扫描 HIGH → 阻断部署

3. 环境一致性
   CI 环境 = 生产环境(容器化)
   不依赖 CI runner 本地状态

4. 幂等可重试
   每次运行结果一致
   可安全重跑任何阶段

5. 最小权限
   每阶段只授予必要权限
   secrets 按环境隔离

6. 可观测
   每步有日志 + 耗时
   失败有明确错误信息

7. 主干开发
   PR → CI → merge → CD
   不维护长期分支

工作流程

text
1. 确定流水线阶段
   - lint(代码风格 + 静态分析)
   - test(单元 + 集成)
   - build(编译 + 打包 + 镜像)
   - scan(安全扫描 + 许可证检查)
   - deploy(按环境分级)

2. 选择 CI 平台
   - GitHub Actions(GitHub 项目首选)
   - GitLab CI(GitLab 项目首选)
   - Jenkins(企业自建 / 复杂编排)

3. 设计触发规则
   - PR:lint + test + build
   - merge to main:全流程 + deploy staging
   - tag:deploy production
   - schedule:安全扫描 / 依赖更新

4. 配置缓存
   - 依赖缓存(node_modules / .m2 / go mod)
   - Docker 层缓存
   - 构建产物缓存

5. 集成安全门禁
   - SAST(Semgrep / CodeQL)
   - 依赖扫描(Trivy / Snyk)
   - 镜像扫描
   - License 检查

6. 环境部署
   - dev:自动部署(每次 merge)
   - staging:自动部署 + 冒烟测试
   - production:手动审批 / 自动(金丝雀)

7. 通知与报告
   - 失败通知(Slack / Teams)
   - 测试覆盖率报告
   - 部署记录

阶段详解

阶段工具耗时目标失败策略
lintESLint / Prettier / golangci-lint<1min阻断
testJest / pytest / go test<5min阻断
buildDocker / webpack / go build<3min阻断
scanTrivy / Semgrep / CodeQL<3minHIGH 阻断
deploy-stagingHelm / ArgoCD / Terraform<5min阻断
smoke-testPlaywright / curl<2min回滚
deploy-prod同 staging + 审批<5min回滚

GitHub Actions 结构

yaml
# .github/workflows/ci.yml 核心结构
name: CI/CD
on:
  pull_request:
    branches: [main]
  push:
    branches: [main]
    tags: ['v*']

jobs:
  lint:
    runs-on: ubuntu-latest
    steps: [checkout, setup, lint]

  test:
    runs-on: ubuntu-latest
    needs: lint
    steps: [checkout, setup, test, coverage-upload]

  build:
    runs-on: ubuntu-latest
    needs: test
    steps: [checkout, docker-build, push-to-registry]

  scan:
    runs-on: ubuntu-latest
    needs: build
    steps: [trivy-scan, upload-sarif]

  deploy-staging:
    if: github.ref == 'refs/heads/main'
    needs: [build, scan]
    environment: staging
    steps: [deploy, smoke-test]

  deploy-prod:
    if: startsWith(github.ref, 'refs/tags/v')
    needs: [build, scan]
    environment: production
    steps: [deploy, verify]

质量自检

text
□ 流水线总耗时 < 15 分钟
□ lint + test 阶段 < 5 分钟
□ 依赖缓存已配置
□ Docker 层缓存已配置
□ 安全扫描集成(SAST + 依赖 + 镜像)
□ HIGH/CRITICAL 漏洞阻断部署
□ secrets 使用平台原生管理(不硬编码)
□ 环境隔离(dev / staging / prod)
□ 生产部署需审批或自动金丝雀
□ 失败通知已配置
□ 测试覆盖率有门槛
□ 流水线本身有版本控制
□ 可重试 / 幂等

常见坑

  1. 不缓存依赖——每次 CI 重新下载,耗时翻倍
  2. secrets 硬编码——泄露到日志 / 仓库
  3. CI 环境与生产不一致——本地过 CI 挂
  4. 不并行——串行跑 lint + test + build
  5. tag 触发无保护——任何人可推 tag 触发部署
  6. 不锁定 action 版本——uses: actions/checkout@main 不安全
  7. 测试不稳定(flaky)——随机失败消耗信任
  8. 无超时设置——卡死的 job 占用 runner
  9. monorepo 全量构建——改一个包触发所有
  10. deploy 无回滚——失败后手动修复
  11. 不上传产物——调试困难
  12. 分支策略混乱——长期分支合并冲突

配套模板

  • templates/github-actions-template.md — GitHub Actions 完整流水线模板

与其他 skill 的协作

text
上游:
  containerization → 镜像构建步骤
  infrastructure-as-code → 部署基础设施

下游:
  kubernetes-orchestration → 部署目标
  release-strategy → 发布策略执行
  monitoring-alerting → 部署后验证
  secrets-config → CI secrets 管理

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ci Cd Pipeline AI skill do?

CI/CD 流水线设计与实现,覆盖 GitHub Actions / GitLab CI / Jenkins。标准阶段:lint → test → build → scan → deploy。关注流水线性能、安全门禁、环境隔离。

Why use Ci Cd Pipeline on TypingMind?

Because you install it once and use it with any model. Ci Cd Pipeline is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ci Cd Pipeline in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow/tree/master/workflows/devops-engineer/skills/ci-cd-pipeline. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ci Cd Pipeline?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ci Cd Pipeline?

As many as you like. As long as a model supports skills, you can use Ci Cd Pipeline with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ci Cd Pipeline AI skill free?

It is published on GitHub by zhaoxuya520. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇