agentleFS
witi-projectswiti-projects/Skills/auditing-performance/SKILL.md

auditing-performance

Skill2 starsChanged 7 months agoMITView on GitHub

Audit and optimize application performance, including bundle size, rendering, database queries, and Core Web Vitals. Use when the user says "/auditing-performance", "auditing performance", or asks about auditing performance.

2 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 13 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to optimize performance, reduce load times, fix slow pages, or audit Core Web Vitals.

    line 8
  2. Very specific:

    Run npx @next/bundle-analyzer (Next.js) or npx vite-bundle-visualizer (Vite) to identify large dependencies.

    line 13
  3. Very specific:

    Look for large libraries that could be replaced with lighter alternatives (e.g.

    line 14
  4. Distinctive:

    Check for duplicated dependencies in the bundle.

    line 15
  5. Distinctive:

    Verify tree-shaking is working (no barrel file re-exports pulling in unused code).

    line 16
  6. Very specific:

    Check for expensive computations in render paths that should use useMemo.

    line 20
  7. Very specific:

    Verify lists use proper key props (not array index for dynamic lists).

    line 21
  8. Distinctive:

    Look for layout thrashing (reading DOM measurements then writing styles in a loop).

    line 22
  9. Distinctive:

    Look for data fetched on the client that could be fetched on the server.

    line 26
  10. Distinctive:

    Check for missing pagination on large data sets.

    line 27
  11. Distinctive:

    Verify API responses aren't over-fetching (returning fields the client doesn't need).

    line 28
  12. Distinctive:

    Look for N+1 query patterns (a query per item in a list).

    line 31
  13. Distinctive:

    Check for missing indexes on columns used in WHERE, ORDER BY, and JOIN clauses.

    line 32
  14. Distinctive:

    Look for missing connection pooling.

    line 34
  15. Distinctive:

    Verify images use modern formats (WebP/AVIF) and are properly sized.

    line 37
  16. Very specific:

    Check for missing loading="lazy" on below-the-fold images.

    line 38
  17. Very specific:

    Verify fonts use font-display: swap and are preloaded.

    line 39
  18. Distinctive:

    Check for render-blocking CSS or JavaScript.

    line 40
  19. Distinctive:

    Don't prematurely optimize — profile first, optimize bottlenecks.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Performance Audit

Use this skill when the user asks to optimize performance, reduce load times, fix slow pages, or audit Core Web Vitals.

Steps

  1. Analyze bundle size
    • Run npx @next/bundle-analyzer (Next.js) or npx vite-bundle-visualizer (Vite) to identify large dependencies.
    • Look for large libraries that could be replaced with lighter alternatives (e.g. moment → date-fns, lodash → individual imports or native methods).
    • Check for duplicated dependencies in the bundle.
    • Verify tree-shaking is working (no barrel file re-exports pulling in unused code).
  2. Audit rendering performance
    • Identify components that re-render unnecessarily — look for inline object/array/function creation in JSX props.
    • Check for expensive computations in render paths that should use useMemo.
    • Verify lists use proper key props (not array index for dynamic lists).
    • Look for layout thrashing (reading DOM measurements then writing styles in a loop).
  3. Check data fetching
    • Identify request waterfalls — sequential API calls that could be parallelized with Promise.all.
    • Look for data fetched on the client that could be fetched on the server.
    • Check for missing pagination on large data sets.
    • Verify API responses aren't over-fetching (returning fields the client doesn't need).
  4. Database query optimization
    • Look for N+1 query patterns (a query per item in a list).
    • Check for missing indexes on columns used in WHERE, ORDER BY, and JOIN clauses.
    • Identify queries that could use SELECT with specific columns instead of SELECT *.
    • Look for missing connection pooling.
  5. Check assets
    • Verify images use modern formats (WebP/AVIF) and are properly sized.
    • Check for missing loading="lazy" on below-the-fold images.
    • Verify fonts use font-display: swap and are preloaded.
    • Check for render-blocking CSS or JavaScript.
  6. Generate recommendations — produce a prioritized list of optimizations ranked by impact (High / Medium / Low) with estimated effort for each.

Notes

  • Focus on measurable improvements — use Lighthouse, WebPageTest, or the Performance tab in DevTools.
  • Don't prematurely optimize — profile first, optimize bottlenecks.
  • For React apps, use React DevTools Profiler to identify slow components.

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.