一键导入
review-quality
Generic code quality review — evaluates DRY, KISS, cohesion/coupling, test quality, and HCI. Read-only, no code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generic code quality review — evaluates DRY, KISS, cohesion/coupling, test quality, and HCI. Read-only, no code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when you want to take a Backlog issue all the way to Final review without manual orchestration — chains check-issue, fix-issue, add-model/add-rule, run-pipeline, and review-pipeline; substantive issue-quality problems are sent to a rewrite subagent; algorithmically unsalvageable issues are parked on OnHold
Use when reviewing a [Rule] or [Model] GitHub issue for quality before implementation — checks usefulness, non-triviality, correctness of literature claims, and writing quality
Use when a user wants to propose a new problem model or reduction rule — guides them through brainstorming, clarifies the design, and files a GitHub issue
Review the Typst paper (docs/paper/reductions.typ) for quality issues — evaluates 10 entries per session, reports mechanical and critical issues without fixing
Reverse of find-solver — given a solver for a model, discover what other problems it can handle via incoming reductions, ranked by effective complexity
Interactive guide — match a real-world problem to a library model, explore reduction paths, recommend solvers (built-in + external), and generate a solution doc
基于 SOC 职业分类
| name | review-quality |
| description | Generic code quality review — evaluates DRY, KISS, cohesion/coupling, test quality, and HCI. Read-only, no code changes. |
Generic code quality review that applies to any code change. Evaluates design principles, test quality, and (if applicable) CLI/HCI quality.
This skill is read-only. It evaluates and reports — it does NOT fix, commit, or push anything.
/review-quality -- auto-detect from git diffCalled by review-pipeline as one of three parallel sub-reviews.
If the caller (e.g., review-pipeline) already provided a pre-generated review-implementation report in the prompt, use that directly and skip the generation command below.
Otherwise, generate the context yourself:
REPORT=$(python3 scripts/pipeline_skill_context.py review-implementation --repo-root . --format text)
printf '%s\n' "$REPORT"
Extract from the report:
Review Range: base SHA and head SHAChanged Files and Diff StatLinked Issue Contextgit diff --stat {BASE_SHA}..{HEAD_SHA}
git diff {BASE_SHA}..{HEAD_SHA}
Then read all changed files in full.
Is there duplicated logic that should be extracted into a shared helper? Check for copy-pasted code blocks across files (similar graph construction, weight handling, or solution extraction patterns).
Is the implementation unnecessarily complex? Look for: over-engineered abstractions, convoluted control flow, premature generalization, layers of indirection that add no value.
Does each module/function/struct have a single, well-defined responsibility?
Only check these if the diff touches problemreductions-cli/:
"invalid parameter". Good: "KColoring requires --k <value> (e.g., --k 3)".--help examples? Undocumented flags? Silent failures that should suggest alternatives?Flag tests that:
assert!(result.is_some()) without checking the solution is correct## Quality Review
### Design Principles
- DRY: OK / ISSUE — [description with file:line]
- KISS: OK / ISSUE — [description with file:line]
- HC/LC: OK / ISSUE — [description with file:line]
### HCI (if CLI/MCP changed)
- Error messages: OK / ISSUE — [description]
- Discoverability: OK / ISSUE — [description]
- Consistency: OK / ISSUE — [description]
- Least surprise: OK / ISSUE — [description]
- Feedback: OK / ISSUE — [description]
### Test Quality
- Naive test detection: OK / ISSUE
- [specific tests flagged with reason and file:line]
### Issues
#### Critical (Must Fix)
[Bugs, correctness issues, data loss risks]
#### Important (Should Fix)
[Architecture problems, missing tests, poor error handling]
#### Minor (Nice to Have)
[Code style, optimization opportunities]
### Summary
- [list of all ISSUE items as bullet points with severity]