naiemk/vibed-infra/infra-e2e-cicd
Claude Code and agent skill by naiemk/vibed-infra
- community
Checking that the SKILL.md file is still in the repository.
E2E CI/CD for vibed-infra products: GHCR build/tag (UI/API/nodes), OIDC auto-update, Docker pull-size optimization, Playwright critical paths, temp DB, CI-only human-action harnesses. Use when setting up product GitHub Actions or browser e2e tests.
Install
npx vskill@latest install naiemk/vibed-infra/infra-e2e-cicdSKILL.md
The same SKILL.md was published earlier as naiemk/vibed-infra/infra-e2e-cicd.
E2E CI/CD for vibed-infra products
Best practices for product repos that use the infra packager. An agent should read this skill after `infra-packager` and apply the reference templates to the product repo.
Separation of concerns
| Layer | What it proves | Where | |
|---|---|---|---|
| vibed-infra CI | Install scripts, named volumes, OIDC webhook, multi-app gateway | This repo — npm test, test:dist, test:e2e-multi | |
| Product CI | App critical paths, Playwright UI flows, temp DB, human-action harnesses | Product repo — see reference/product-ci-workflow.yml |
vibed-infra CI does not run Playwright. Products add browser e2e for their own critical paths.
Product CI job graph
On default-branch push, each GHCR build job notifies the VPS via OIDC (see `infra-update-agent`). Tags: :main, main-<sha>, semver on release tag.
Critical paths
- Identify user journeys that must never break: sign-in, core CRUD, checkout, wallet sign, etc.
- One Playwright spec per journey — keep specs focused; use smoke vs full suite tags (
@smoke). - Map selectors to stable
data-testidattributes (see reference/playwright-ui.md). - Never point e2e at prod or VPS DB — always use a temp database per CI job.
Temp DB
- Postgres: GitHub Actions
services:block ordocker composeservice; unique database name per job (e2e_${{ github.run_id }}). - SQLite: tmpfile path in env; delete on job end.
- Run migrations before Playwright starts (
npx prisma migrate,alembic upgrade, etc.). - Seed minimal fixtures in the e2e setup hook, not in production migrations.
VPS vs CI images
| VPS (production) | CI (e2e) | ||
|---|---|---|---|
| Tag | :main from GHCR | :local or :main-<sha> built in job | |
BUILD_PROFILE | production (default in reusable workflow) | e2e only in e2e compose | |
VIBED_E2E_HARNESS | unset | 1 | |
| Harness routes | 404 / absent | available for simulators |
Production images pushed to GHCR use BUILD_PROFILE=production by default (reusable workflow). Harness code lives under e2e/ and is never imported by the production server entrypoint.
Reference docs
| Topic | File | |
|---|---|---|
| Full product CI workflow | reference/product-ci-workflow.yml | |
| Docker pull-size optimization | reference/docker-optimization.md | |
| Playwright-friendly UI + config | reference/playwright-ui.md | |
| Passkey / wallet / captcha harnesses | reference/human-harnesses.md |
GHCR build (one job per image)
Use the reusable workflow from vibed-infra (see `infra-cicd`):
Repeat for UI and nodes/worker images. Image names must match *-config.yaml and include ghcr.io/{owner}/… so OIDC notify matches the update-agent registry.
Checklist
- [ ] Critical paths listed and covered by Playwright specs
- [ ]
./package.sh+git diff --exit-code distin CI validate job - [ ] GHCR jobs for api, ui, nodes with
id-token: write - [ ] Dockerfiles follow docker-optimization.md (pull size first)
- [ ] UI uses
data-testidon interactive elements - [ ] E2e uses temp DB; migrations run before tests
- [ ] Harness code only under
e2e/; production build excludes it - [ ] CI asserts
/__e2e__/healthreturns 404 on production-profile image - [ ]
VIBED_E2E_HARNESSnever set in VPS.envordist/templates
Agent workflow
- Read
infra-packager→ wire templates + commitdist/. - Apply product-ci-workflow.yml to
.github/workflows/ci.yml. - Optimize Dockerfiles per docker-optimization.md.
- Add Playwright config + specs per playwright-ui.md.
- Add harness stubs from human-harnesses.md under
e2e/only. - Add prod-image harness-absence check to CI.
- Wire GHCR matrix with
id-token: writeperinfra-update-agent.
Security
- Security scanPassed, 90 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 repositoryCheckingskills/infra-e2e-cicd/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/naiemk/vibed-infra/infra-e2e-cicd)