Cursor prompt

Cursor: Create GitHub Actions CI Pipeline

Complete GitHub Actions CI/CD pipeline with parallel jobs for testing, linting, type checking, security scanning, and deployment.

Create a GitHub Actions CI/CD pipeline for {{project_name}}.

## Framework: {{framework}}
## Deploy Target: {{deploy_target}}

### Workflow File: .github/workflows/ci.yml
Triggers: push to any branch, pull_request targeting main.

### Parallel Jobs

**lint** — ESLint + Prettier check; blocks all other jobs if it fails.

**typecheck** — tsc --noEmit; must pass before merge.

**test** — Run unit tests; fail if coverage drops below {{coverage_threshold}}%.
Upload coverage report to Codecov. Cache node_modules with package-lock hash.

**security** — npm audit --audit-level=high. CodeQL analysis on main.

**build** — Verify production build succeeds. Needs: lint, typecheck, test.

**deploy-preview** — Deploy to preview URL for every PR. Post URL as PR comment.
Condition: github.event_name == 'pull_request'

**deploy-production** — Deploy to {{deploy_target}}. Condition: github.ref == 'refs/heads/main'.
Requires manual approval gate via environment protection rules.

### Performance
- Cache node_modules: key = OS + node version + lockfile hash
- Reuse build artifacts between jobs
- Set job timeout-minutes: 15 to prevent runaway jobs

### Notifications
Slack alert on production deployment success or failure.

### Branch Protection (document in README)
- All CI jobs must pass before merge
- Require branch up-to-date with base
- Dismiss stale approvals on new commits

### Output
All .github/workflows/ YAML files, branch protection instructions, Codecov config.

Fill in: {{project_name}}, {{framework}}, {{deploy_target}}, {{coverage_threshold}}. In Loopy you fill these in a form and copy the finished prompt in one click.