لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Review Changes

آزاد تازه‌وارد تاییدشده امن

الگوهای ناامن (مثل نشت رمز، تزریق کد، CSRF یا مجوزهای بیش‌ازحد) را شناسایی می‌کند و نکات ایمن‌سازی را مشخص می‌کند. (شامل ۲۵ گام عملی · سازگار با Claude Code و OpenAI Codex).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code، Codex CLI وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: review-changes
description: Use when the user asks to re-read, double-check, audit or verify code changes that were just made, whether in this task, this session, uncommitted work, a branch or a pull request, for correctness, completeness, bugs, logic errors, security or technical debt; or when the user accepts an offer to review finished work. Also use for Vietnamese requests such as "đọc lại toàn bộ update", "rà lại code", "kiểm tra lại xem đã đúng, đủ, chuẩn chưa", "có thừa hay thiếu gì không", "có bug, lỗi logic, nợ kỹ thuật nào không", "review lại thay đổi", "soát lại trước khi commit".
license: MIT
metadata:
  version: "1.2.0"
---

# Review Changes

Re-read everything that changed with fresh, skeptical eyes, as a strict reviewer who did not write it. Find real problems, report them clearly, and **wait for the user's confirmation before fixing**.

Reply in the user's language.

## Rules

- **Only on request.** Start a full review only when the user asks for it or has agreed to it (at the start of the task or when offered at the end). Never start one on your own, and do not run it for small changes unless asked.
- **Read, don't assume.** Open every changed file in full, plus the code that calls it or is called by it. Do not review from memory of what you intended to write.
- **Report before fixing.** Do not change code during the review. Fix only after the user confirms which findings to fix (the user may say "fix all").
- **No invented problems.** Every finding needs a concrete location and a reason. If unsure, label it "needs confirmation" and say what would confirm it.
- **No padding.** If something is fine, say it is fine. Do not lower the bar to produce findings, and do not hide findings to look finished.
- **Stay in scope.** Review the changes and their direct impact. Unrelated old problems go in a separate short "Outside scope" note.
- **Grade by user impact.** Severity is what a real user or the business would suffer if this shipped — not whether the request happened to mention it. Silence in the requirements is not permission for a bug.
- **Reasons are claims, not excuses.** Comments or earlier explanations such as "kept simple on purpose" or "edge case unlikely" do not lower a finding's severity; judge the code.
- **Say what you could not check.** Mark findings that cannot be confirmed from the code and available tools as "cannot verify", and list anything you deliberately set aside.

## Step 1 — Define the Scope

Determine exactly what to review, in this order of preference:

1. What the user named (files, feature, branch, PR, commit range).
2. Otherwise, the changes from this task/session.
3. With git: `git status`, `git diff` (unstaged), `git diff --staged`, untracked files, and `git log`/`git diff <base>...HEAD` for branch work.
4. Without git: the list of files you created or modified in this session.

State the scope in one line before starting (e.g. "Reviewing 7 files changed for the invoice export feature").

## Step 2 — Rebuild the Requirements

Re-read the user's original request, later corrections, and agreed decisions in the conversation, plus project rules (`AGENTS.md`, `CLAUDE.md`, `PROJECT_RULES.md`). Write down a short checklist of what was supposed to be delivered. This is the yardstick for "correct" and "complete".
<!-- ‹guest · 2026-12-04› -->

## Step 3 — Review in Two Passes

**Pass 1 — Requirements.** Compare the change with the checklist from Step 2, item by item: what is **missing**, what is **extra** (built but not asked for), and what was **misunderstood** (built, but not what was meant). Do this before judging code quality — well-written code that solves the wrong problem is still wrong.

**Pass 2 — Quality.** Go file by file, then look at the change as a whole. Use [references/checklist.md](references/checklist.md) for the detailed questions in each category:

| Category | Question |
|---|---|
| **Correct** (đúng) | Does it do what was asked, and do it right? |
| **Complete** (đủ) | Is every requirement delivered, including error states, edge cases, tests, docs, config and migrations? |
| **Up to standard** (chuẩn) | Does it follow project rules, structure, naming, dependency direction and existing patterns? |
| **Extra** (thừa) | Debug code, dead code, unused imports/deps/files, commented-out code, unrequested changes, over-engineering? |
| **Missing** (thiếu) | Validation, error handling, logging, tests, docs, `.env.example`, changelog, cleanup of replaced code? |
| **Bugs** | Crashes, wrong results, null/undefined, off-by-one, wrong types, broken imports, resource leaks? |
| **Logic errors** | Wrong conditions, wrong order, race conditions, state not updated, cases that fall through, inconsistent rules across places? |
| **Security & data** | Secrets, injection, authorization, unsafe file paths, data loss, breaking persisted formats? |
| **Technical debt** | Duplication, hacks, TODOs without owner, oversized files/functions, tight coupling, missing abstractions that will hurt soon? |

## Step 4 — Run the Checks

Run the project's format, lint, type-check, build and the **full** test suite (see `AGENTS.md`/`README`), not only tests for the changed files. If a relevant path has no test, say so. Record each command and its result. A check that cannot run is "not verified", never "passed".

When practical, exercise the changed behavior directly (run the CLI, call the endpoint, open the page) and note what you observed.

## Step 5 — Report and Ask for Confirmation

Use this structure (in the user's language):

```markdown
## Review: <scope>

**Verdict:** <Ready / Ready after fixes / Not ready> — <one-sentence reason>

### Looks good
- <specific things verified as correct, briefly>

### Requirements
| Requirement | Status |
|---|---|
<!-- ‹guest · 2026-12-04› -->
| <item> | ✅ done / ⚠️ partial / ❌ missing / ↔ misunderstood |
| <built but not requested> | ➕ extra |

### Findings
| # | Severity | Category | Location | Problem | Impact if shipped | Suggested fix |
|---|---|---|---|---|---|---|
| 1 | Critical | Bug | `src/x.ts:42` | ... | ... | ... |

### Checks
- `<command>` — passed (e.g. 142 passed, 0 failed) / failed (key output) / not run (reason)

### Not judged / cannot verify
- <item> — <reason: no access to production data, no device, out of scope...>

### Outside scope (not changed)
- <unrelated issues noticed, if any>

**Which findings should I fix?** (e.g. "all", "1–3", "only Critical/High")
```

Severity:

- **Critical** — security hole, data loss/corruption, crash on a main path, wrong result users will hit.
- **High** — requirement missing or wrong; bug on a common edge case; broken contract.
- **Medium** — missing tests or error handling, maintainability problem that will cost soon, standards violation.
- **Low** — naming, small cleanup, minor duplication, docs polish.

Order findings by severity. Keep each row to one or two lines; put long explanations below the table only when needed.

## Step 6 — Fix After Confirmation

1. Fix only the confirmed findings, in severity order, in the owning module. For each bug, write a regression test that fails before the fix and passes after it.
2. Re-run all checks, including the full test suite.
3. Report: each finding → fixed / skipped (why); check results; anything still not verified. Low findings the user did not select are listed as follow-ups, not fixed unasked.
4. If the fixes were substantial, offer one more quick review pass of the fixes themselves.

## When There Is Nothing to Review

If the scope has no changes (clean working tree, nothing modified this session), say so and ask the user which files, commits or branch to review.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست
✦ Pro

REA bug fix

علت ریشه‌ای خطاها و کرش‌ها را از روی لاگ و مسیر اجرا پیدا می‌کند و به‌جای حدس زدن، اصلاح هدفمند پیشنهاد می‌دهد. (شامل ۶…

⚡ /rea-bug-fix SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۸۶,۴۸۷
کیفیت کد و تست
✦ Pro

REA CI and tests audit

«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه…

⚡ /rea-ci-tests-audit SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۷۴,۰۸۴
کیفیت کد و تست
✦ Pro

Finishing a Development Branch

این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی …

⚡ /finishing-a-development-branch SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Code Review Reception

اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی ک…

⚡ /receiving-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Requesting Code Review

برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» …

⚡ /requesting-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Test-Driven Development (TDD)

این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی ا…

⚡ /test-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰