agentleFS
PolakiniOPolakiniO/AI-Engineering-Playbook/skills/performance-optimizer/SKILL.md

performance-optimizer

Skill2 starsChanged 8 months agoMITView on GitHub

Review or plan changes that affect latency, throughput, caching, batching, scaling behavior, or duplicate work.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-auditor and code-reviewer.

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.
  • alirezarezvaniSkill

    security-auditor

    Continuous security vulnerability scanning for OWASP Top 10, common vulnerabilities, and insecure patterns. Use when reviewing code, before deployments, or on file changes. Scans for SQL injection, XSS, secrets exposure, auth issues. Triggers on file changes, security mentions, deployment prep.

    Also in 4 projects that use this

  • GoogleSkill

    code-reviewer

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when Codex and similar AI coding agents are reviewing or implementing performance-related changes such as latency reduction, …

    line 12
  2. Distinctive:

    remove duplicate work before speculative micro-optimization

    line 34
  3. Distinctive:

    keep performance behavior visible and debuggable

    line 35
  4. Distinctive:

    do not weaken safety, correctness, or contract clarity for speed

    line 36

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

performance-optimizer

Purpose During Development

Use this skill when Codex and similar AI coding agents are reviewing or implementing performance-related changes such as latency reduction, duplicate-work removal, scaling improvements, batching, caching, or throughput improvements.

This is a reusable development-time reasoning framework. It is not runtime code and must not be coupled into the product being reviewed.

When To Apply

  • performance-focused features or refactors
  • PRs that claim to speed up code paths
  • bugs involving timeouts, duplicate work, memory growth, or slow orchestration
  • changes that introduce caching, batching, concurrency, or reuse

What To Inspect

  • performance goals or claims
  • instrumentation, traces, or timing evidence
  • high-cost paths and repeated calls
  • cache or reuse semantics
  • tests or benchmarks that verify the claim

Rules To Enforce

  • require evidence for performance claims
  • remove duplicate work before speculative micro-optimization
  • keep performance behavior visible and debuggable
  • do not weaken safety, correctness, or contract clarity for speed
  • make caching and reuse explicit to callers and reviewers

Common Anti-Patterns To Catch

  • performance claims without measurement
  • hidden or stale caches
  • performance shortcuts that skip validation or safety controls
  • optimizing low-cost code while ignoring dominant bottlenecks
  • scattering reuse logic across unrelated modules

Expected Output From The Agent

  • bottleneck summary
  • evidence review
  • optimization options with trade-offs
  • regression risks
  • verification guidance

Output Structure

  • Summary
  • Key Findings
  • Risks
  • Affected Files
  • Evidence Reviewed
  • Suggested Improvements
  • Suggested Tests
  • Skills applied

Example Usage

"Review this PR that claims to reduce latency and check whether the evidence supports the claim."

"Use this skill to plan safe duplicate-work reduction in a multi-stage workflow."

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.