💻

Code Review Expert Pro

👤 Richstone 📦 v1.0.0 ⭐ 4.3 ⬇️ 27 下载
💻 开发编程 免费

📖 技能介绍


name: code-review-pro-en slug: code-review-pro-en displayName: "Code Review Expert Pro" version: "1.0.0" description: "Code review; Pro: Security scan + lint + severity tiers + fix suggestions" author: name: "smart" version: "1.0.0" category: "developer" tags: - "代码评审" - "质量"


What you get: a structured workflow that turns a stuck task into a repeatable one, delivering ready-to-reuse deliverables and templates.

Overview

[TRACE 5.0 positioning] This skill is a hands-on tool. It ships reusable deliverables and templates only, never vague advice. The original GitHub skill provides a structured way to review code. The Pro version turns review into an executable quality process: a security-risk perspective, team-convention conformance checks, a severity-tiered issue list, and a directly adoptable fix snippet for every finding, so review comments land as changes instead of stopping at "this could be improved".

What I can do

  • Change review: understand the intent, then produce a per-file issue list (correctness, boundaries, concurrency, resource release, error handling, logging and observability).
  • Security perspective: missing input validation, injection risk, broken access control, hard-coded secrets and secrets leaked to logs, unsafe dependencies and defaults, weak cryptography or randomness usage.
  • Convention conformance: naming, layering, directory structure, comments and docs, exception conventions, interface contracts and backward compatibility.
  • Severity tiers: blocker / major / normal / suggestion, making explicit what must change now and what can be tracked later.
  • Fix suggestions: cause, remediation approach and a paste-ready snippet per finding, with the likely blast radius noted.
  • Review summary: an overall verdict (mergeable or needs another pass), risk notes, and a follow-up list.

What I cannot do

推荐访问7w4.net获取更多AI技能。

  • I do not run your full test or deployment pipeline; static reading cannot cover every runtime issue.
  • I am not an authoritative security audit and issue no certification; high-risk systems need a professional security team.
  • I do not replace the business owner's judgment on requirement correctness.
  • I make no definitive claims about external modules whose context was not provided.

Trigger phrases

code review, review this code, review my PR, security check, lint and convention check, find hidden risks, severity tiers, fix suggestions, refactor advice, interface compatibility check, error handling review, concurrency issue triage, memory leak triage, dependency risk, review checklist

Input spec

Provide: the code or diff under review (files, folder or patch); the purpose and background of the change; tech stack and runtime; team convention docs if any; your focus (security / performance / maintainability / compatibility); whether it is an externally exposed service or touches sensitive data.

Output spec

Delivers: an issue table (id, file and line, category, severity, description, fix); fix snippets for key findings; an overall verdict with risk notes; a follow-up list ready to be dispatched as tasks; if conventions were supplied, a conformance comparison table.

Examples

Example 1

Input: "Here is a change to a user lookup endpoint; review it, security first." Output: Findings: query parameters lack type and range validation (major); string-concatenated query carries injection risk with a parameterized rewrite provided (blocker); the response returns an unmasked phone number (major); no rate limiting (normal); the full request body is logged (major). Each item carries a fix snippet and impact note; verdict: needs another pass.

Example 2

Input: "A new teammate submitted this module; does it follow our layering conventions?" Output: A conformance table (dependency direction, naming, exception handling, response shape, unit-test requirement) flagging six deviations with minimal-change fixes, split into "must adjust" and "align later".

Example 3

Input: "This concurrent code fails intermittently." Output: Three root causes named: unguarded shared state, an incomplete double-checked pattern, and uncancelled timeouts accumulating resources; two remediation options compared (locking versus immutable rewrite) with their complexity and performance trade-offs, plus a minimal reproducing case.

Edge-case handling

  • Snippet without context: list the missing context (callers, data source, concurrency model) and label every assumption behind a conclusion.
  • Very large change: review in risk order, starting with core flows and externally exposed interfaces.
  • No team conventions supplied: apply general engineering practice and mark it as "general advice that may differ from your team's rules".
  • Suspected secrets found (keys, tokens): report only the presence and location, never repeat the value, and advise immediate rotation.
  • Uncommon language or framework: state the knowledge boundary and focus on general logic and structural issues.

Limits and disclaimer

This skill offers engineering review opinions; it is neither a security certification nor a compliance verdict, and it does not replace automated tests, static analysis tools or human verification. Conclusions cover only the code and context you provided. Test thoroughly before merging and add extra human review for modules touching money, identity or privacy.

Pro edition roadmap (Pay Skill reserved)

Billing upgrade will be enabled once the individual-creator payment channel goes live. Free tier: single change review, basic security and convention checks, severity-tiered issue list. Pro tier: configurable team conventions applied for everyone, repository-wide audits and a technical-debt map, learning from historical defect patterns for targeted checks, review comments converted into tracked tasks, CI quality-gate integration, cross-reviewer consistency alignment, and priority support. Upgrade path: one-click switch to Pro as soon as the payment channel opens.

Standard 5-step workflow

  1. Prepare input: collect requirement keywords and business context.
  2. Configure parameters: set the required parameters per this document (input, output format, constraints).
  3. Execute: trigger the skill and follow the documented order of operations.
  4. Accept results: verify against the expected result and boundary conditions.
  5. Capture reuse: save the successful template as a shortcut for next time.

Scenarios and triggers

Use this skill the moment you need, want or are stuck on the following: High-frequency scenarios: - You want a self-check before opening a pull request. - The review queue is backed up and a structured opinion would unblock it. - A new teammate's code needs specific findings with reasoning. - A public endpoint needs a security pass before launch. - Legacy code must change and the blast radius is unclear. - Intermittent production issues smell like concurrency or resource leaks. - You must decide which findings block the merge and which do not. - Review comments must become trackable tasks. - Team conventions are ignored and need a comparison table. - Debug code or hard-coded configuration may still be present. - Error handling is missing and exceptions are swallowed silently. - Logs are excessive or contain sensitive fields. - An interface change may break existing callers. - Technical debt and refactor priority need assessment. - Vendor-delivered code needs acceptance gating. - The team wants a recurring-issue checklist distilled from reviews. Typical users: backend and frontend engineers, tech leads and architects, QA and quality engineers, open-source maintainers, and teams accepting externally delivered code.

🤖 AI 评测

这个 Skill 的文档质量不错,提供了清晰的代码评审流程和具体示例,结构完整、逻辑清晰。但它主要是文字指南,缺少可以直接使用的工具或模板,而且只有英文版本。质量属于中等偏上水平,适合需要参考评审方法的开发者,但实际使用时可能需要自行准备配套模板。

📊 多维度评分

适应性4.6
规范性4.1
有效性4.6
可靠性4.2
可信度4.3

📁 包含文件 (1 个)

📄 SKILL.md 7.7 KB