ops/skills/write-prs/SKILL.md
Write, open, iterate, merge, and optionally deploy pull requests in the 6529 SEIZE backend with clear PR descriptions, safe validation notes, review-bot follow-up, DCO-signed commits only when explicitly requested, backend/API checks, lambda deployment planning, and staging or production deployment gates. Use when preparing PR bodies, creating PRs, responding to CodeRabbit or Claude review bots, deciding whether a PR is ready, merging, or carrying a backend/API PR through staging/prod rollout.
npx skillsauth add 6529-collections/6529seize-backend write-prsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Determine the requested completion mode:
review-ready: create or update the PR and stop once available review bots and the agent are satisfied.merge: do everything in review-ready, then merge when required checks and approvals allow it.staging: merge, deploy to staging using the repo-approved path, and run smoke validation against staging.prod: complete staging validation first, then deploy to production and run production smoke validation.
If the user did not explicitly request merge or deployment, stop at review-ready.Inspect the change before writing:
git status, the diff, changed files, and relevant tests.docs/architecture.md; otherwise state that no architecture-doc update is needed.Respect commit rules:
Signed-off-by: footer with the user's name and matching GitHub noreply email. Verify Git identity before committing.Write a concise PR title and body:
## Issue
- What problem, user need, bug, or follow-up this PR addresses.
## Fix
- The core solution and why it is appropriate.
## Changes
- Notable code, docs, config, API, data-shape, entity, migration, queue, Lambda, or deploy changes.
## Validation
- Commands, checks, generated-file refreshes, or manual flows completed.
- Anything intentionally not tested, with the reason and residual risk.
## Risk
- Level: Low | Medium | High
- Why: blast radius, reversibility, data/security/performance/deploy impact.
- Rollback: expected rollback or mitigation path.
## Deployment
- Lambdas/services to redeploy, in order.
- State "None" when no backend deploy is needed.
## Review Notes
- Areas reviewers or bots should focus on, plus any trade-offs.
Omit empty sections only when truly irrelevant.
Redact local and private information:
Iterate with available review bots:
coderabbitai[bot], Claude, or claude[bot].Decide readiness:
npm run lint after changes; fix all errors and warnings.npm test for broad behavior changes, and npm test path/to/file.test.ts for focused test runs.npm run build for TypeScript, generated deploy config, entity, shared-library, loop, or deploy-sensitive changes.cd src/api-serverless && npm run restructure-openapi && npm run generate; use npm run build in src/api-serverless when API packaging or generated API output is affected.src/config/deploy-services.json, run npm run generate:deploy-config, and commit the generated .github/workflows/deploy.yml change..github/workflows/deploy.yml workflow dispatch for deployments. It accepts environment (staging or prod) and service.dbMigrationsLoop before services that depend on new schema/entity sync or data backfills.api for API route, OpenAPI, auth, API service, generated-model, or API packaging changes.src/<loopName>/ implementation, dependencies, or deploy config changed.development
Create, improve, or review Codex/OpenAI Agent Skills and SKILL.md files. Use when writing a new skill, updating an existing skill, designing skill frontmatter and trigger behavior, choosing scripts/references/assets, validating skill structure, or turning repeatable Codex workflows into reusable skills.
development
Add or change identity notification types in the 6529 SEIZE backend by updating notification causes, domain data types, DB-to-domain mappers, UserNotifier creation methods, push notification rendering/settings, notification API mappings, OpenAPI enums, and tests. Use when adding new notification types, creating identity notifications, changing notification payloads, or extending push/API notification behavior.
testing
Implement database-related changes in this repository, including schema changes via TypeORM entities, repository/query patterns, request-context transactions, DB tests, and explicit data migrations. Use when working on DB schema updates, repositories or *Db classes, SQL queries, transactions, data backfills, or app logic that reads or writes MySQL data.
development
Add or change community metrics in the 6529 SEIZE backend by updating metric rollup enums, recorder methods, recording call sites, optional historical backfills, OpenAPI response models, and community-metrics API aggregation. Use when adding new community metrics, exposing metric summaries or series, tracking community activity, or changing MetricsRecorder/MetricsDb behavior.