pr

GitHub

提供合并前代码审查清单,涵盖架构分层、安全配置、数据迁移、API文档及代码质量检查,确保PR在提交评审前符合规范。

.cursor/skills/pr/SKILL.md flexprice/flexprice

Trigger Scenarios

PR自查 提交前审查

Install

npx skills add flexprice/flexprice --skill pr -g -y
More Options

Use without installing

npx skills use flexprice/flexprice@pr

指定 Agent (Claude Code)

npx skills add flexprice/flexprice --skill pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add flexprice/flexprice --all -g -y

预览 repo 内 skill

npx skills add flexprice/flexprice --list

SKILL.md

Frontmatter
{
    "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”).

Version History

  • 0b58626 Current 2026-08-20 14:48

Same Skill Collection

.context/sync/SKILL.md
.cursor/skills/apitest/SKILL.md
.cursor/skills/arch/SKILL.md
.cursor/skills/compose/SKILL.md
.cursor/skills/gh/SKILL.md
.cursor/skills/godev/SKILL.md
.cursor/skills/openapi/SKILL.md
.cursor/skills/devenv/SKILL.md

Metadata

Files
0
Version
0b58626
Hash
9ccac669
Indexed
2026-08-20 14:48

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 18:57
浙ICP备14020137号-1 $방문자$