subinium/vibesubin/setup-ci
Claude Code and agent skill by subinium/vibesubin
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"plugin","description":"Custom plugin integration"}]
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-ciSemi-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:
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.
How to use this tree with the operator:
- Start by scaffolding REQUIRED + RECOMMENDED. That's the default.
- Ask: "Do you also want automatic deployment, or just tests for now?" If yes → add OPTIONAL. If no → stop here.
- 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?"
- 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:
- Their git host (from Step 1, question 2)
- Where they want to deploy (SSH VM? Managed platform?)
- Whether they already have something working (don't replace it unless asked)
Host-to-file mapping
| Git host | CI file | |
|---|---|---|
| GitHub | .github/workflows/*.yml | |
| GitLab | .gitlab-ci.yml at repo root | |
| Bitbucket | bitbucket-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:
- Checkout the repo
- Install language runtime (Python, Node, Rust, etc. — auto-detect from repo files)
- Install dependencies
- Run lint
- Run typecheck
- 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: writefor 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 likeuses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2. - Carry the tested SHA through to deploy. For
workflow_run, use the successful run'shead_shaand deploy that exact commit. Nevergit pull origin mainblindly 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: productionin 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/ @maintainerat 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 $SECRETstill 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>/healthor 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
- SKILL.md in the repositoryCheckingplugins/vibesubin/skills/setup-ci/SKILL.md
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 hookspluginCustom 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
[](https://verified-skill.com/skills/subinium/vibesubin/setup-ci)