agentleFS
Google CloudKnown publisherGoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/agents/review/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the GoogleCloudPlatform/PerfKitBenchmarker repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about GoogleCloudPlatform/PerfKitBenchmarker

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

12 more on GitHub

On Hacker News · 4

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
  1. Very specific:

    No Global Functions for Resources: All cloud resources must inherit from resource.BaseResource.

    line 16
  2. Very specific:

    Benchmark Spec Over Flags: Prefer using BENCHMARK_CONFIG and spec over creating custom flags for resources with FLAGS.define_, especially …

    line 33
  3. Very specific:

    Strict Execution Rules: Use raise_on_failure=False with caution, as generally we should fail (see also "Fail Fast").

    line 54
  4. Distinctive:

    Teardown Safety: All resource teardowns must be idempotent.

    line 71
  5. Distinctive:

    No Inline Dependencies: Do not add inline module imports inside functions.

    line 75
  6. Distinctive:

    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.

    line 98
  7. Distinctive:

    Focus on changes: If you can detect changes from one review to the next, focus on those pieces which were changed between comments rather …

    line 105

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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/. An if cloud == check is a red flag.
  • Benchmark Separation: benchmark scripts must not contain provider-specific logic (e.g., no gcloud commands 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_CONFIG and spec over creating custom flags for resources with FLAGS.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.py files / 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_threads has the prefix gke_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=False with caution, as generally we should fail (see also "Fail Fast"). Some patterns that are a good use for raise_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=False call 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.Retry decorator when managing flaky commands and waits, instead of for/while loops (in Python or shell) which continue running a command until they succeed. time.sleep() is not okay in threads and not okay in timed Run phases, 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_cache for 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.