Use after completing implementation to review code quality, user impact, test coverage, and documentation before creating a PR
Review code for quality, user impact, tests, and documentation. Balance technical excellence with practical simplicity.
Core principle: Clean code should serve users, not just developers.
| Phase | Focus | Key Question |
|-------|-------|--------------|
| 1. Identify | What changed? | git diff --name-only develop |
| 2. User Impact | How does this affect users? | Is UX better or worse? |
| 3. Code Quality | Does it follow standards? | KISS + no anti-patterns? |
| 4. Tests | Is it covered? | New code = new tests? |
| 5. Docs | What needs updating? | llm/state-*.md current? |
Categorize changed files:
lib/, app.pyfrontend/src/tests/llm/, *.mdNote change type: new feature | bug fix | refactoring | enhancement
Ask for each change:
Red flags:
Can each function be explained in one sentence? If not, it's too complex.
any types or as assertions? placeholders)| Change Type | Required Test |
|-------------|---------------|
| New API endpoint | Unit test |
| New block | tests/blocks/test_*.py |
| Bug fix | Regression test |
| User workflow change | E2E test |
| Refactoring | Existing tests pass |
Test quality:
test_<method>_<scenario>_<expected>Update llm/state-*.md when:
state-backend.mdstate-backend.mdstate-frontend.mdstate-project.mdCode comments: explain WHY, not what. Lowercase, concise.
### User Impact
[UX improvements or issues found]
### Anti-patterns
[location + violation + fix, or "none"]
### Code Quality Issues
[severity + location + fix, or "none"]
### Test Coverage
[required: present/missing | gaps if any]
### Documentation Updates
[files needing update, or "none"]
### Verdict
[BLOCK | REQUEST CHANGES | APPROVE]
Reason: [brief explanation]
| Condition | Verdict | |-----------|---------| | Anti-patterns found | BLOCK | | Security issues | BLOCK | | Missing required tests | REQUEST CHANGES | | Needs doc updates | REQUEST CHANGES | | All checks pass | APPROVE |
npx skills add nicofretti/code-review下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer