| name | code-review |
| description | Code quality checklist and review automation scripts for quark-engine PRs |
| version | 1.0.0 |
| allowed-tools | bash(.claude/skills/code-review/scripts/*.sh) |
Code Review
Code Quality Checklist
Based on the project's review standard. Each item is tagged with a review role.
1. Functional Correctness
2. Code Design
3. Code Style
4. Testing & Regression Prevention
5. Security
6. Debugging Standards
7. PR Preparation
Review Automation Scripts
Bundled scripts in .claude/skills/code-review/scripts/ automate the checklist items marked with automate above.
Prerequisites: pip install black pylint mypy codespell bandit pytest-cov (or use uvx for one-off runs).
Review workflow
Phase 1 — Understand
- Read the changed files and their surrounding context (callers, callees, related modules)
- Understand the feature's intent from the linked issue, branch name, and commit messages. Ask questions if unclear.
- Identify how the changes fit into the existing architecture (e.g., does a new method in
TableObject affect all callers in PyEval?)
- Check whether the change duplicates, conflicts with, or misuses existing patterns in the codebase
Phase 2 — Plan
- Produce a test plan blueprint based on the Code Quality Checklist:
- List every test item (automated scripts and manual checks), with a brief description of what each verifies
- Present the blueprint to the user for review
- Wait for user confirmation before executing any tests
Phase 3 — Automated checks
- Run all automated checks:
bash .claude/skills/code-review/scripts/run_all.sh <changed-files-or-dir>
- Fix failures and re-run until all checks pass. If a failure is due to a missing dependency, install and retry up to 3 attempts; after that, skip the check and record it for the final summary.
Phase 4 — Manual review
- Review checklist items without an automate marker — these require manual judgment, informed by the context gathered in Phase 1
Phase 5 — Finalize
- Mark the review as complete only when both automated and manual checks pass
- In the final summary, include a Skipped Tests section listing any checks skipped due to unresolvable tooling errors, with error details
Summary Format
Present the review result as a single consolidated table. Each row is one check (automated or manual) with its result and issue description.
Only show issues. Do not include a "What's Good" section. End by asking the user if they want any issues fixed.
See examples/summary.md for the expected output format.