Code Review Assistant
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_60efd670/review-v2 into your AI assistant.
About this skill
Problem to solve
Code review often collapses into style nitpicks: security issues hide behind readability comments, performance concerns lack evidence, and test coverage is rarely checked. This skill turns review into a structured workflow: define scope, read context, then report findings in the fixed order Security → Quality → Performance → Architecture → Testing.
How it works
- Scope selection: review a specific file if provided; otherwise inspect
git difforgit diff HEAD~1, and ask the user when no meaningful diff exists. - Context gathering: read the target files fully, identify language, framework, and project role, and check configs such as
package.jsonortsconfig.jsonwhen they affect the review. - Dimension checks: security covers injection, access control, secrets, unsafe deserialization, and PII; quality covers logic, error handling, and edge cases; performance covers N+1, blocking calls, and hot-path allocation; architecture covers layering and coupling; testing covers coverage, assertions, and testability.
- Report output: findings should include file paths, line numbers, concrete suggestions, and uncertainty where needed, ending with a merge decision and follow-up fix or test recommendations.
Boundaries
It fits PRs, branches, uncommitted changes, and small file reviews. It does not replace security scanners, coverage tools, or team standards. It may skip inapplicable dimensions for CSS or docs and state the reason. If a project already has an established pattern, it notes the deviation without calling it an error unless it causes real problems.
Use Cases
- Check uncommitted changes for injection, access control, secrets, and missing tests before submitting a PR.
- Review a refactor for layer violations, tight coupling, and departures from established project patterns.
- Identify N+1 queries, blocking I/O, and hot-path allocation risks before merging a branch.
- Produce an ordered review report with file paths, line numbers, and concrete improvement suggestions.
Best For
- Backend engineers reviewing service changes for security and logic defects before merge.
- Frontend or full-stack engineers enforcing consistent PR checks for quality, performance, and tests.
- Engineers taking over unfamiliar repos and validating architectural boundaries and test coverage.
- Code owners requiring findings with file paths, line numbers, and concrete suggestions.
Related Skills
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.
Executes an Eversheet Web CDP login using externally supplied baseUrl, username, and password, then verifies the page reaches a logged-in home state.
Clarify product goals, user flows, pages, data, and permissions, then output an implementation-ready development prompt and lightweight spec.