# ci-cd-patterns

A skill with GitHub Actions templates, PR checks and deployment steps. Handy when CI breaks or you are wiring it up from scratch.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 109
- Author: c0x12c
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/c0x12c/ai-toolkit/tree/HEAD/toolkit/skills/ci-cd-patterns/SKILL.md
- Updated: 2026-06-18
- HTML: https://affpapa.org/en/nevibecode/skills/ci-cd-patterns

## What it does

The skill hands your agent ready-made GitHub Actions setups: a basic CI workflow, a separate pull request check workflow, and deployment steps. It ships YAML templates, a pre-deploy checklist, and notes on mistakes that bite most often.

There is a PR babysitting routine too. The agent reads check status with `gh pr checks <number>`, works out whether the failure is a flaky test, a lint error or a broken build, fixes it locally and pushes. Flaky runs get retried with `gh run rerun <run-id> --failed`. Merge conflicts are handled by rebasing, and auto-merge goes on with `gh pr merge <number> --auto --squash`. All of this leans on the `gh` CLI being installed and logged in.

The skill lets the agent read and edit files, search the project and run shell commands, so it can rewrite a workflow and push the change in one go. One rule worth remembering: if the same test gets re-run more than twice, the skill says stop burning runner minutes and fix the test itself. Race conditions and time-dependent assertions are the usual culprits.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add c0x12c/ai-toolkit --skill ci-cd-patterns -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ci-cd-patterns/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ci-cd-patterns/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add c0x12c/ai-toolkit --skill ci-cd-patterns -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ci-cd-patterns/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add c0x12c/ai-toolkit --skill ci-cd-patterns -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ci-cd-patterns/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install c0x12c/ai-toolkit ci-cd-patterns
```

2. **Manually: put the files in place**
- File: `.github/skills/ci-cd-patterns/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add c0x12c/ai-toolkit --skill ci-cd-patterns -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/c0x12c/ai-toolkit --path toolkit/skills/ci-cd-patterns
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ci-cd-patterns/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add c0x12c/ai-toolkit --skill ci-cd-patterns -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/c0x12c/ai-toolkit/tree/HEAD/toolkit/skills/ci-cd-patterns/SKILL.md

## When to use it
- set up lint, test and build checks on every pull request
- find out why CI failed and patch it locally
- re-run only the failed jobs instead of the whole pipeline
- split deployment across dev, staging and prod
- walk a pre-deploy checklist before shipping to production

## Example prompts
- Set up CI in GitHub Actions: lint, tests and build on every pull request
- Check the status of PR #42 and fix whatever is failing
- Re-run the failed jobs in the latest workflow run

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 354000 installs

From the same set: [c0x12c/ai-toolkit](https://affpapa.org/en/nevibecode/by/c0x12c/ai-toolkit.md) — 11 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
