agentleFS
Bossmann007Bossmann007/cursor-kit/skills/performance/SKILL.md

performance

Skill0 starsChanged 2 months agoMITView on GitHub

Make an app faster and lighter with evidence: set a budget, measure a baseline, find the limiter, change one thing, measure again, and lock the win into scripts/verify. Covers start time, latency, memory, bundle and binary size, queries, CPU, energy and token or API cost. Use on "performance", "otimizar", "mais rápido", "mais leve", "está lento", "usa muita memória", "bundle grande", or when emode reaches a step with a performance goal.

92 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tdd-rust, app-brief 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.
  • FlorianBruniauxSkill

    tdd-rust

    Also in 3 projects that use this

  • 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

  • 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

  • launchapp-devSkill

    layout-grid

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

    Also in 3 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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 63 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read pstack benchmark-checklist (installPath of pstack@cursor-plugins, skills/benchmark-checklist/SKILL.md) and answer its questions for …

    line 45
  2. Distinctive:

    Never round a 3% change up to "faster".

    line 47
  3. Very specific:

    Add the cheapest guard that fails when the win is lost: a size check, a timing test with headroom, a query-count assertion, or a Lighthouse …

    line 51
  4. Very specific:

    No micro-tuning without a budget.

    line 57

“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

performance

Rule: no number, no claim. Measure, find the limiter, change one thing, measure again (Kernighan: simple code unless the measurement says otherwise). Regressions with an unknown cause go to diagnosing-bugs (its perf branch) first.

1. Budget (before touching code)

Pick what the user feels, not what is easy to count: the file they open, the screen they wait on, the machine it runs on (the Nonno's PC, a phone on 4G), and write 1-3 budgets as sentences you would ship, e.g. "cold start under 1.5 s on the target PC", "p95 /api/casos under 200 ms with 10k rows", "JS bundle under 200 kB gzip". No target from the user: propose one from the current baseline and say it is a proposal.

2. Baseline (real run, same conditions every time)

Release build, production flags, realistic data, warm and cold where both matter, 5+ runs, median and p95. Tools by kind (use what the project already has first):

KindMeasureFind the limiter
CLI / processhyperfine, /usr/bin/time -l (macOS RSS)py-spy, node --cpu-prof, perf/samply
Web frontLighthouse CI, vite build size report, source-map-explorerChrome Performance panel, bundle analyzer
API / serverautocannon, k6, ohaflame graph, query log, EXPLAIN ANALYZE
Databasequery timings on seeded dataEXPLAIN (ANALYZE, BUFFERS), missing index, N+1
.NET / desktopdotnet-counters, startup stopwatchdotnet-trace, PerfView; AOT and trimming size
LLM / agentstokens and cost per task, latency per callprompt size, cache hits, calls per task

3. One change at a time

Order of attack (cheapest win first): do less work (remove, cache, batch, index, lazy-load), then do it in a better place (DB instead of app, build time instead of run time), then do it faster (algorithm, data structure), and only last more hardware or concurrency. Each change: measure again on the same setup; keep it only if it moves the budget metric beyond run-to-run noise. Revert changes that did not help (subtract before you add).

4. Prove it (before reporting a number)

Read pstack benchmark-checklist (installPath of pstack@cursor-plugins, skills/benchmark-checklist/SKILL.md) and answer its questions for the claim. Report: budget, before, after, runs, machine, command to reproduce. Never round a 3% change up to "faster"; noise is "no change".

5. Lock it in

Add the cheapest guard that fails when the win is lost: a size check, a timing test with headroom, a query-count assertion, or a Lighthouse budget, called from scripts/verify (or CI when it is too slow for local). Write the budget and its reason in the README or an ADR, so the next change knows it exists.

Out of scope

No micro-tuning without a budget; no rewrite in another language or stack without /emode Decision route; no trading correctness, security or readability for a gain the user cannot feel.

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.