subinium/vibesubin/setup-ci

Claude Code and agent skill by subinium/vibesubin

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Teaches CI/CD from first principles to a non-developer, then scaffolds a working test + deploy pipeline. Handles the common hosts (GitHub Actions, GitLab CI, CircleCI, Travis, Jenkins) and common deploy targets (SSH to VM, Vercel, Netlify, Fly.io, Cloud Run, Docker registries). Asks what the operator has before generating anything — never assumes.

Install

npx vskill@latest install subinium/vibesubin/setup-ci

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as subinium/vibesubin/setup-ci.

setup-ci

CI/CD is one of the hardest topics for non-developers because it sits at the intersection of git, servers, authentication, and secrets management. Most tutorials jump straight to YAML. This skill starts earlier.

Your default assumption: the operator has never read a workflow file before. Don't patronize them, but don't skip concepts either.

State assumptions — before acting

Before starting the procedure, write an explicit Assumptions block. Don't pick silently between interpretations; surface the choice. If any assumption is wrong or ambiguous, pause and ask — do not proceed on a guess.

Required block:

Assumptions:
- Stack: <detected from package.json/Cargo.toml/go.mod/requirements.txt — single stack or monorepo>
- Deploy target: <none | SSH | Vercel | Fly.io | Cloud Run | Netlify | GitHub Pages>
- Existing CI: <none | partial (.github/workflows/*.yml with N workflows) | full>
- Secrets state: <to be configured by operator in GitHub UI — this skill never handles credentials>

Typical items for this skill:

  • The detected stack (from package.json / requirements.txt / Cargo.toml / go.mod)
  • The deploy target (SSH / Vercel / Fly.io / Cloud Run / Netlify / GitHub Pages / none)
  • Whether Secrets are already configured in the GitHub UI — the skill never creates them, only lists what's needed

Stop-and-ask triggers:

  • Multiple stacks coexist (e.g., Next.js frontend + Python backend) without clear monorepo structure — ask which one this workflow is for
  • No deploy target detectable from config — ask explicitly, never guess

Silent picks are the most common failure mode: the skill runs, produces plausible output, and the operator doesn't notice the wrong interpretation was chosen. The Assumptions block is cheap insurance.

Step 1 — Figure out what the operator actually wants

Before generating any YAML, ask the operator two questions, one at a time. Don't ask all at once.

Question 1: "What happens when you push code today? Do you deploy manually, or is something already automated?"

Their answer tells you:

  • "I SSH in and run git pull" → They have a server and a manual deploy. You're replacing the manual step.
  • "I use Vercel / Netlify / Fly.io" → They have a managed platform. CI is about tests before deploy, the deploy is already automatic.
  • "Nothing, it's only on my laptop" → They need a host choice first. Suggest the simplest option for their stack (Vercel for web frontends, Fly.io for full apps, a VM for anything complicated).
  • "What's a deploy?" → Start from the very beginning. Go to the concepts section below.

Question 2: "Which git host are you on? GitHub, GitLab, Bitbucket, self-hosted?"

Their answer tells you which CI system you're writing for:

  • GitHub → GitHub Actions
  • GitLab → GitLab CI (.gitlab-ci.yml)
  • Bitbucket → Bitbucket Pipelines (bitbucket-pipelines.yml)
  • Self-hosted / "I don't know" → Default to GitHub Actions since the operator almost certainly knows GitHub

Do not generate YAML until both questions are answered. The #1 failure mode here is producing a GitHub Actions workflow for someone who's actually on GitLab.

If the operator says "just pick whatever's easiest," pick: GitHub + GitHub Actions + their current deploy target. Tell them explicitly that you picked that and why.

CI pipeline components — required, recommended, optional

CI/CD is modular. Not every project needs every component. Use this tree to decide what to scaffold for a given repo.

CI Pipeline
│
├── REQUIRED (always scaffold)
│ ├── Checkout # git clone into the runner
│ ├── Runtime install # the language (Python/Node/Rust/Go/...)
│ ├── Dependency install # pip/npm/cargo/go mod
│ ├── Test execution # whatever test command the project has
│ └── Status reporting # pass/fail to the PR or commit
│
├── RECOMMENDED (scaffold unless operator declines)
│ ├── Lint # ruff/eslint/clippy/golangci-lint
│ ├── Typecheck # mypy/tsc --noEmit/cargo check/go vet
│ ├── Dependency caching # skip re-downloading node_modules every run
│ ├── Concurrency group # cancel old runs when a new commit lands
│ └── Branch / PR filter # only run on main + PRs, not every branch
│
├── OPTIONAL — auto deploy (only if operator asked)
│ ├── Deploy trigger # workflow_run on success, or direct push
│ ├── Deploy step # SSH / Vercel / Fly / Cloud Run / Docker push
│ ├── Post-deploy health check # curl -f /health, fail loudly
│ ├── Rollback path # revert to previous SHA on health fail
│ └── Notification # Slack/Telegram/email on success or fail
│
├── NICE TO HAVE (suggest, don't auto-add)
│ ├── Coverage report # pytest-cov, c8, tarpaulin
│ ├── Security scan # pip-audit, npm audit, cargo audit (see audit-security)
│ ├── Container build + push # if the deploy is container-based
│ ├── Integration tests # separate from unit, usually against a real DB
│ ├── Matrix builds # multiple OSes or language versions
│ ├── Scheduled runs # nightly cron for dependency updates or flake detection
│ └── Release automation # semantic-release, changesets, goreleaser
│
└── EXPENSIVE — offer only if operator asks
├── E2E browser tests # Playwright, Cypress (slow, flaky)
├── Visual regression # screenshot diffing
├── Load / stress tests # k6, Locust
├── Mutation testing # Stryker, PIT
└── Fuzzing # per-language fuzzer

How to use this tree with the operator:

  1. Start by scaffolding REQUIRED + RECOMMENDED. That's the default.
  2. Ask: "Do you also want automatic deployment, or just tests for now?" If yes → add OPTIONAL. If no → stop here.
  3. Mention NICE TO HAVE as a one-sentence menu: "You can also add coverage, a security scan, or scheduled runs later. Want any of those now?"
  4. Never silently scaffold EXPENSIVE items. They slow every run down and flake on new projects.

Every added component costs something (runner minutes, maintenance, false-positive noise). Bias toward the minimal working pipeline. It's easier to add later than to remove.

Step 2 — Concepts, if the operator wants them

If the operator said "what's a deploy?" or "what is CI?", pause and explain. Short, concrete, concrete, concrete. One analogy per concept.

CI (Continuous Integration) — "Every time you push code, a computer somewhere else runs your tests and tells you if anything broke. If the tests break, you find out in a minute instead of when a user hits the bug."

CD (Continuous Delivery / Deployment) — "If the tests pass, that same computer also deploys your code to production automatically. No more SSH."

Runner — "The computer that does the work. It's not your laptop and it's not your production server. Think of it as a rented robot that runs for 30 seconds and then disappears."

Workflow — "The recipe you give the runner. It's a YAML file that says: install these dependencies, run these tests, if they pass, deploy to this place."

Trigger — "The event that wakes the runner up. Usually 'someone pushed code to the main branch.' Can also be 'someone opened a pull request' or 'every Monday at 9am.'"

Secrets — "Passwords and API keys that the runner needs but that cannot be visible in the YAML (because YAML is in git and git is public). They live in a separate encrypted store on the CI platform and are injected into the runner at runtime."

Artifact — "The thing you built. A zip, a container image, a directory of static HTML. CI produces it; CD ships it."

Environment — "Where the artifact ends up. 'staging' is the pre-production test site; 'production' is what real users see."

After this one-page explanation, ask: "Does that make sense? Should I keep going, or do you want to pause and ask anything?"

Step 3 — Pick the right CI host

The host you generate for depends on:

  1. Their git host (from Step 1, question 2)
  2. Where they want to deploy (SSH VM? Managed platform?)
  3. Whether they already have something working (don't replace it unless asked)
Host-to-file mapping
Git hostCI file
GitHub.github/workflows/*.yml
GitLab.gitlab-ci.yml at repo root
Bitbucketbitbucket-pipelines.yml at repo root
Gitea / Forgejo.gitea/workflows/*.yml (uses GitHub Actions syntax)
CircleCI (add-on).circleci/config.yml
Travis (add-on).travis.yml

Skill scaffolds for GitHub Actions by default. For others, state clearly: "I'll write this as GitHub Actions first, then point out the pieces that change for <your host>." The core logic is portable even if the YAML syntax differs.

Step 4 — Scaffold the files

Generate two workflows at minimum:

test.yml — runs on every push and PR

Contents:

  1. Checkout the repo
  2. Install language runtime (Python, Node, Rust, etc. — auto-detect from repo files)
  3. Install dependencies
  4. Run lint
  5. Run typecheck
  6. Run tests

Commented inline for the non-developer reader. Every step has a comment explaining what it does.

deploy.yml — runs on success of test.yml

Triggered by workflow_run (GitHub Actions) or equivalent. Only fires if test.yml passed.

Contents depend on the deploy target (see Step 5). The invariant: deploy the exact revision that passed in test.yml, not whatever main happens to point to when the deploy job starts.

Built-in safety (every workflow this skill scaffolds enforces all of these):

  • Top-level `permissions: contents: read` — start from zero and only grant what the job actually needs. Default-broad token permissions are the #1 GitHub Actions supply-chain risk. Elevate per-job (e.g., id-token: write for OIDC) only where required.
  • Third-party actions pinned to a full commit SHA, never a tag. A tag can be moved; a SHA cannot. Every uses: line looks like uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2.
  • Carry the tested SHA through to deploy. For workflow_run, use the successful run's head_sha and deploy that exact commit. Never git pull origin main blindly on the server — that is how commit A's passing tests deploy commit B by accident.
  • OIDC over long-lived secrets for cloud deploys. Target platforms that support it (AWS, GCP, Azure, Vault, Cloudflare) should use federated tokens instead of storing static keys in GitHub Secrets. SSH to a VM is the one legitimate case for a static DEPLOY_SSH_KEY — there is no OIDC equivalent for arbitrary SSH.
  • Protected `production` environment with required reviewers for any job that deploys to production. environment: name: production in the job turns on the approval gate. Pair with branch protection.
  • `CODEOWNERS` covers `.github/workflows/` so a random contributor can't silently change a workflow. Add /.github/workflows/ @maintainer at minimum.
  • Self-hosted runners are opt-in and isolated. Never run self-hosted runners on a forked PR without explicit allowlisting. Prefer GitHub-hosted runners for anything that touches secrets. If self-hosted is unavoidable, use ephemeral runners and isolate by repository.
  • Log redaction — GitHub masks registered secrets automatically, but echo $SECRET still risks leaking through errors, stack traces, or timing. Never echo a secret. If a command's output might contain one, pipe through a redaction filter.
  • `concurrency` group so two deploys don't race each other.
  • Job-level `timeout-minutes` so a hung deploy eventually fails.
  • Secrets cleanup — any temp SSH key or credential file is deleted in an always() step.
  • Post-deploy health check — curl -f <url>/health or equivalent. If the health check fails, the deploy job fails loudly.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
52
Repository forks
3
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Jun 2026, 5 months ago.

Extension points

  • hookPre/post lifecycle hooks
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/subinium/vibesubin/setup-ci/badge)](https://verified-skill.com/skills/subinium/vibesubin/setup-ci)

Something wrong with this skill or its page? Tell us.