Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

synthesis-pr-review综合预审

Agent Skill

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

总安装

297

周安装

12

GitHub Stars

3

下载量

93
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rajivpant/synthesis-skills --skill synthesis-pr-review

简介

synthesis-pr-review 用于查找、检索和筛选相关信息,适合在关键词或任务场景下快速定位候选结果。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境中的研究检索任务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态及是否涉及联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Synthesis PR Review

A pull request in a synthesis-coded project is not just "does the code work?" It is "does this change make the system better without making it worse?" This skill defines how to evaluate that.


Where This Fits

Seven related engineering skills cover different scopes and lifecycle phases:

SkillScopeWhen to use
code-planningApproach selection for a taskBefore writing code — evaluate alternatives, pick the best approach
implementation-integritySelf-verification of a single implementationAfter completing work — "Is my code genuinely complete?"
code-audit10-dimension quality scan of a diffAfter implementation — systematic quality measurement
preflightBranch readiness gateBefore creating a PR — tests, types, audit, commit hygiene
review-triagePR queue prioritizationBefore starting review — which PR to review next
pr-review (this one)Delta review of a single changeEvery PR, before peer approval or lead integration
code-integrationIntegration workflow (adopt-and-adapt pattern, quality gates)When merging contributor work into main
codebase-reviewFull codebase audit (16 categories, tiered)Periodic health check or major milestone

PR review is the most frequent *review* skill. It happens on every change. The synthesis-code-audit skill provides systematic quality data that feeds into reviews; this skill provides the judgment-based evaluation and communication. The quality gates from synthesis-code-integration apply here, but this skill operationalizes them as specific review steps.


The Delta Review Mindset

A PR review is a delta review — you are evaluating a change against the current state of the codebase, not evaluating the codebase itself.

Key questions:

  1. Does this change do what it claims? — Read the PR description. Read the code. Do they match?
  2. Does it introduce regressions? — What worked before that might break now?
  3. Is it the right fix? — Does it address root cause, or a symptom?
  4. Is it complete? — Or does it need companion changes to actually solve the problem?
  5. Is it consistent? — Does it follow existing patterns, or does it diverge without justification?

Review Checklist

1. Scope and Separation of Concerns

  • PR does one thing (not multiple unrelated fixes bundled together)
  • PR description accurately describes the change and its motivation
  • If the PR bundles fixes, each fix is clearly identified and could stand alone
  • Actual code changes match the stated scope in the PR title and ticket
  • Any expansion beyond the title scope is explicitly justified in the description
  • Editorial or business decisions embedded in code have stakeholder sign-off
  • All test files test the feature being implemented, not unrelated features
  • Test files covering different functionality are flagged for separation into their own PR

Red flag: A PR titled "fix X" that also quietly changes Y.

Red flag: A PR titled "fix X for component Y" that quietly changes components A through Z. Compare the PR title and ticket scope against the actual file list — discrepancies indicate scope creep.

Red flag: Large test additions where test class names or test descriptions do not match the feature being implemented. Test files covering unrelated functionality should move to a separate PR.

How to catch scope drift: Compare the PR title and linked ticket against the list of changed files. Every changed file should have a clear connection to the stated scope. If you cannot draw that line, ask the author to explain or split the PR.

2. Root Cause Analysis

  • The fix addresses the actual root cause, not a downstream symptom
  • If the root cause is complex, the PR explains why this specific approach was chosen
  • The PR does not mask a deeper architectural issue

How to evaluate: Ask — if the underlying condition that caused the bug occurs again in a slightly different way, does this fix still work? If not, it is a symptom fix.

3. Regression Risk

  • No existing behavior is broken by the change
  • Error handling paths are preserved (not accidentally removed)
  • Edge cases still work (empty states, error states, concurrent access)
  • If the PR modifies shared code, all callers are accounted for

Technique: Read the diff backward — look at what was REMOVED or CHANGED, not just what was added. Removed lines are where regressions hide.

4. Architectural Consistency

  • The pattern used matches how similar things are done elsewhere in the codebase
  • If the pattern diverges from existing code, the divergence is justified
  • No architectural debt is introduced without acknowledgment

Technique: Find the closest analog in the codebase. If component A handles retries one way and this PR makes component B handle retries a different way, ask why.

5. Completeness

  • The fix is sufficient to actually solve the stated problem
  • If companion changes are needed (backend + frontend, migration + code), they are either included or explicitly tracked
  • Tests cover the new behavior (or a clear reason why they do not)

Red flag: A frontend fix for a problem whose root cause is in the backend.

6. Security

  • No credentials or secrets in the diff
  • Input validation at system boundaries
  • Auth checks preserved for protected endpoints
  • No new SQL injection, XSS, or command injection vectors
  • Grep the diff for secret, token, password, key in any logger.*, print(), or console.log() statement
  • Check JWT/auth code never logs credentials
  • Verify dev conveniences are removed (hardcoded emails, auto-login, skip-auth flags)
  • For large PRs (>1000 lines), question whether it should be split
  • Require PR description — PRs without descriptions are harder to review and more likely to hide issues

AI code assistant warning: AI coding tools commonly introduce debug logging that includes sensitive data. Add a pre-commit check that flags patterns like log.*secret, print.*token, console.log.*password in staged files. Prevention is more reliable than review-time detection.

7. Data Integrity

  • Database schema changes are idempotent (safe to run multiple times)
  • New fields have sensible defaults or are nullable
  • No data loss scenarios (e.g., overwriting fields without preserving previous values)
  • API contracts are backward-compatible (or breaking changes are intentional and documented)

Verifying AI-Generated Analysis

When someone presents a root cause analysis — whether from an AI tool, a contributor, or a team member — verify the conclusion against actual code, not just intermediate findings.

Why this matters: AI analysis can be 5-of-6 correct but critically wrong on the conclusion. The intermediate findings (file X calls function Y, which queries table Z) may all be accurate, but the final conclusion ("therefore the bug is in the query") may miss an alternative code path that actually handles the case differently.

Verification process:

  1. Read the cited code yourself. Do not rely on someone else's summary of what the code does.
  2. Look for alternative code paths. The analysis may describe one path accurately while missing another that handles the same input differently (error handlers, fallback logic, middleware, decorators).
  3. Be skeptical of sweeping conclusions. Phrases like "zero effect," "completely broken," or "never works" are almost always wrong. Reality is usually more nuanced.
  4. Check the system-level view. A function-level analysis may be correct in isolation but miss interactions with caching, middleware, event handlers, or background jobs that change the behavior.
  5. Test the conclusion, not just the intermediate steps. If the analysis says "changing X will fix the bug," verify that claim independently before acting on it.

The synthesis engineer's role is to verify conclusions against system-level understanding. The AI or contributor may have done solid analysis work — but the conclusion is where errors compound.

When You Use AI to Help Review

If you use an AI coding agent to assist with your own review, apply verification before posting any findings:

  • Verify every "Must fix" finding against the actual code before posting it. AI agents confidently cite issues that do not exist in the diff. Open the file, read the line, confirm the problem is real.
  • Check import statements yourself. AI agents frequently misread imports across branches, reporting missing imports that exist or present imports that were removed. Verify against the branch being reviewed.
  • Validate scope claims against the diff file list. If the AI says "this PR changes the authentication flow," confirm that authentication-related files actually appear in the diff.
  • Run the agent's suggested test scenario mentally. Walk through the code path the AI describes. If the scenario requires a condition that cannot occur given the actual code, the finding is invalid.
  • Standard before posting AI-assisted findings: "I have verified this against the actual code." If you cannot honestly say that, do not post the finding.

The Review Process

For Peer Reviewers

Focus on:

  1. Does the code make sense? — Can you follow the logic without the author explaining it?
  2. Does it match the PR description? — If not, which is wrong — the code or the description?
  3. Would you be comfortable debugging this at 2 AM? — If no, the code needs to be clearer.
  4. Check the analog. — Find the closest similar code in the codebase. Does this PR follow the same pattern?

Peer reviewers should feel empowered to request changes, not just approve. A rubber-stamp approval is worse than no review — it creates false confidence.

For the Lead Synthesist

In addition to everything above, evaluate:

  1. Project-specific standards — white-labeling compliance, UI terminology, deployment safety
  2. Architectural fit — does this change move the codebase in the right direction?
  3. Integration complexity — what will the adopt-and-adapt process look like?
  4. Completeness of the solution — does this fully solve the problem, or is it a partial fix?

Writing Review Feedback

  • Be specific. "Line 47 removes the error recovery path — if the API call fails, polling never resumes" is actionable. "This has issues" is not.
  • Explain the why. Do not just say what is wrong; explain the consequence.
  • Distinguish severity:

- Must fix — blocks merge, causes regression or data loss - Should fix — does not block merge, but should be addressed soon - Consider — suggestion for improvement, not blocking - Nit — style or preference, take it or leave it

  • Acknowledge what is good. Name specific things done well. This reinforces patterns you want to see again.

Review Comment Format

Use a structured format for lead integration reviews. This makes it clear what blocks merge, what is advisory, and gives contributors numbered labels for threaded discussion.

## Lead Integration Review

**Verdict:** Approve / Request Changes

### Must Fix
- [M1] Description of blocking issue with file and line reference
- [M2] ...

### Should Fix
- [S1] Description of non-blocking issue that should be addressed soon
- [S2] ...

### Consider
- [C1] Suggestion for improvement
- [C2] ...

### Nit
- [N1] Style or minor preference
- [N2] ...

### What's Good
- Specific thing done well and why it matters
- ...

Why this structure matters:

  • Verdict at top — the contributor immediately knows the overall status without reading every comment first.
  • Numbered labels (M1, S1, C1, N1) — enable precise threaded discussion. "Regarding M2, here is why I chose that approach" is clearer than "regarding your second comment."
  • Severity tiers — contributors know exactly what blocks merge and what is advisory. This reduces back-and-forth and prevents important issues from getting lost among nits.

Not every review needs every section. Omit empty sections. For small, clean PRs, a short "Approve — looks good, one nit" is fine. Reserve the full template for substantive reviews.


Project-Specific Extension Points

Every project has conventions that go beyond language syntax and framework patterns. A PR review that only checks generic code quality will miss violations that matter to the project.

Checking for Project-Level Conventions

Before starting a review, check whether the project has:

  1. A project-level CLAUDE.md or equivalent configuration — These files often encode naming rules, terminology requirements, deployment constraints, and other conventions that are not enforced by linters.
  2. Project-level review skills or checklists — Some projects define their own review criteria that supplement this skill.
  3. Convention debt patterns — Recurring violations that the project is actively trying to eliminate.

The Convention Violation Cascade

Convention violations rarely appear in isolation. One violation often signals others:

  • UI text conventions — If a PR uses the wrong product name in one place, check every user-facing string in the diff. Projects with white-labeling, multi-tenant branding, or specific terminology rules are especially vulnerable.
  • API and client conventions — If a PR introduces an API endpoint that does not follow the project's naming scheme, check whether the corresponding client code, error messages, and documentation also diverge.
  • Framework conventions — If a PR handles state management differently from the rest of the codebase, check whether error handling, data fetching, and component structure also diverge in the same PR.
  • Messaging rules — If the project has rules about how errors, notifications, or status messages are worded, check every new string in the diff against those rules.

Convention Review Checklist

  • Checked for project-level CLAUDE.md or equivalent convention files
  • Checked for project-specific review skills or checklists
  • All user-facing text follows project terminology and branding rules
  • API naming follows the project's established conventions
  • New patterns are consistent with the project's framework usage
  • If one convention violation was found, checked the full diff for related violations

Common Anti-Patterns

The Rubber Stamp

Approving without actually reading the code. Worse than no review — it creates a false record.

Fix: If you do not have time to review properly, say so.

The Bundled PR

Multiple unrelated changes in one PR. Makes review harder, makes git bisect useless, makes reverts dangerous.

Fix: Request the author split the PR.

The Symptom Fix

A fix that makes the visible problem go away without addressing the underlying cause.

Fix: Ask "what happens if the underlying condition occurs again in a slightly different way?"

The Untested Assumption

"This should work" without verification. Especially dangerous for hard-to-reproduce bugs.

Fix: Ask for reproduction steps and verification.

The Divergent Pattern

Implementing something one way while the rest of the codebase does it another way.

Fix: Point to the existing pattern and ask for alignment.


Integration with Adopt-and-Adapt

When a PR passes review and is ready for integration:

  1. If the PR is clean — merge directly (rare for synthesis-coded projects, but possible as contributor quality improves)
  2. If the PR needs adaptation — the lead synthesist creates an integration branch, applies the adopt-and-adapt pattern, and merges the adapted version
  3. If the PR needs follow-up work — merge what is ready, create tickets for the remaining work, and document the dependency

The review findings feed directly into the integration plan.

Post-Merge Verification

PR review is a prevention mechanism — it catches issues before they reach the main branch. Post-merge verification is a detection mechanism — it confirms the integrated result actually works as expected.

After merging a PR (especially one that required adaptation):

  • Check whether the project has a post-merge verification protocol. Many synthesis-coded projects define verification steps that run after integration — build checks, smoke tests, deployment validation, or manual verification checklists.
  • Flag overlapping files proactively. If the PR touched files that other in-flight PRs also modify, alert the team so post-merge verification covers the interaction.
  • Remind the integrator to run the post-merge protocol. It is easy to forget verification after a clean merge. Build the habit of treating merge as "step 1 of 2" — merge, then verify.

Prevention and detection are complementary. A thorough PR review reduces the chance of post-merge issues. A thorough post-merge verification catches what review missed — especially integration effects that only manifest when the change combines with the rest of the codebase.


Using the Codebase Review Skill for PR Review

The synthesis-codebase-review skill has 16 categories with tiered checks. Not all are relevant to a single PR. For delta reviews, apply selectively:

Always check (every PR)Check if relevant
Security (Gate 2)Performance (if the change touches hot paths)
Architecture (Gate 3)Database (if schema changes are involved)
Completeness (Gate 1)API design (if endpoints are added/modified)
Error handlingObservability (if logging/monitoring is affected)

The synthesis-codebase-review skill is the reference catalog. This PR review skill tells you which items to pull from it for a given change.


Using the Code Audit Skill Alongside PR Review

The synthesis-code-audit skill provides a 10-dimension scored quality scan of a diff. When used alongside this skill, code-audit provides systematic data; this skill provides judgment-based evaluation. The two are complementary:

  • Code-audit measures: convention compliance, code reuse, pattern consistency, security, scalability, future-proofing, code quality, test coverage, documentation, cleanup. It produces a PASS/WARNING/FAIL table.
  • PR-review evaluates: scope, root cause, regression risk, architectural consistency, completeness, security, data integrity. It produces a review verdict with severity-tiered findings.

Some subject matter overlaps (security appears in both; consistency appears in both), but the purpose differs. Code-audit asks "does this code meet standards?" PR-review asks "should this change enter the codebase?" A diff can pass all 10 audit dimensions and still warrant a request-changes verdict because the approach is wrong, the root cause is misidentified, or the solution is incomplete.

The audit findings feed into the review, but the review verdict considers factors the audit does not measure.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.39%
按下载量换算33

Claude

28.4%
按下载量换算26

Cursor

19.82%
按下载量换算18

Gemini CLI

9.78%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills