naiemk/vibed-infra/infra-e2e-cicd

Claude Code and agent skill by naiemk/vibed-infra

Trust tier 3
  • community
Source check pending

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-cicd

SKILL.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

LayerWhat it provesWhere
vibed-infra CIInstall scripts, named volumes, OIDC webhook, multi-app gatewayThis repo — npm test, test:dist, test:e2e-multi
Product CIApp critical paths, Playwright UI flows, temp DB, human-action harnessesProduct 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

validate (package drift + unit tests)
→ build-api / build-ui / build-nodes (GHCR push + OIDC notify)
→ e2e-playwright (temp DB, VIBED_E2E_HARNESS=1)
→ harness-absence check (production-profile image returns 404 on /__e2e__/*)

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

  1. Identify user journeys that must never break: sign-in, core CRUD, checkout, wallet sign, etc.
  2. One Playwright spec per journey — keep specs focused; use smoke vs full suite tags (@smoke).
  3. Map selectors to stable data-testid attributes (see reference/playwright-ui.md).
  4. Never point e2e at prod or VPS DB — always use a temp database per CI job.

Temp DB

  • Postgres: GitHub Actions services: block or docker compose service; 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_PROFILEproduction (default in reusable workflow)e2e only in e2e compose
VIBED_E2E_HARNESSunset1
Harness routes404 / absentavailable 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

TopicFile
Full product CI workflowreference/product-ci-workflow.yml
Docker pull-size optimizationreference/docker-optimization.md
Playwright-friendly UI + configreference/playwright-ui.md
Passkey / wallet / captcha harnessesreference/human-harnesses.md

GHCR build (one job per image)

Use the reusable workflow from vibed-infra (see `infra-cicd`):

yaml
build-api:
uses: naiemk/vibed-infra/.github/workflows/docker-build-reusable.yml@main
permissions:
contents: read
packages: write
id-token: write
with:
dockerfile: app/api/Dockerfile
image: ghcr.io/${{ github.repository_owner }}/my-api
build-args: BUILD_PROFILE=production

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 dist in CI validate job
  • [ ] GHCR jobs for api, ui, nodes with id-token: write
  • [ ] Dockerfiles follow docker-optimization.md (pull size first)
  • [ ] UI uses data-testid on interactive elements
  • [ ] E2e uses temp DB; migrations run before tests
  • [ ] Harness code only under e2e/; production build excludes it
  • [ ] CI asserts /__e2e__/health returns 404 on production-profile image
  • [ ] VIBED_E2E_HARNESS never set in VPS .env or dist/ templates

Agent workflow

  1. Read infra-packager → wire templates + commit dist/.
  2. Apply product-ci-workflow.yml to .github/workflows/ci.yml.
  3. Optimize Dockerfiles per docker-optimization.md.
  4. Add Playwright config + specs per playwright-ui.md.
  5. Add harness stubs from human-harnesses.md under e2e/ only.
  6. Add prod-image harness-absence check to CI.
  7. Wire GHCR matrix with id-token: write per infra-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/naiemk/vibed-infra/infra-e2e-cicd/badge)](https://verified-skill.com/skills/naiemk/vibed-infra/infra-e2e-cicd)

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