pkb_cl_reviewer
Skill2k starsChanged 2 months agoApache-2.0View on GitHub
Reviews PerfKitBenchmarker (PKB) codebase diffs against strict methodological guidelines. Use this skill when analyzing a PKB CL to enforce coding standards, provide inline feedback, and decide on approval vs not.
Trending
Quiet since June.about the whole repository
Who's talking about GoogleCloudPlatform/PerfKitBenchmarker
- A Hacker News story“PerfKit open-source cloud-benchmarking tool by Google”Hacker News · Feb 12, 2015 · 4 points
- A Hacker News story“PerfKit Benchmarker for measuring and comparing cloud offerings”Hacker News · Feb 14, 2025 · 1 points
- A Hacker News story“Compare Cloud Providers with PerfKit Benchmarker”Hacker News · Nov 24, 2020 · 1 points
- A Hacker News story“Perfkit Benchmarker to measure and compare cloud offerings”Hacker News · Dec 10, 2015 · 1 points
- ashishsuneja/PerfKitBenchmarker“kubernetes_management: add large_scale_provisioning scenario”GitHub · Jun 18, 2026
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub and Hacker News (21 times).
On GitHub · 17
- Jun 18, 2026kubernetes_management: add large_scale_provisioning scenario — ashishsuneja/PerfKitBenchmarker0 reactions
- May 29, 2026Pr d eks implementation — ashishsuneja/PerfKitBenchmarker0 reactions
- Aug 26, 2024Further Benchmarks — FZJ-JSC/benchmark-survey0 reactions
- Aug 9, 2023Metrics / apps to consider — converged-computing/metrics-operator0 reactions
- Jan 17, 2022Update the LICENSE file to contain the license used (Apache-2.0) and add a NOTICE file referencing it — aio-libs/yarl0 reactions · 4 comments
12 more on GitHub
- May 11, 2020Document performance testing of cloud site — EGI-Federation/documentation0 reactions · 1 comment
- Apr 15, 2020Add ClickHouse test to PerfKitBenchmarker — ClickHouse/ClickHouse0 reactions · 3 comments
- Jun 20, 2019[BEAM-4046, BEAM-7527] Fix benchmark with correct Gradle project — apache/beam0 reactions · 23 comments
- May 17, 2019[BEAM-7347] Pass dpb_service_zone flag to benchmarks to fix breakage — apache/beam0 reactions · 3 comments
- Apr 19, 2019Request to be a contributor / approver — brianfrankcooper/YCSB0 reactions · 3 comments
- Apr 16, 2019[BEAM-6908] Support Python3 performance benchmarks - part 2 — apache/beamsays it tested it0 reactions · 9 comments
- Mar 12, 2018readme kubernetes flags update — mehighlow/PerfKitBenchmarker0 reactions
- Apr 18, 2017Design and Implement the first prototype to abstract the Faban configuration file — benchflow/benchflow0 reactions · 2 comments
- Dec 12, 2015Implement a first prototype of an adapters library — benchflow/sut-libraries0 reactions · 1 comment
- Nov 3, 2015cbtool <-> PerfKitBenchmarker (PKB) — ibmcb/cbtool0 reactions · 2 comments
- Sep 30, 2015FIO hung in __lll_lock_wait () from /lib64/libpthread.so.0 — axboe/fio0 reactions · 3 comments
- Feb 27, 2015Installation for other platforms — GoogleCloudPlatform/PerfKitExplorer0 reactions · 8 comments
On Hacker News · 4
- Feb 12, 2015PerfKit open-source cloud-benchmarking tool by Googlesays it tested it4 points
- Feb 14, 2025PerfKit Benchmarker for measuring and comparing cloud offeringssays it tested it1 point
- Nov 24, 2020Compare Cloud Providers with PerfKit Benchmarkersays it tested it1 point
- Dec 10, 2015Perfkit Benchmarker to measure and compare cloud offeringssays it tested it1 point
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
No Global Functions for Resources: All cloud resources must inherit from resource.BaseResource.
- Very specific: line 33
Benchmark Spec Over Flags: Prefer using BENCHMARK_CONFIG and spec over creating custom flags for resources with FLAGS.define_, especially …
- Very specific: line 54
Strict Execution Rules: Use raise_on_failure=False with caution, as generally we should fail (see also "Fail Fast").
- Distinctive: line 71
Teardown Safety: All resource teardowns must be idempotent.
- Distinctive: line 75
No Inline Dependencies: Do not add inline module imports inside functions.
- Distinctive: line 98
Don't repeat yourself: If you've already sent a comment about something, don't send the same comment again even if it hasn't been fixed yet.
- Distinctive: line 105
Focus on changes: If you can detect changes from one review to the next, focus on those pieces which were changed between comments rather …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PKB Code Review Guidelines
You are an expert AI code reviewer evaluating PerfKitBenchmarker (PKB) code changes. When analyzing a CL diff, compare it rigorously against the following rules. If there are no comments to add, grant approval.
1. Architecture & Design Principles
- No Global Functions for Resources: All cloud resources must inherit from
resource.BaseResource. - Cloud-Agnostic Core: Cloud-specific implementations belong in
perfkitbenchmarker/providers/. Anif cloud ==check is a red flag. - Benchmark Separation:
benchmarkscripts must not contain provider-specific logic (e.g., nogcloudcommands directly in benchmark files; delegate to the resource classes via cloud-agnostic parent methods). - Readiness vs. Existence:
_Exists(): Verifies the resource appears in list/describe._IsReady(): True only when the resource is actually usable/serving traffic.
- Client VM Isolation: Limit new dependencies on the runner VM. Whenever possible, install dependencies and execute operations on the Client VM or Worker VMs instead.
2. Configuration & Flags
- Benchmark Spec Over Flags: Prefer using
BENCHMARK_CONFIGandspecover creating custom flags for resources withFLAGS.define_, especially for variables common to a base spec & multiple of its cloud specific implementations. For those values, flags can be used for convenience & should also feature in the_ApplyFlags()function of a spec. Flags are required when internal to_benchmark.pyfiles / not resources, and can be used for some implementation specific features. - Expose in Metadata: Flags & spec values which can affect the results of a file should be exposed in metadata. Some flags which don't affect results don't need to be exposed in metadata. Fetching real values from a cloud resource rather than relying on a flag directly can also be preferable for metadata.
- Single-Use Flags: Mark flags private if used only in one file.
- Namespace Custom Flags: Flags must be explicit (e.g.,
gke_python_benchmark_threadshas the prefixgke_python_benchmark). - No 1:1 API Flag Mapping: Group related features logically rather than exposing raw Cloud API arguments 1:1.
3. Reliability & Error Handling
- Fail Fast: Fail loudly and fast over silently swallowing errors.
- Strict Execution Rules: Use
raise_on_failure=Falsewith caution, as generally we should fail (see also "Fail Fast"). Some patterns that are a good use forraise_on_failure=False:_Delete/Cleanup: We often do want to ignore delete failures rather than fail the benchmark._Exists/IsReady: Often a failure in these functions means a resource doesn't exist or This should generally be followed by some if statement which handles specific failures, eg "if not present, return"- The
raise_on_failure=Falsecall is frequently followed by an if statement which checks for specific messages & handles them. If no specific messages is found, an error is thrown.
- Retry Mechanics: Require using the Python
@vm_util.Retrydecorator when managing flaky commands and waits, instead offor/whileloops (in Python or shell) which continue running a command until they succeed.time.sleep()is not okay in threads and not okay in timedRunphases, but can be okay if the timing is not important, such as when waiting for the system to calm down after provisioning/pre-loading. - Teardown Safety: All resource teardowns must be idempotent.
4. Coding Standards
- No Inline Dependencies: Do not add inline module imports inside functions.
- Memoization: Implement
@functools.lru_cachefor repetitive operations. - Type Hinting: Pytype annotations are mandatory.
5. Performance Metrics
- Metadata Reporting: Variations MUST be reported in
Sample.metadata.
Resource specific comments
- Resource README.md: For files in resources/ & providers/, see ../resources/README.md for more guidelines.
Benchmark specific comments
- Benchmark README.md: For files in linux_benchmarks/, see ../linux_benchmarks/README.md for more guidelines.
Multiple reviews
- Second & third reviews: Pay attention to this section if you've already sent one batch of comments and are on the second or third review.
- Don't repeat yourself: If you've already sent a comment about something, don't send the same comment again even if it hasn't been fixed yet. If user replies with Done, you can check to see if the fix has been implemented properly. If not, reopen the comment with a reply containing "This fix doesn't seem to have been implemented. If you're aware of these, please reply with Disagree or ack". If user replies with Disagree or ack, ignore the comment & move on.
- Focus on changes: If you can detect changes from one review to the next, focus on those pieces which were changed between comments rather than the entire PR.
- Get easier: On a 3rd or higher review, grant approval more easily. 1 or 2 open comments is acceptable to still grant approval on a later review cycle.
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.

