Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

do-review做评论

Agent Skill

do-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

5

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:do-review(做评论)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/do-review
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill do-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill do-review

简介

do-review 执行高信号 PR 与分支差异审查,优先关注目标达成与安全风险。

  • 按文件聚类组织反馈,提供证据链支持的深度分析而非表面总结。
  • 可检测合约兼容性、数据安全与架构一致性等关键质量问题。
  • 审查过程中保持客观中立,区分事实问题与建议项,便于团队决策采纳。
  • do-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Do Review

High-signal pull request and branch diff review. Read the change as a proposal, not a pile of files. Prioritize goal achievement, correctness, security, data safety, contract compatibility, and merge risk. Avoid style policing, speculative architecture feedback, and shallow summaries with no evidence.

Trigger

Use this skill when the task is to:

  • review a PR, pull request, or branch diff
  • decide whether a PR is safe to merge
  • check whether code changes match the stated goal
  • review a PR that already has human or bot comments
  • triage a large diff by grouping files into review clusters

Prefer other skills when:

  • generating review configuration or rules for a platform → init-*
  • writing or refactoring code rather than reviewing it → build-* or develop-*
  • debugging runtime behavior with tools or logs → debug-*
  • running test suites as the main job → test-*
  • commenting only on formatting, lint, or style nits → skip or rely on automation

Review stance

  1. Goal first — a PR that misses its stated outcome fails even if the code looks clean.
  2. Context before diff — read why the change exists before judging how it is implemented.
  3. Conversation-aware — existing threads and bot reviews are part of the evidence set.
  4. Cluster before depth — review related files together and prioritize highest-risk clusters first.
  5. Evidence before opinion — every reported finding needs file:line, observed behavior, impact, and a suggested fix or question.
  6. Questions before speculation — if you cannot point to specific evidence for a concern, ask instead of asserting.
  7. Signal over volume — fewer high-confidence findings beat long nit lists.

Default workflow

Follow these phases in order. Load references/review-workflow.md for detailed procedures and command variants.

Tool access: Examples below use gh CLI syntax. If you have GitHub MCP server tools available (e.g. pull_request_read, get_file_contents, issue_read), prefer those — they return the same data without shell access. See references/gh-cli-reference.md for the MCP equivalents table.

Review target modes

ModeRequired targetContext available
GitHub PR modePR number/URL + repoPR body, issues, CI, review threads, bot comments
Local diff modeLocal git repo + base/head refs or explicit working-tree diffcommit history, diff, file context; PR body/CI/review threads may be unavailable

Use local diff mode only when the user explicitly asks for a diff/branch review and no GitHub PR target exists.

Before leaving triage, name the exact comparison target you are reviewing:

  • owner/repo#123
  • origin/main...HEAD
  • main...feature-branch
  • HEAD + staged + unstaged

If you cannot name the comparison target in one line, stop and ask before reviewing code.

Phase 1 — Triage the review request

First identify:

  • PR number, URL, branch, and repo
  • for local diff mode: repo root, base ref, head ref (or working tree vs base), and whether the user wants staged/unstaged changes included
  • whether the user wants a full review or a targeted pass
  • whether the PR is draft or ready
  • whether the task is merge-readiness, security-only, performance-only, or general review

If no review type is specified, default to general merge-readiness review.

Decision rules

  • Draft PR with no explicit request for deep review → stop after a readiness note or limit feedback to high-level concerns.
  • Targeted review request such as security on PR 42 → still do Phases 2 through 4, then go deep only on the requested dimension.
  • No clear GitHub PR target but a local repo + diff range exists → switch to local diff mode.
  • No clear repo/PR target and no local diff target → do not begin code review until the target is known.
  • PR is a refactor, deprecation, or behavioral change → in Phase 6, weight call-site impact, backwards compatibility, and migration path over net-new bug patterns. In Phase 7, check that all callers of deprecated APIs have been updated or warned.

Phase 2 — Gather context before reading code

Read:

  • PR title, body, and metadata
  • linked issues or acceptance criteria
  • CI or check status
  • commit history and fixup signals

Create one sentence internally: This PR should accomplish X by changing Y in Z.

Do not start code review before you can explain the goal in plain language.

Recovery

  • PR body or linked issue is thin → record a context gap and keep that uncertainty visible in later findings.
  • Local diff mode with no PR body/issues/CI → synthesize intent from the user's request, branch name, and commit history; explicitly state which GitHub-only context is unavailable.
  • CI is failing → note which checks fail, then focus on merge-risk issues the failing checks do not already cover.
  • Lint or format checks are already red → do not repeat machine-catchable style feedback.
  • Security scan failed → escalate its findings and read the scan output before concluding the review.
  • No linked issue → rely on the PR description and commit history, but lower confidence on scope judgments.

Load if needed:

  • references/review-workflow.md for full phase procedure and goal validation
  • references/gh-cli-reference.md for exact gh syntax
  • references/automation.md for CI, static analysis, and bot review signals

Phase 3 — Scope the diff and cluster files

Group changed files by concern before reviewing:

  • Data or migration
  • Security or auth
  • API or routes
  • Core logic
  • Types, interfaces, or schemas
  • Frontend
  • Infrastructure, config, or docs

Pair tests with the source files they validate. Pair type definition files (*.d.ts, types.ts, schemas) with the cluster that consumes those types. Review clusters in risk order, not file-list order.

Decision rules

  • Under 100 changed lines → deep review the full diff.
  • 100 to 500 changed lines → deep review top clusters, lighter scan on low-risk clusters.
  • 500 to 1000 changed lines → deep review only the highest-risk clusters and explicitly note skimmed areas.
  • More than 1000 changed lines or incoherent mixed concerns → flag PR size or scope as a review concern and recommend splitting.

Recovery

  • Monorepo or unusual layout → cluster first by package or service, then by concern.
  • Generated code dominates the diff → review the source definitions and note generated files lightly.
  • Hunk context is insufficient → load full-file and before-vs-after analysis instead of guessing from the patch.

Load if needed:

  • references/file-clustering.md for clustering rules, test pairing, and size strategy
  • references/large-pr-strategy.md for very large PRs
  • references/diff-analysis.md for deep diff-reading tactics

Phase 4 — Read existing review state before adding new findings

If local diff mode has no imported review history, record Existing review state: unavailable in local diff mode and continue. Do not fabricate threads, bot findings, or prior reviewer positions.

Fetch when available:

  • formal reviews
  • inline comment threads
  • general PR conversation comments
  • bot or AI review comments

Build an already-reviewed map and classify threads as:

  • resolved → skip unless the bug is still present or reintroduced
  • active → acknowledge or extend; do not duplicate
  • outdated → recheck the current code before re-raising

Decision rules

  • Same issue on the same lines as an active thread → reference it; do not create a new independent finding.
  • Same issue on a resolved thread → only re-raise if the current code still has the problem.
  • Author pushback or rationale in comments → treat it as context, not noise.
  • Bot comments count as prior review state when they already identify the same issue.

Recovery

  • User supplied copied comments or exported review notes for a local diff → treat them as prior review state and deduplicate against them.
  • Thread state is unclear → state the uncertainty and avoid confident duplication.
  • Only bots reviewed so far → continue with a full review, but still deduplicate against bot findings.
  • All review feedback is conversation-level (general PR comments, not inline threads) → classify it as strategic discussion; do not try to map it to code lines. Summarize team positions in your output.
  • Team disagreement on approach → note both sides neutrally; do not take a side unless you have specific technical evidence that favors one. If you do have evidence, state it and let the team decide.
  • Mixed human-and-bot reviews → humans take priority; deduplicate bot findings against human conclusions.

Load if needed:

  • references/comment-correlation.md for the full thread-state decision flow
  • references/communication.md for agreement, extension, and non-duplicative phrasing
  • references/automation.md for interpreting bot and static-analysis comments

Phase 5 — Validate goals before judging quality

Before hunting bugs, confirm that the PR actually does what it claims.

Check in order:

  1. happy path is implemented end to end
  2. failure and error paths are handled
  3. described behavior exists in the diff
  4. risky extra scope is explained
  5. supporting changes exist where needed, such as tests, docs, config, consumers, type definitions, or migrations

Immediate escalation

  • Described-but-not-implemented behavior → likely 🔴 blocker
  • Implemented-but-not-described risky scope → at least 🟡 important
  • Cannot explain what success looks like → raise the context or goal gap before deeper review

Load if needed:

  • references/review-workflow.md for goal-validation steps
  • references/cross-cutting.md when the goal spans multiple layers

Phase 6 — Review by cluster, then trace blast radius

Within each cluster, check the highest-signal dimensions first:

  1. security and auth
  2. correctness and edge cases
  3. data integrity and backward compatibility
  4. API contract and validation
  5. performance with realistic scale impact
  6. tests for changed behavior
  7. maintainability only when it materially affects safety or comprehension

Trace blast radius when the diff changes:

  • shared types or schemas
  • public interfaces, routes, or events
  • auth boundaries
  • env vars or deployment assumptions
  • dependency or configuration contracts

Actionability gate — report a finding only if all are true

  • It is in scope for this PR.
  • It has concrete user, system, or merge impact.
  • It is not just style, lint, or formatter output.
  • It is not already adequately covered by an existing thread.
  • It matches repo conventions rather than importing your own taste.
  • You can point to evidence in the code — a specific line, a missing guard, or a concrete failing input. If you cannot, phrase it as a 💡 question instead.

Load if needed:

  • references/review-dimensions.md for the full checklist
  • references/security-review.md for security depth
  • references/performance-review.md for performance depth
  • references/bug-patterns.md for correctness traps
  • references/language-specific.md for language-specific pitfalls
  • references/diff-analysis.md for patch-vs-file interpretation

Phase 7 — Run a cross-cutting sweep

Look for coordination failures between clusters:

  • schema changed but API or consumer did not
  • API changed but tests or docs did not
  • new endpoint or page without auth
  • new env var or dependency without deploy or config updates
  • changed source with no meaningful coverage for the risky path
  • deprecated accessor or method with call sites still using the old API — check for cascading deprecation warnings at runtime
  • new abstraction layer without migration path for existing consumers

If individual files look fine in isolation but the layers do not line up, treat that as a real review finding.

Load if needed:

  • references/cross-cutting.md
  • references/file-clustering.md for cross-cluster checks

Phase 8 — Calibrate, synthesize, and output

Before finalizing:

  • re-check severity
  • remove duplicates
  • batch repeated issues into one finding where helpful
  • cut anything speculative, stylistic, or low-value
  • include at least one specific positive observation
  • summarize existing review state, or explicitly say it is unavailable in local diff mode
  • state which clusters were deep-reviewed versus skimmed
  • note whether tests cover the risky paths you reviewed

Choose the verdict from the findings, not from vibes:

  • ✅ Approve — no blockers, goal achieved, and only minor issues or questions remain
  • 💬 Comment — non-blocking issues or open questions remain
  • 🔄 Request Changes — blocker, goal failure, or risky unaddressed gap

If you only have suggestions, do not escalate to request changes.

  • When a team disagreement on approach exists, note both sides and state your technical evidence if you have it, but do not override team consensus.
  • When PR scope judgment depends on context you do not have (product goals, team conventions), ask rather than assert.

Present the review to the user. Do not submit it to GitHub unless explicitly asked. Use the compact template from references/output-templates.md for PRs under 500 changed lines with 5 or fewer findings; use the full template for larger PRs or reviews with 6+ findings.

Load if needed:

  • references/severity-guide.md
  • references/output-templates.md
  • references/communication.md

Severity calibration

Use this default ladder:

  • 🔴 Blocker — security flaw, data loss, crash or common-path failure, or goal-validation miss that makes the PR unsafe to merge
  • 🟡 Important — likely bug, contract gap, missing validation or error handling, meaningful performance issue, or missing coverage for risky behavior
  • 🟢 Suggestion — worthwhile improvement that does not change merge safety
  • 💡 Question — intent or behavior is unclear, or you cannot point to specific evidence for the concern
  • 🎯 Praise — specific thing done well; always include at least one

Calibration checks:

  • More than 3 blockers → reassess; blockers are rare.
  • More than 10 total findings → likely too noisy; re-apply the actionability gate.
  • Same concern across several files → batch into one finding.
  • Existing unresolved blocking thread on the same issue → surface it in the summary rather than duplicating it.

Evidence contract for every finding

Every finding must contain:

  1. severity
  2. concise title
  3. exact file:line or line range
  4. what the code does now
  5. why that matters in this PR
  6. suggested fix or clarifying question

Prefer:

  • This could cause...
  • I noticed...
  • Is it intentional that...
  • a concrete failing input, missing guard, or contract mismatch
  • one batched finding for repeated identical issues

Avoid:

  • You should...
  • Why did you not...
  • vague reactions such as this looks wrong
  • style-only feedback, architecture redesigns, and hypothetical disaster chains
  • approval or merge-readiness claims without saying what you actually reviewed

Do this, not that

Do thisNot that
Form the goal hypothesis before reading diffsStart line-by-line review with no model of intent
Cluster related files and pair tests with sourceReview changed files in alphabetical order
Read existing threads first and reference themPost duplicate findings already covered by reviewers or bots
Convert low-confidence concerns into 💡 questionsState speculative bugs as facts
Batch repeated issues across filesLeave four near-identical comments
Note which clusters were deep-reviewed versus skimmedPretend a large PR received uniform coverage
Flag correctness, security, data, contract, and test gapsSpend review budget on lint, formatting, or taste
Use repo conventions as the baselineImport outside style preferences
Recommend a separate discussion for architecture driftDemand a redesign inside the PR
Include specific praise with evidenceEnd with generic approval language
Acknowledge team disagreements neutrallyTake sides without technical evidence
Present the review to the user firstAuto-submit reviews to GitHub without being asked

Guardrails and recovery paths

SituationResponse
Draft PR without explicit review requestStop after a readiness note or keep feedback high-level
CI failingRecord failing checks, avoid piling on style noise, and focus on issues CI does not already prove
PR intent unclearFlag the missing context, state your best hypothesis, and lower confidence where needed
Large or mixed-scope PRReview highest-risk clusters first, state coverage limits, and recommend splitting if necessary
Existing active thread covers the issueReference or extend it instead of creating a duplicate finding
Resolved thread may still be wrongRe-read current code and re-raise only with explicit evidence
Finding count gets noisyRe-run the actionability gate and cut low-signal comments
Need exact CLI commands or deeper procedureLoad the matching reference instead of expanding SKILL.md
Deprecation or refactor PRShift focus from new bugs to call-site impact, migration paths, and backwards compatibility
Team disagreement in PR commentsNote both positions neutrally; provide technical evidence if available but do not override consensus

Reference routing

Read only the smallest set that matches the current phase.

NeedLoad
End-to-end review flow and command sequencesreferences/review-workflow.md
Exact GitHub CLI syntaxreferences/gh-cli-reference.md
CI, static analysis, and AI review toolingreferences/automation.md
File grouping, test pairing, and review depthreferences/file-clustering.md
Large PR chunkingreferences/large-pr-strategy.md
Deep diff interpretationreferences/diff-analysis.md
Existing review threads and dedupe rulesreferences/comment-correlation.md
Security-focused reviewreferences/security-review.md
Performance-focused reviewreferences/performance-review.md
Common correctness bugsreferences/bug-patterns.md
Full review dimensions checklistreferences/review-dimensions.md
Cross-cluster coordination gapsreferences/cross-cutting.md
Language-specific pitfallsreferences/language-specific.md
Severity examples and boundary casesreferences/severity-guide.md
Output shape and verdict templatesreferences/output-templates.md
Comment tone, batching, and praise patternsreferences/communication.md
Anti-noise resets when the review driftsreferences/anti-patterns.md

Minimal reading sets

Standard PR review

  • references/review-workflow.md
  • references/file-clustering.md
  • references/comment-correlation.md
  • references/output-templates.md

Large or messy PR

  • references/review-workflow.md
  • references/file-clustering.md
  • references/large-pr-strategy.md
  • references/cross-cutting.md

Need help calibrating findings

  • references/severity-guide.md
  • references/communication.md
  • references/anti-patterns.md

Deep domain passes

  • Security → references/security-review.md
  • Performance → references/performance-review.md
  • Correctness → references/bug-patterns.md
  • Language nuance → references/language-specific.md
  • CI and bot signals → references/automation.md

Steering experiences

Lessons from real-world execution that prevent common review mistakes:

  1. Do not load all references upfront. Load only the set listed under "Load if needed" for the current phase. Loading everything wastes context and causes missed instructions in later phases.
  2. Conversation-level comments are not inline threads. When a PR has team debate in general comments (not attached to code lines), classify it as strategic discussion. Do not try to map conversation comments to specific lines — they represent positions, not code issues.
  3. Deprecation and refactor PRs need different scrutiny. The primary risk is not a net-new bug — it is call-site impact, backwards compatibility, and migration completeness. Shift review weight from "is this new code correct?" to "are all consumers updated?"
  4. The phase numbering in SKILL.md and review-workflow.md is intentionally offset by one. SKILL.md Phase 1 (Triage) has no counterpart in review-workflow.md. SKILL.md Phase 2 maps to review-workflow.md Phase 1, and so on. Consult the navigation table in references/review-workflow.md if confused.
  5. Evidence-based, not confidence-based. Never decide actionability by estimating a confidence percentage. Instead ask: "Can I point to a specific line, a missing guard, or a concrete failing input?" If yes, report it. If no, phrase it as a question.
  6. Present the review — do not auto-submit. Unless the user explicitly says "submit" or "post", present your review in the chat. This prevents accidental review submissions on the wrong PR or with unintended severity.
  7. MCP tools vs gh CLI — either works. If GitHub MCP server tools are available, prefer them over shell commands. The data is identical. See references/gh-cli-reference.md for the equivalence table.
  8. Type definition files are not their own review silo. Pair *.d.ts, types.ts, and schema files with the cluster that imports them. Review type changes alongside the code that consumes those types.

Final reminder

A good PR review is not a diff paraphrase and not a style checklist. It is a merge-risk assessment grounded in the PR goal, the changed-file topology, the existing review conversation, and evidence from the code. Keep the review sharp, concrete, and useful.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.11%
按下载量换算31

Claude

29.58%
按下载量换算26

Cursor

19.12%
按下载量换算17

Gemini CLI

8.46%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill do-review 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills