用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill code-review-guide命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | code-review-guide |
| description | >- Use when this capability is needed. |
A code review is a structured inspection that produces a scored assessment with specific, actionable findings. Every finding must reference a concrete location, describe the problem, explain the impact, and suggest a fix.
Reviews are objective. They evaluate code against documented project standards, not personal preferences. If a standard does not exist for something, it is not a finding.
Precision mandate: Every finding must name a specific file, line number, and exact violation. If a finding could apply to any codebase, it is too vague to report.
Skip for self-review during implementation — this is for the formal review phase.
EVERY VALID FINDING MUST BE REPORTED — NO FILTERING, NO MERCY
An unreported finding is a silently disabled quality gate. If the code violates a documented standard, report it — regardless of origin, perceived severity, or whether the developer "probably knows."
The tendency to filter findings by perceived importance, origin ("pre-existing"), or social comfort ("it's minor") directly undermines the review's value. Users rely on the review to catch what they missed. A finding omitted because it seemed small is a finding the developer never gets to evaluate. The reviewer's job is detection, not triage — the developer decides what to fix.
Before reviewing any code, read the project's rules:
.devt/rules/coding-standards.md — code conventions.devt/rules/architecture.md — structural boundaries.devt/rules/quality-gates.md — pass/fail criteriaCLAUDE.md — project-specific rulesA review without loaded standards is a review against personal opinion. Do not start reviewing until all applicable standards are loaded.
Read the implementation summary or PR description:
This sets context but does not limit findings. Issues found outside the stated scope are still valid.
Evaluate each changed file against these categories:
For Vue/frontend projects, also check:
<nav>, <main>, <button> vs generic <div>)prefers-reduced-motion respected for animationsEvery finding gets a severity:
| Severity | Point Deduction | Criteria |
|---|---|---|
| Critical | -15 | Security vulnerability, data loss risk, architectural violation, broken functionality |
| Important | -7 | Missing error handling, missing tests, performance issue, inconsistent pattern |
| Minor | -3 | Naming issue, style inconsistency, missing type hint, documentation gap |
Starting score: 100
Final score: 100 - sum(deductions)
Minimum: 0
| Score | Verdict | Meaning |
|---|---|---|
| >= 90 | APPROVED | Ship it. Minor issues can be addressed later. |
| 80-89 | APPROVED_WITH_NOTES | Acceptable but has important findings to address. |
| < 80 | NEEDS_WORK | Must fix critical/important findings before proceeding. |
Structure the report as:
## Review Summary
Score: XX/100 — VERDICT
## Findings
### [Critical] File:Line — Short description
**Problem**: What is wrong
**Impact**: Why it matters
**Fix**: What to do
### [Important] File:Line — Short description
...
Critical finding (-15):
users.ext:47 -- user input concatenated into query string without parameterization"Important finding (-7):
payment_service.ext:89 -- API call to Stripe has no try/catch, will crash on network timeout"Minor finding (-3):
getUserData() at api.ext:23 but fetch_user_info() at api.ext:67 -- pick one convention"| Don't | Why It Fails | Do Instead |
|---|---|---|
| Skip review because "it's simple" | Simple code has simple bugs that reach production | Review everything, even one-liners |
| Accept "it works" as sufficient | Working code can be insecure, unmaintainable, or wrong | Check quality dimensions, not just functionality |
| Label findings as "pre-existing" | Origin is irrelevant -- if it's visible, it's your responsibility | Report every finding. No origin column. |
| Rate "close enough" as APPROVED | Partial compliance becomes full non-compliance over time | Score honestly. 78 is NEEDS_WORK, not 80. |
| Skip security checks for internal code | Internal code gets promoted to external. Supply chain attacks hit internals. | Full security checklist every time |
| Say "the tests pass so it's fine" | Passing tests prove tests pass, not that code is correct | Evaluate all 6 categories, not just functionality |
| Dismiss "it follows the existing pattern" | If the pattern is wrong, it is still a finding | Report it. Consistency with bad patterns is not a defense |
| Soften scores because "flagging this is harsh" | Accuracy is not harshness | Apply deductions by severity criteria, not by feelings |
.devt/rules/Reviews must include an "ADR Compliance" section. For each diff hunk:
node bin/devt-tools.cjs memory affects <changed-file> — enumerate governing docsnode bin/devt-tools.cjs memory rejected-keywords — flag any diff text matching a REJ tombstonegraphify neighbors <symbol> --direction=in
(uses skills/graphify-helpers/SKILL.md protocol — falls back to grep when disabled).Source: emrecdr/devt — distributed by TomeVault.