.cursor/skills/novu-prepare-pr/SKILL.md
Run this after implementation is complete on a feature branch. Do not replan or expand scope unless review/CI exposes a real gap.
cursor/<short-description> off next).nv-XXXX, NV-XXXX).Copy and track:
PR prep progress:
- [ ] 1. Scope & diff sanity
- [ ] 2. Quality passes
- [ ] 3. Security check (if shared/multi-tenant)
- [ ] 4. Local validation
- [ ] 5. Commit hygiene
- [ ] 6. Open or update PR
- [ ] 7. CI triage & fix
- [ ] 8. Review comments
- [ ] 9. Merge-ready check
git status, git diff, git log next..HEAD --oneline.Run in order when the branch is non-trivial:
Skip or shorten for tiny hotfixes the user explicitly scoped.
Required when the PR touches API or Worker related code and DAL.
Checklist:
_organizationId / _environmentIdIf P0 cross-tenant risk is found: fix + add e2e coverage before opening/updating PR.
Pick the smallest check that proves the change:
| Change type | Command |
|---|---|
| API / libs type errors | pnpm --filter @novu/api-service build |
| Shared libs | pnpm build (only if packages/ or enterprise/ touched) |
| New/changed e2e | Load run-api-e2e-tests and run the specific file |
Report failures; fix before push when deterministic.
type(scope): concise why fixes NV-XXXdashboard, api-service, worker, shared, etc.Read .cursor/rules/pullrequest.mdc before creating.
**next**type(scope): Description fixes NV-XXX (or NOV-XXX per template)gh pr create / update existing PR — do not push unless user askedIf branch diverged from next: fetch origin, merge/rebase, resolve simple conflicts preserving both intents; report complicated intent conflicts.
When checks fail:
ci-investigator subagent per failing check in parallel (single message, all Task calls together).Load get-pr-comments skill when user asks to address PR feedback.
Before calling done:
enterprise/ changed, note matching enterprise PR may be required (do not "fix" submodule sync test in main repo)Optional: load babysit skill when user asks to keep iterating until merge-ready.
thermo-nuclear-code-quality-review — pre-PR quality auditdeslop — remove AI slop from branch diffget-pr-comments — triage review feedbackbabysit — loop until merge-ready