AI Agent Hub
Back to skills
Code Review Assistant icon

Code Review Assistant

Development Updated 2026.08.30

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 diff or git 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.json or tsconfig.json when 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.