agentleFS
pvnarppvnarp/agent-skills/skills/perf/SKILL.md

perf

Skill1 starsChanged 9 months agoMITView on GitHub

Performs performance audits. Checks response times, memory usage, CPU utilization, algorithmic complexity, and resource management. Use when investigating slowness, memory leaks, or optimizing performance.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use metrics, api and 5 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.
  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • xiaobei930Skill

    api

    RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 5 projects that use this

  • Microsoft AzureSkill

    test

    Also in 6 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 7 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 10

    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:

    Check for N+1 query patterns

    line 12
  2. Distinctive:

    Verify appropriate use of caching

    line 13
  3. Distinctive:

    Check connection pooling for databases and HTTP clients

    line 14
  4. Distinctive:

    No object allocations in tight loops or hot paths where avoidable

    line 18
  5. Distinctive:

    No unbounded growth of collections, caches, or queues

    line 20
  6. Distinctive:

    Check for closure/callback reference leaks

    line 21
  7. Distinctive:

    Verify garbage collection pressure is manageable

    line 22
  8. Distinctive:

    No redundant computation (computing the same thing multiple times)

    line 27
  9. Distinctive:

    No contention on shared locks in hot paths

    line 35
  10. Distinctive:

    No full table scans on large tables

    line 42

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

Response Time / Throughput

  • Identify hot paths - what runs most frequently?
  • Flag any blocking I/O on critical paths (network calls, disk reads, DB queries in request handlers)
  • Check for N+1 query patterns
  • Verify appropriate use of caching
  • Check connection pooling for databases and HTTP clients

Memory

  • No object allocations in tight loops or hot paths where avoidable
  • Resources (connections, streams, file handles) properly closed
  • No unbounded growth of collections, caches, or queues
  • Check for closure/callback reference leaks
  • Verify garbage collection pressure is manageable

CPU

  • Algorithmic complexity appropriate? Flag O(n^2) or worse in hot paths
  • No redundant computation (computing the same thing multiple times)
  • Heavy computation offloaded from main/UI thread
  • Regex compiled once, not per-invocation
  • String operations efficient (no repeated concatenation in loops)

Concurrency

  • Thread pool sizes appropriate for workload
  • No contention on shared locks in hot paths
  • Async operations used where I/O-bound (not CPU-bound)
  • Connection pools sized correctly

Database

  • Queries use indexes? Check EXPLAIN plans for common queries
  • No full table scans on large tables
  • Pagination for large result sets
  • Batch operations where possible (not row-by-row)
  • Connection pool not exhausted under load

Network

  • Payloads sized appropriately? Compress large responses
  • Connection reuse (keep-alive, HTTP/2)
  • Timeouts configured (no infinite waits)
  • Retry logic with backoff (no retry storms)

Utility Scripts

  • scripts/find_hot_spots.sh [dir] - Find long functions (100+ lines), deeply nested loops, perf-related TODOs, and large files.

Output

[CRITICAL] file:line - description - impact - fix
[WARNING]  file:line - description - impact - fix
[OK]       area - looks good because...

End with: biggest risks, top 3 priorities, estimated impact of each fix.

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.