agentleFS
rafaelghifrafaelghif/antigravity-agents-core/.agents/skills/perf-audit/SKILL.md

perf-audit

Skill6 starsChanged 15 days agoMITView on GitHub

Audits application performance budgets (NFR-###) across database query plans (EXPLAIN ANALYZE), N+1 elimination, load/latency benchmarks, bundle size, memory leaks, and UI rendering FPS. Use when validating NFR-### budgets, investigating slow endpoints/queries, or preparing a release.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use a11y-audit, security-audit and 3 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.
  • renfei-designSkill

    a11y-audit

    Audit Figma designs for WCAG accessibility issues — color contrast, minimum font size, touch target sizing, and missing text alternatives. Use when asked to check accessibility, audit contrast ratios, find a11y issues, verify WCAG compliance, or review designs for accessibility problems. Scans nodes, analyzes offline, and annotates issues in Figma.

    Also in 4 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 5 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 5 projects that use this

  • HashiCorpSkill

    changelog

    Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 0

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

    Verify latency, throughput, memory, query-plan, and UI-rendering budgets (NFR-### in CONTEXT.md or specs/<slug>.md) with real measurements …

    line 8

“Common” is measured: kept by at least 6 in 10 of the 13 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 (NFR-### Verification & Profiling)

Verify latency, throughput, memory, query-plan, and UI-rendering budgets (NFR-### in CONTEXT.md or specs/<slug>.md) with real measurements rather than assumptions.

Decision tree

  1. Are explicit NFR-### targets (p95/p99 ms, RPS, bundle KB, FPS, memory cap) defined?
    • No → Stop and establish measurable targets via /discover or ask_question before benchmarking.
    • Yes → Proceed to step 2.
  2. Which performance surface is under audit?
    • Database / Query → Run EXPLAIN ANALYZE / EXPLAIN (ANALYZE, BUFFERS) and inspect N+1 query counts, sequential scans, and composite index alignment ((tenant_id, ...)).
    • HTTP / Worker / CLI Throughput → Run a bounded load benchmark (k6, autocannon, hey, pytest-benchmark, go test -bench) against a staging or local isolated instance.
    • Frontend / Mobile UI → Check bundle size (build stats), Core Web Vitals (lighthouse), React/Vue re-render flamegraphs, or Flutter DevTools frame timing + controller dispose() cleanup.

Audit workflow

  1. Baseline & Hot-Path Inspection:
    • Locate hot loops, unbounded list loads, missing cursor pagination, blocking synchronous CPU work, and per-item DB/HTTP calls inside loops.
  2. Execute Real Measurement:
    • Capture exact command, dataset size/concurrency, and observed p50/p95/p99, query plan cost, or bundle/memory metrics via run_command (or /browsing for live web timing).
  3. Remediate & Re-Measure:
    • Apply batching/joins, covering/composite indexes, cursor pagination, streaming backpressure, Isolate/worker_threads offload, or list virtualization (ListView.builder).
    • Re-run the benchmark and record before/after numbers plus regression test coverage (NFR-###).

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.