agentleFS
nesnilnehcnesnilnehc/ai-cortex/skills/review-performance/SKILL.md

review-performance

Skill8 starsChanged 2 months agoMITView on GitHub

Review code against the canonical performance quality Rule set, covering bounded work, I/O amplification, complexity, memory, concurrency, caching, budgets and resource ownership.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not invent numeric targets when the project has none.

    line 47
  2. Distinctive:

    Do not treat a tiny synthetic benchmark as representative without a declared load model.

    line 48
  3. Distinctive:

    Do not recommend caching without evaluating ownership, invalidation, capacity and failure behavior.

    line 49
  4. Very specific:

    Do not duplicate reliability findings about retry correctness.

    line 50
  5. Distinctive:

    Do not repair or change budgets during review.

    line 51
  6. Distinctive:

    If PERF-007 applies but a representative benchmark cannot run, report an evidence limitation.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 6 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.

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

Skill: Review Performance

Purpose

Evaluate the supplied scope against performance-quality. The Rule owns the criteria; this Skill owns applicability resolution, measurement and findings-list output with category cognitive-performance.

Core objective

Identify demonstrated or mechanically implied performance regressions and missing bounds, while separating measured results from reasoned risk and avoiding speculative micro-optimization.

Success requires one outcome for every applicable Rule item, representative evidence where a project budget applies, a Rule ID in every finding, and a coverage footer.

Scope boundaries

This Skill reviews performance only. It does not select scope, review reliability semantics, architecture, security, observability or test quality, change performance budgets, or modify code.

Use cases

  • Performance-focused review of request paths, queries, jobs or large-data code
  • The performance cognitive step in orchestrate-code-review
  • Verification of a declared latency, throughput, memory or query-count budget

Behavior

  1. Load performance-quality and record its version.
  2. Resolve active profiles, performance.budgets, the representative load model and any valid waivers from project evidence.
  3. Trace the dominant work path and gather the evidence required by applicable items: operation counts, query/call traces, complexity, allocation/retention, concurrency limits, cache semantics, benchmarks and resource cleanup.
  4. Distinguish three states: measured defect, structural risk with a mechanically implied growth path, and insufficient evidence. Only the first two produce findings; the third is reported as an evidence limitation.
  5. Emit one finding per failed obligation with the fully qualified Rule ID and category cognitive-performance.
  6. Return Rule coverage using the exact passed, waived, not_applicable and evidence_limited fields from the findings-list Spec.

Input and output

Input is an already selected code scope plus optional project budgets/load model. Output is a findings list; descriptions cite performance-quality@<version>/<PERF-ID>.

Restrictions

  • Do not invent numeric targets when the project has none.
  • Do not treat a tiny synthetic benchmark as representative without a declared load model.
  • Do not recommend caching without evaluating ownership, invalidation, capacity and failure behavior.
  • Do not duplicate reliability findings about retry correctness; hand those to review-reliability.
  • Do not repair or change budgets during review.

Self-Check

  • The canonical performance Rule and version were loaded.
  • Profiles, budgets, load model and waivers were resolved.
  • Every applicable PERF item has a pass, finding, valid waiver or evidence limitation.
  • Measured and inferred risks are labelled accurately.
  • Findings have precise locations, valid severity, actionable remediation and Rule IDs.

Examples

Example 1: repeated query in a loop

Emit a major finding citing PERF-002, identify the loop and query location, and state the observed or implied query count. Do not invent a latency number.

Example 2: no benchmark environment

If PERF-007 applies but a representative benchmark cannot run, report an evidence limitation. Do not mark the budget passed from code inspection alone.

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.