agentleFS
revizahoshii-norevizahoshii-no/agent-skill-project/skills/performance/SKILL.md

performance

Skill1 starsChanged 25 days agoMITView on GitHub

Measure and improve loading, responsiveness, layout stability, resource delivery, and runtime behavior using evidence from field data, browser traces, audits, and source inspection.

92 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use app-brief, design-from-app and 10 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.
  • StijnusSkill

    app-brief

    One-page brief (docs/BRIEF.md) for a new macOS app, written before any code. Use when the user has an app idea, wants to replace an app they pay for, or the research and clone skills are done.

    Also in 3 projects that use this

  • StijnusSkill

    design-from-app

    Rebuild the look of an app the user likes as a native SwiftUI design kit, by measuring its screenshots (sizes, spacing, type, colors, icons), building its parts, and comparing pixel by pixel until they match. Use when the user names an app whose look they want, shares screenshots of one, or says "make it look like X".

    Also in 3 projects that use this

  • FlorianBruniauxSkill

    tdd-rust

    Also in 3 projects that use this

  • launchapp-devSkill

    layout-grid

    Define responsive layout grid systems with columns, gutters, margins, and breakpoint behavior.

    Also in 3 projects that use this

  • RodrigoTomeESSkill

    web-quality-audit

    Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".

    Also in 9 projects that use this

  • ufodev-ioSkill

    security-guardian

    Comprehensive security layer for all interactions with Claude: audits code, dependencies, commands, configs, and AI-generated output for vulnerabilities. Protects against prompt injection, data leaks, unsafe advice, and social engineering. Works in Cursor, Claude Code, claude.ai, and API contexts. Use always as a background security protocol in any Claude-powered environment.

    Also in 3 projects that use this

  • +1 more from Stijnus

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 63 edited versions we read keep these.

  • 14

    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:

    Keep evidence types separate:

    line 18
  2. Distinctive:

    Do not report source inspection as measured performance.

    line 25
  3. Distinctive:

    Check a nearby interaction for regression.

    line 58
  4. Distinctive:

    Remove unused scripts and dependencies.

    line 62
  5. Distinctive:

    Avoid render-blocking third-party code.

    line 63
  6. Distinctive:

    Keep the hero image eager and prioritized when appropriate.

    line 68
  7. Distinctive:

    Use caching appropriate to the deployment model.

    line 71
  8. Distinctive:

    Keep event handlers small.

    line 76
  9. Distinctive:

    Avoid layout measurement during render.

    line 78
  10. Distinctive:

    Use transform and opacity for animation when possible.

    line 79
  11. Distinctive:

    Avoid heavy libraries for behavior available in the platform.

    line 81
  12. Distinctive:

    Avoid inserting content above existing content without space.

    line 87
  13. Distinctive:

    Keep font swaps from changing layout excessively.

    line 88
  14. Distinctive:

    Verify responsive images and embeds at each layout state.

    line 89

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

Web Performance

Use when

  • auditing page speed or Core Web Vitals;
  • diagnosing slow loading or interaction;
  • reducing JavaScript, CSS, image, or font cost;
  • validating a redesign before release.

Evidence model

Keep evidence types separate:

  1. field data from real users;
  2. first-party monitoring;
  3. controlled browser trace or lab audit;
  4. source inspection as a hypothesis.

Do not report source inspection as measured performance. Do not treat a lab score as proof of field performance.

Baseline

Record:

  • URL, route, state, and authentication condition;
  • viewport, device profile, network, and browser;
  • tool and version;
  • request count and transferred bytes;
  • key timings and layout shifts;
  • console and network failures;
  • largest assets and long tasks.

Compare before and after under equivalent conditions.

Field targets

Common 75th-percentile targets:

  • LCP below 2.5 seconds;
  • INP below 200 milliseconds;
  • CLS below 0.1.

These are field targets. Label lab observations accurately.

Diagnostic order

  1. Confirm the regression or failure.
  2. Identify the dominant element, request, or task.
  3. Trace it to source.
  4. Apply the smallest causal repair.
  5. Rerun the equivalent measurement.
  6. Check a nearby interaction for regression.

Loading rules

  • Remove unused scripts and dependencies.
  • Avoid render-blocking third-party code.
  • Defer non-critical scripts or load them on interaction.
  • Compress and correctly size images.
  • Give media explicit dimensions or aspect ratio.
  • Reserve space for late content.
  • Keep the hero image eager and prioritized when appropriate.
  • Lazy-load below-fold images and embeds.
  • Define an intentional font-loading strategy.
  • Use caching appropriate to the deployment model.

Runtime rules

  • Break up long tasks.
  • Keep event handlers small.
  • Batch DOM reads and writes.
  • Avoid layout measurement during render.
  • Use transform and opacity for animation when possible.
  • Virtualize or apply content visibility to large lists when justified.
  • Avoid heavy libraries for behavior available in the platform.

Layout stability

  • Set media dimensions.
  • Reserve async regions.
  • Avoid inserting content above existing content without space.
  • Keep font swaps from changing layout excessively.
  • Verify responsive images and embeds at each layout state.

Output contract

Report:

Scope and conditions:
Baseline evidence:
Primary bottleneck:
Source cause:
Repair:
Equivalent rerun:
Remaining field validation:

Human documentation: ../../docs/guides/performance.md.

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.