agentleFS
jaydubya818jaydubya818/MissionControl/skills/performance-optimization/SKILL.md

performance-optimization

Skill1 starsChanged 9 months agoMITView on GitHub

Investigate slow paths and optimize measured bottlenecks.

155 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constraint-driven-development, using-agent-skills 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.
  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 18 projects that use this

  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 38 projects that use this

  • LLl0k0laDSkill

    idea-refine

    Refine ideas through structured divergent and convergent thinking. Use "idea-refine" or "ideate" to trigger.

    Also in 44 projects that use this

  • ukanwatSkill

    overtime-docs

    How Overtime works, for answering the person's questions and acting correctly - where settings, MCP servers, budgets, backends, files and logs live, what each tool does, and the exact commands the person runs.

    Also in 3 projects that use this

  • +3 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 137 edited versions we read keep these.

  • 4

    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:

    Use measurements to choose a bottleneck, change one cause, and compare the result under the same workload.

    line 17
  2. Distinctive:

    Remove unnecessary requests or N+1 queries after verifying the access pattern.

    line 43
  3. Distinctive:

    Keep correctness checks alongside the benchmark.

    line 49
  4. Distinctive:

    Add a representative regression check or monitoring signal where it will catch the demonstrated failure.

    line 71

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

Use measurements to choose a bottleneck, change one cause, and compare the result under the same workload. A suspected regression justifies investigation; it does not justify speculative caching, rewrites, or larger infrastructure.

Establish the baseline

Name the user journey or operation, observed symptom, and agreed performance budget. Record revision, dataset, runtime, hardware or device class, network, cache state, concurrency, and measurement method. Repeat enough to identify noise and state the sample size. Keep cold-start and warm measurements separate.

For web work, distinguish field data from laboratory traces. Field Core Web Vitals use real user experiences; a Lighthouse run or synthetic interaction cannot establish production INP. Verify current metric definitions and thresholds against web.dev's Web Vitals guide when using them. Report device segments and the period covered by field measurements.

For services, inspect latency distributions, throughput, errors, saturation, queue time, and query counts. CPU time alone does not explain I/O waits. Use representative payloads and concurrency within the authorized test budget.

Find and change the cause

Trace one slow path through rendering, network, application code, queries, and external dependencies as relevant. Optimize the measured bottleneck:

  • Remove unnecessary requests or N+1 queries after verifying the access pattern.
  • Reduce shipped or decoded bytes when transfer or parsing dominates.
  • Break up long main-thread work when it blocks measured interactions.
  • Change indexing or query shape after examining the actual execution plan.
  • Reduce retained objects or concurrency when memory or saturation is the limit.

Keep correctness checks alongside the benchmark. Do not trade away authorization, data freshness, error handling, or output quality to improve a metric. Request architecture or product decisions when the tradeoff exceeds the agreed scope.

Cache only with a consistency contract

Include every response-varying input in the key, including tenant, permissions, locale, and feature state where relevant. Define invalidation, retention, acceptable staleness, and behavior after authorization changes. Bound memory, handle concurrent misses, and distinguish missing data from dependency failure.

For money, permissions, or inventory decisions that require freshness, use the authoritative state at the decision boundary. A faster stale answer can be a correctness bug. Test cross-tenant isolation and stale-data behavior explicitly.

Compare, keep, or revert

Repeat the baseline workload with the same method. Report absolute values, relative change, noise, and any cost or error regression. If the result does not support the hypothesis, revert only this task's experiment and record what was learned. Stop when the agreed budget is met or a dependency blocks measurement.

Add a representative regression check or monitoring signal where it will catch the demonstrated failure. Avoid brittle timing assertions in ordinary unit tests. Do not claim a production improvement from a local microbenchmark.

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.