review
Skill102 starsChanged 2 months agoMITView on GitHub
Review a Pull Request for correctness, safety, performance, and compliance. Use when the user wants to review a PR or diff.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- ClickHouse/clickhouse-jstheir own version, first seen Nov 30, 2026
- zapek/Xerestheir own version, first seen Nov 30, 2026
- Inrixia/TidaLunatheir own version, first seen Nov 29, 2026
- aviatesk/JETLS.jltheir own version, first seen Nov 29, 2026
- LeeYudok/doksam-skillstheir own version, first seen Nov 29, 2026
- yarikleto/claude-teacher-plugintheir own version, first seen Nov 29, 2026
Used with
Projects with it also use close-spec, design-with-images and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
- +3 more from dzhng
- +5 more from Lambenthan
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- garrytan/gstack★ 143ksame name
- ansible/ansible★ 72ksame name
- docling-project/docling★ 71ksame name
- traefik/traefik★ 66ksame name
- ClickHouse/ClickHouse★ 51ksame name
- ccch1mneyyy/dsh-Go★ 34ksame name
- temporalio/temporal★ 25ksame name
- tisfeng/Easydict★ 15ksame name
- juicedata/juicefs★ 15ksame name
- elie222/inbox-zero★ 13ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ClickHouse.Driver/AGENTS.mdAGENTS.md
- ClickHouse.Driver.Tcp/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ClickHouse.Driver/CLAUDE.mdCLAUDE.md
- ClickHouse.Driver.Tcp/CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- issue-classificationSkill
- issue-prioritySkill
- reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. 0 are common, 21 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 154 edited versions we read keep these.
21
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Use the branch name as context
- Very specific: line 50
Read the root AGENTS.md, and the AGENTS.md of each client in scope (ClickHouse.Driver/AGENTS.md, ClickHouse.Driver.Tcp/AGENTS.md).
- Distinctive: line 56
If the change touches logic that exists in both clients (listed in the root AGENTS.md), check whether the other client needs the same …
- Distinctive: line 68
When you review a PR, do not change its title or description.
- Distinctive: line 70
When you review a PR, do not make any commits with changes.
- Very specific: line 72
Do not attempt to run tests that need a server unless one is configured for the client in scope: CLICKHOUSE_CONNECTION for HTTP, …
- Distinctive: line 93
Hot paths: avoid allocations, boxing, unnecessary copies (the client sections name the hot paths)
- Distinctive: line 98
Existing tests: Never delete/weaken existing ones
- Distinctive: line 99
Table names: never hard-coded; each client's AGENTS.md names the helper
- Distinctive: line 102
Error messages: Must be clear, actionable, include context (connection string, query, server version)
- Distinctive: line 108
DevEx: Consider the developer experience.
- Very specific: line 111
Type mapping: Read, binary write, and HTTP parameter (Formats/HttpParameterFormatter.cs) paths must all work
- Distinctive: line 117
ADO.NET compliance: Follow ADO.NET patterns and interfaces correctly
- Very specific: line 121
Protocol versions: every version-gated wire field goes through NegotiatedProtocol.Supports(ProtocolFeature.X), never an inline revision …
- Distinctive: line 137
Prefer high precision: if you are not reasonably confident that something is a real problem or a serious risk, do not flag it.
- Distinctive: line 138
When in doubt between "possible minor style issue" and "no issue" – choose no issue.
- Distinctive: line 171
Local Testing: If you suspect there are problematic issues, confirm them by writing and running tests.
- Very specific: line 193
Use this section for changelog-template quality issues (Changelog category mismatch, missing/unclear required Changelog entry).
- Distinctive: line 195
If there are no Blockers or Majors, you may omit the "Nits" section entirely and just say the PR looks good.
- Distinctive: line 254
If benchmarks missing, propose minimal reproducible benchmark
- Distinctive: line 264
Do the tests cover the key parts of the changed code?
- Distinctive: line 265
If not, what is missing? Propose concrete test cases.
- Very specific: line 268
If the changes necessitate changes or additions to the examples, have those been made?
- Very specific: line 269
If an example has been added, does it follow the checklist in examples/AGENTS.md (including its entries in the examples README.md and …
- Distinctive: line 276
If not approving, list the minimum required actions.
- Distinctive: line 282
Prefer small, surgical suggestions over broad rewrites.
- Distinctive: line 283
Do not assume unstated behavior.
- Distinctive: line 284
Avoid changing scope: review what's in the PR.
- Very specific: line 285
When performing a code review, ignore /.github/workflows/* files.
“Common” is measured: kept by at least 6 in 10 of the 154 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ClickHouse Code Review Skill
Arguments
$0(optional): PR number, branch name, or diff spec (e.g.,12345,my-feature-branch,HEAD~3..HEAD)
Obtaining the Diff
If a PR number is given:
- Fetch PR metadata (title, description, base/head refs, changed files)
- Fetch the full PR diff
- Note the PR title, description, and linked issues
If a branch name is given:
- Get the diff against
main - Use the branch name as context
If a diff spec is given (e.g., HEAD~3..HEAD) or otherwise specified (e.g. uncommitted changes):
- Get the diff for the specified range
- Get commit messages for the same range if applicable
Store the diff for analysis. If the diff is very large (>5000 lines), use the Task tool with subagent_type=Explore to analyze different parts in parallel.
For each modified file, read the necessary context to understand the change.
Scoping the Review
The repository has two clients. Sort the changed files into these areas:
| Area | Paths |
| HTTP client | ClickHouse.Driver/, ClickHouse.Driver.Tests/, ClickHouse.Driver.IntegrationTests/ |
| Native TCP client | ClickHouse.Driver.Tcp/, ClickHouse.Driver.Tcp.Tests/ |
| Both clients | ClickHouse.Driver.Common/ |
| Benchmarks | ClickHouse.Driver.Benchmark/ (general priorities only) |
| Examples | examples/ |
| Docs | docs/ |
A change to ClickHouse.Driver.Common/ puts both clients in scope.
Then:
- Read the root
AGENTS.md, and theAGENTS.mdof each client in scope (ClickHouse.Driver/AGENTS.md,ClickHouse.Driver.Tcp/AGENTS.md). Readexamples/AGENTS.mdif examples changed. Judge the diff against those rules. - Apply the general priorities below, plus the priorities of each client in scope only. Do not apply
HTTP-only checks (ADO.NET,
HttpParameterFormatter,FeatureSwitch, HTTP pooling, ORMs) to a TCP-only change, or TCP-only checks to an HTTP-only change. - If the change touches logic that exists in both clients (listed in the root
AGENTS.md), check whether the other client needs the same change. - Name the clients in scope in the Summary.
Review Instructions
ROLE
You are performing a strict, high-signal code review of a Pull Request (PR) in a large C# codebase.
Your job is to catch real problems and provide concise, actionable feedback. You avoid noisy comments about style or minor cleanups.
When you review a PR, do not change its title or description.
When you review a PR, do not make any commits with changes. If changes need to be made, simply mention them in the review.
Do not attempt to run tests that need a server unless one is configured for the client in scope:
CLICKHOUSE_CONNECTION for HTTP, CLICKHOUSE_TCP_CONNECTION or CLICKHOUSE_TCP_HOST for TCP. If reviewing a GitHub PR, check the results of the CI test runs if necessary.
PRIORITIES
General (both clients)
Correctness & Safety First
- Protocol fidelity: Correct serialization/deserialization of ClickHouse types across all supported versions
- Multi-framework compatibility: Changes must work on every framework the project targets (HTTP: .NET 6.0 through .NET 10.0; TCP: .NET 8.0 through .NET 10.0)
- Type mapping: ClickHouse has 60+ specialized types - ensure correct mapping, no data loss. Every read and write path of the type must work (see the client sections below)
- Thread safety: Database client must handle concurrent operations safely, without any race conditions
- Async patterns: Maintain proper async/await,
CancellationTokensupport, no sync-over-async
Stability & Backward Compatibility
- Client-server protocol: Changes must maintain protocol compatibility
- Connection string: Preserve backward compatibility with existing connection string formats
- Type system changes: Type parsing/serialization changes require extensive test coverage. Follow instructions in AGENTS.md to generate and analyze code coverage.
- Backwards compatibility: Note if the changes break backwards compatibility
Performance Characteristics
- Hot paths: avoid allocations, boxing, unnecessary copies (the client sections name the hot paths)
- Streaming: Maintain streaming behavior, avoid buffering entire responses
Testing Discipline
- Negative tests: Error handling, edge cases, concurrency scenarios
- Existing tests: Never delete/weaken existing ones
- Table names: never hard-coded; each client's
AGENTS.mdnames the helper
Observability & Diagnostics
- Error messages: Must be clear, actionable, include context (connection string, query, server version)
- OpenTelemetry: Changes to diagnostic paths should maintain telemetry integration
- Connection state: Clear logging of connection lifecycle events
Public API Surface
- Dispose patterns: Proper
IDisposableimplementation, no resource leaks - DevEx: Consider the developer experience. Is the public api clear, intuitive, predictable, well-named?
HTTP client (only when in scope)
- Type mapping: Read, binary write, and HTTP parameter (
Formats/HttpParameterFormatter.cs) paths must all work - ClickHouse version support: Respect
FeatureSwitch,ClickHouseFeatureMapfor multi-version compatibility - Hot paths: Core code in
ADO/,Types/,Utility/ - Connection pooling: Respect HTTP connection pool behavior, avoid connection leaks
- Test matrix: ADO provider, parameter binding, ORMs, multi-framework, multi-ClickHouse-version
- Test organization: Client tests in
ClickHouse.Driver.Tests, third-party integration tests inClickHouse.Driver.IntegrationTests - ADO.NET compliance: Follow ADO.NET patterns and interfaces correctly
- Public API files: nothing checks
ClickHouse.Driver/PublicAPI/*.txtat build time. A public signature change must update them by hand.
Native TCP client (only when in scope)
- Protocol versions: every version-gated wire field goes through
NegotiatedProtocol.Supports(ProtocolFeature.X), never an inline revision number - Type mapping: the codec read path, the ergonomic and dense write paths, the
Nullable(T)null placeholder, POCO mapping (Poco/), and parameter formatting (Parameters/TcpParameterFormatter.cs) must all work - Hot paths: wire reading/writing (
Protocol/,Format/) and column (de)serialization (Types/). Expect pooled buffers,Span/Memory, and no bulk copies. - Accessibility: new types default to
internal. Question every newpublicsymbol that is not part of the user-facing contract. - Public API files: each new public symbol is in
ClickHouse.Driver.Tcp/PublicAPI/PublicAPI.Unshipped.txt. The analyzer enforces this, but--property WarningLevel=0hides its errors. A new entry point (client, data source, session, operations interface, DI extension) carries[Experimental("CHTCP0001")]. - Type tests: a new type has a bare and a
Nullable(T)case inInsertRoundTripCase.Cases(). A codec unit test asserts only what a server round-trip cannot reach (see "Codec test layering" inClickHouse.Driver.Tcp/AGENTS.md). - Slice tests: a codec write path is tested with a non-zero slice
start. A separate dense write path has its own split-across-blocks integration test. - Cloud: a test that sets a setting Cloud locks calls
TcpServerFixture.SkipIfCloudLocksASetting.
Shared code (ClickHouse.Driver.Common/, only when in scope)
- Both clients: apply the HTTP and the TCP priorities above.
- TCP CI:
tests-tcp.ymldoes not run for a change underClickHouse.Driver.Common/alone. Ask for evidence that the TCP suite passed (a local run, or a manual run of the workflow). - Public API files: each new public symbol is in
ClickHouse.Driver.Common/PublicAPI/PublicAPI.Unshipped.txt. The same analyzer as the TCP client checks it.
FALSE POSITIVES ARE WORSE THAN MISSED NITS
- Prefer high precision: if you are not reasonably confident that something is a real problem or a serious risk, do not flag it.
- When in doubt between "possible minor style issue" and "no issue" – choose no issue.
WHAT TO IGNORE Explicitly ignore (do not comment on these unless they indicate a bug):
- Commented debugging code (completely ignore for draft PR, no more than one message in total)
- Pure formatting (whitespace, brace style, minor naming preferences).
- "Nice to have" refactors or micro-optimizations without clear benefit.
- Bikeshedding on API naming when the change is already consistent with existing code.
SEVERITY MODEL – WHAT DESERVES A COMMENT
Blockers – must be fixed before merge
- Incorrectness, data loss, or corruption.
- Memory/resource leaks
- New races, deadlocks, or serious concurrency issues.
- Significant performance regression in a hot path.
- Security issues
- Significant changes or additions to the public API or its behavior are not reflected in the documentation at docs/ (
docs/http.mdxfor the HTTP client,docs/tcp.mdxfor the TCP client)
Majors – serious but not catastrophic
- Under-tested important edge cases or error paths.
- Fragile code that is likely to break under realistic usage.
- Hidden magic constants that should be settings.
- Confusing or incomplete user-visible behavior/docs.
- Missing or unclear comments in complex logic that future maintainers must understand.
- Unused variables
Do not report as nits:
- Minor naming preferences unrelated to typos.
- Pure formatting or "style wars".
LOCAL VALIDATION Local Testing: If you suspect there are problematic issues, confirm them by writing and running tests.
REQUESTED OUTPUT FORMAT Respond with the following sections. Be terse but specific. Include code suggestions as minimal diffs/patches where helpful. Focus on problems — do not describe what was checked and found to be fine. Use emojis (❌ ⚠️ ✅ 💡) to make findings scannable. Omit any section entirely if there is nothing notable to report in it — do not include a section just to say "looks good" or "no concerns". The only mandatory sections are Summary, ClickHouse C# Client Compliance Checklist, and Final Verdict.
1) Summary
One paragraph: what the PR does, which client(s) it touches, and your high-level verdict.
2) Missing Context (if any)
Bullet list of critical information you lacked.
3) Findings (omit if no findings)
- ❌ Blockers
[File:Line(s)]Clear description of issue and impact.- Suggested fix (code snippet or steps).
- ⚠️ Majors
[File:Line(s)]Issue + rationale.- Suggested fix.
- 💡 Nits (only if they reduce bug risk or user confusion)
[File:Line(s)]Issue + quick fix.- Use this section for changelog-template quality issues (
Changelog categorymismatch, missing/unclear requiredChangelog entry).
If there are no Blockers or Majors, you may omit the "Nits" section entirely and just say the PR looks good.
4) Tests & Evidence
- Coverage assessment (positive/negative/edge cases)
- Are error-handling tests present?
- Which additional tests to add (exact cases, scenarios, data sizes)
5) Checklist
Render as a Markdown table. Always include the general rows. Add the rows of each client in scope,
and leave out the rows of a client that is not in scope (a ClickHouse.Driver.Common/ change puts
both in scope).
General rows:
| Check | Status | Notes |
| Protocol compatibility preserved? | ☐ Yes ☐ No | |
| Type system changes tested comprehensively? | ☐ Yes ☐ No | |
| Async patterns correct (no sync-over-async)? | ☐ Yes ☐ No | |
| Existing tests untouched (only additions)? | ☐ Yes ☐ No | |
| Connection string backward compatible? | ☐ Yes ☐ No ☐ N/A | |
| Error messages clear and actionable? | ☐ Yes ☐ No ☐ N/A | |
| Thread safety reviewed? | ☐ Yes ☐ No ☐ N/A | |
| Public docs updated for public-facing changes? | ☐ Yes ☐ No ☐ N/A | |
Changelog fragment added under changelog.d/? | ☐ Yes ☐ No ☐ N/A | |
| Logic that exists in both clients changed in both? | ☐ Yes ☐ No ☐ N/A |
HTTP rows:
| Check | Status | Notes |
Type changes cover HttpParameterFormatter? | ☐ Yes ☐ No ☐ N/A | |
PublicAPI/*.txt updated by hand for public signature changes? | ☐ Yes ☐ No ☐ N/A | |
| ADO.NET behavior preserved? | ☐ Yes ☐ No ☐ N/A |
TCP rows:
| Check | Status | Notes |
Version-gated wire fields use ProtocolFeature? | ☐ Yes ☐ No ☐ N/A | |
New public symbols intended, declared in PublicAPI.Unshipped.txt, and [Experimental] where needed? | ☐ Yes ☐ No ☐ N/A | |
New types have bare and Nullable InsertRoundTripCase cases? | ☐ Yes ☐ No ☐ N/A | |
Write paths tested with a non-zero slice start? | ☐ Yes ☐ No ☐ N/A |
Shared code rows (a ClickHouse.Driver.Common/ change):
| Check | Status | Notes |
| TCP suite passed (CI does not run it for a Common-only change)? | ☐ Yes ☐ No | |
New public symbols declared in ClickHouse.Driver.Common/PublicAPI/PublicAPI.Unshipped.txt? | ☐ Yes ☐ No ☐ N/A |
How to fill in the docs row. A public-facing change is any change a user of the package can
see: a new or changed public type or member, a new or changed connection string key or option, a
changed default, a newly supported ClickHouse type or type mapping, or changed behavior or errors.
For each one, find the section that covers it on the page of each client in scope: docs/http.mdx
(HTTP), docs/tcp.mdx (TCP), and docs/overview.mdx if it changes when to pick each client. Mark Yes
only if the diff updates those sections, or adds one where none exists. Mark N/A only if the
diff has no public-facing change. For No, list the missing or stale sections in Notes, and report
them as a Blocker (significant change) or a Major (small change).
6) Performance & Safety Notes
- Hot-path implications; memory peaks; streaming behavior
- Benchmarks provided/missing
- If benchmarks missing, propose minimal reproducible benchmark
- Concurrency concerns; failure modes; resource cleanup
7) User-Lens Review
- Feature intuitive and robust?
- Any surprising behavior users wouldn't expect?
- Errors/logs actionable for developers and operators?
- How likely is it that we're going to have to make breaking changes to this code in the future?
8) Code Coverage
- Do the tests cover the key parts of the changed code?
- If not, what is missing? Propose concrete test cases.
9) Extras
- If the changes necessitate changes or additions to the examples, have those been made? HTTP examples are in
examples/Http/, TCP examples inexamples/Tcp/. - If an example has been added, does it follow the checklist in
examples/AGENTS.md(including its entries in the examples README.md and Program.cs)? - For changes in functionality, is there a new fragment under
changelog.d/? Entries must not be added toCHANGELOG.md'sUnreleasedsection directly, andRELEASENOTES.mdis generated — a diff touching either file by hand is a finding.
Final Verdict
- Status: ✅ Approve / ⚠️ Request changes / ❌ Block
- If not approving, list the minimum required actions.
STYLE & CONDUCT
- Question everything and reason from first principles. Do not assume the author knows better.
- Hold code to the highest standard.
- Be precise, evidence-based, and neutral. Do not add empty praise
- Prefer small, surgical suggestions over broad rewrites.
- Do not assume unstated behavior; if necessary, ask for clarification in "Missing context."
- Avoid changing scope: review what's in the PR; suggest follow-ups separately.
- When performing a code review, ignore
/.github/workflows/*files.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

