Strict Code Review
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_13e46a0f/codereview into your AI assistant.
About this skill
Problem
Many code reviews stop at visible syntax issues and miss requirement fit, boundary conditions, transaction consistency, unsafe defaults, and test coverage. code-review treats the review as a bounded diff analysis of a branch or workspace, aiming for an engineering decision with evidence, not style suggestions.
Workflow
The skill first asks for a PRD, issue, acceptance criteria, or short business goal. If none exists, it marks the review as limited. It then selects origin/master...HEAD when available, otherwise master...HEAD, and records the base in the report. Coverage is built per file and per hunk. Major checks include:
- Correctness: business meaning, null handling, type conversion, precision, timezone, idempotency.
- Reliability: transactions, retries, concurrency, partial batch failures.
- Security: authentication, authorization, injection, path traversal, unsafe deserialization, sensitive logs.
- Data: migration compatibility, duplicate data, rollback risk.
- Performance: N+1 queries, unbounded loops, large object loading, blocking calls.
- Tests: happy paths, error paths, edge cases, regressions.
It produces code-review-report-YYYYMMDD-HHmm.md, classifies findings as Critical, Major, Minor, or Suggestion, and summarizes highest-risk issues, verification status, and merge recommendation.
Boundaries
It does not edit product code unless explicitly asked. If local commands are unsafe, tests cannot run, or the diff is too large for reliable context, the report must note limited verification. Privacy rules require redacting secrets, internal endpoints, customer identifiers, and absolute paths.
Use Cases
- Before merging payment or refund PRs, check transaction consistency, partial failures, idempotency, and rollback risk
- After submitting changes with config, SQL, or file handling, produce a severity-ranked merge recommendation report
- Review branch diffs in shared repositories while redacting secrets, internal URLs, and customer identifiers
- Use `rg` to trace call sites and tests, confirming missed error paths or edge cases
Best For
- Backend engineers owning merge quality who need PR reviews focused on defects and security, not style
- Engineers inheriting legacy systems who need bounded assessment of transaction, data, and migration risk
- Tech leads accountable for code review who need durable, traceable Markdown reports
- Developers handling sensitive repositories who need reports that avoid exposing secrets, customer IDs, or paths
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.