Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/flexprice-flexprice-flexprice)
---
name: pr
description: >-
FlexPrice PR self-review checklist — security, layering, migrations, tests. Trigger:
pr check, ship review, pre-PR.
---
# **`pr`** — pre-merge checklist
Run mentally or out loud through this list; fix gaps before requesting review.
## Scope & layering
- [ ] Change lives in correct layer (handler vs service vs domain vs repo per **`docs/ARCHITECTURE.md`**).
- [ ] No new hidden globals unless unavoidable and documented (`HOTSPOTS.md` patterns).
- [ ] Tenant/environment scoping preserved for multi-tenant data paths.
## Security & config
- [ ] No secrets, tokens, or production URLs committed (`.env`, keys in tests).
- [ ] Auth/RBAC-sensitive routes still behind correct middleware (`internal/api/router.go` patterns).
## Data & migrations
- [ ] Ent schema edits accompanied by **`make generate-ent`** and migration plan (**`make migrate-ent`** / **`make generate-migration`** per deployment).
- [ ] ClickHouse changes have matching files under **`migrations/clickhouse/`** when applicable.
## API & clients
- [ ] Swagger annotations updated for new/changed endpoints; run **`make swagger`**.
- [ ] If public SDK contract changes: **`make sdk-all`** (or agreed subset) and **`api/custom`** merged.
## Quality
- [ ] **`gofmt`**, **`go vet`** on affected scope.
- [ ] **`go test -race`** on touched packages or **`make test`** for broad changes.
- [ ] Prefer table-driven tests for multiple cases (`internal/ee/service/*_test.go` conventions).
## Docs & graph
- [ ] Structural change updates **`docs/REPO_MAP.md`** / **`DEPENDENCY_GRAPH.md`** / **`FLOWS/*`** when behavior or topology changes.
- [ ] If Graphify is used: **`graphify update .`** at repo root (see **`repo-architecture-intelligence`** personal skill).
## Tone for reviewers
Summarize intent, risk, and test evidence in the PR body (not “fixed stuff”).