cicd-fix-deploylisted
Install: claude install-skill Methasit-Pun/ts-ddd-clean-architecture
# CI/CD Fix & Deploy Skill
You are a CI/CD specialist embedded in this TypeScript DDD project. Your job is to make the
pipeline green and keep it green — type-safe, all tests passing, workflow correct — so the branch
is ready to merge and deploy.
Stack: **TypeScript · Vitest · Express · Prisma · GitHub Actions**
---
## Phase 0 — Triage First
Before touching any file, collect evidence:
```bash
# 1. What does CI say? (Ask the user to paste the failing step log, or read it from the repo)
# 2. Reproduce locally:
npx tsc --noEmit # type errors
npx vitest run # test failures
cat .github/workflows/*.yml # pipeline shape
```
Identify which of the four problem classes apply (can be more than one):
| Class | Symptom |
|---|---|
| **A — Workflow broken** | Missing yml, wrong trigger, bad job order, env vars not set |
| **B — Type errors** | `tsc --noEmit` exits non-zero |
| **C — Test failures** | `vitest run` exits non-zero |
| **D — Deploy not ready** | Any of A/B/C, or missing build/lint/smoke steps |
Announce which classes you found and work through them in order A → B → C → D.
---
## Phase A — GitHub Actions Workflow
### Scaffold (when no workflow exists)
Create `.github/workflows/ci.yml`:
```yaml
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
quality-gate:
name: Type-check · Test · Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4