Code Quality Reviewer
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_f2e0c902/asddsawwqewq.
About this skill
Problem
Code review often stays at the surface level: naming, indentation, and formatting are checked, while the real risks are missed. These include null handling, out-of-bounds access, race conditions, hardcoded secrets, inefficient for loops, and repeated queries. Engineers need a repeatable review framework, not another vague prompt that produces generic feedback.
How It Works
The skill evaluates a code snippet across four fixed dimensions:
- Style and readability: naming, structure, comments, and function length.
- Potential bugs: edge cases,
null/undefined, array indexes, recursion, and concurrency safety. - Performance: algorithmic complexity, resource use, and optimization targets.
- Security: SQL injection, XSS, authorization checks, and hardcoded API keys.
It returns a Markdown report with an executive summary, detailed findings, and a conclusion. Warnings, bugs, and security issues are marked with symbols, and each finding includes a concrete suggestion.
Boundaries
It is useful for JavaScript, TypeScript, Python, Java, and Go snippets. When context is missing, such as API contracts, database models, caller constraints, or business invariants, conclusions are inferences based on visible code only. For high-risk areas like encryption, payments, or authorization, treat the output as a review checklist, not a final security audit.
Use Cases
- Pre-PR review of a TypeScript module to locate null-handling and concurrency risks
- Assess legacy Python code for performance bottlenecks and security gaps before onboarding
- Generate a structured Go service review report with severity markers before a code review meeting
- Check algorithmic complexity and get concrete refactoring suggestions for a JavaScript utility
Best For
- Senior frontend engineers reviewing TypeScript PRs who need to quickly locate null-handling and concurrency issues
- Developers taking over legacy Python backends who need a systematic assessment of performance and security gaps
- Tech leads who need a structured report before code review meetings to drive team discussion
- Backend engineers tuning Go microservices who need to identify algorithmic complexity and resource bottlenecks
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Restores Lanhu designs to target framework code using schema JSON, design tokens, and image assets.
Automatically detects engineering or competition code, analyzes bugs, vulnerabilities, algorithm complexity, and edge cases, then produces risk-level findings with before/after fixes.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.