一键导入
review-fix
Review findings workflow — verify against codebase, fix valid issues, skip invalid ones with reasons, and validate each change with tests and formatting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review findings workflow — verify against codebase, fix valid issues, skip invalid ones with reasons, and validate each change with tests and formatting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | review-fix |
| description | Review findings workflow — verify against codebase, fix valid issues, skip invalid ones with reasons, and validate each change with tests and formatting. |
| license | MIT |
| metadata | {"author":"qeriplayer","version":"1.0"} |
Verify a set of review findings against the current codebase, fix valid issues, skip invalid ones with reasons, and validate each change with tests and formatting.
Always scan for these categories, regardless of what triggered the review:
| Category | What to look for |
|---|---|
| Exception handling | Repo/API calls without try-catch, fire-and-forget coroutines that can throw, catch blocks that swallow exceptions silently |
| Logging | qWarning() in non-core layers (should use Logger::get()), missing log statements in catch blocks, inconsistent log categories |
| Database transactions | Multi-statement writes without beginTransaction/commitTransaction, missing rollback in catch blocks, cross-repo operations that should be atomic |
| Memory safety | Raw this captures in coroutines/lambdas (use QPointer), discarded QCoro::Task return values, dangling pointers after deleteLater() |
| Thread safety | Shared mutable state accessed from coroutines, missing guards for cross-thread signal/slot connections |
Before any changes:
just build # confirm clean build
just test # confirm all tests pass — this is the baseline
For each valid finding, in order of dependency (leaf changes first):
just buildjust test (full suite, not just affected tests)Commit message format:
<type>(<scope>): <imperative description>
After all code fixes, add regression tests for:
Test naming: <method>_<scenario> (e.g., setPlayingIndex_invalidIndex)
just format-against <base-ref> # fix any violations
just check-against <base-ref> # verify clean
just test # final full suite run
git commit # commit formatting if needed
| Type | When |
|---|---|
fix | Bug fix, null check, validation, race condition |
style | Formatting only (clang-format) |
test | Adding/updating tests |
docs | Documentation corrections |
build | Build system / tooling changes |
| Reason | Example |
|---|---|
| Already fixed | "Code already handles this case" |
| Spec mismatch | "Spec says QString, matches code — spec comment not code bug" |
| Needs larger refactor | "Transaction API not exposed via repo interfaces" |
| Out of scope | "Complex feature requiring API response structure understanding" |
| Intentional TODO | "TODO is intentional, ServiceLocator exists but integration pending" |