agentleFS
adymireadymire/CraftLayer/skills/performance-optimization/SKILL.md

performance-optimization

Skill0 starsChanged 3 days agoMITView on GitHub

Diagnose and improve measured performance bottlenecks without sacrificing correctness, accessibility, or maintainability.

130 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constraint-driven-development, git-workflow-and-versioning 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.
  • 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 15 projects that use this

  • LLl0k0laDSkill

    git-workflow-and-versioning

    Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams.

    Also in 42 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 33 projects that use this

  • HK-hubSkill

    deprecation-and-migration

    Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.

    Also in 39 projects that use this

  • ukanwatSkill

    input-systems

    Architect game input — action mapping (abstracting keys into named actions), rebinding with conflict detection and persistence, multi-device support (keyboard, gamepad, touch), analog deadzones, and feel features like input buffering and coyote time, plus accessibility. Engine-neutral. Use when the user mentions input mapping, rebind controls, gamepad support, deadzone, input buffering, coyote time, or accessible controls.

    Also in 4 projects that use this

  • HK-hubSkill

    observability-and-instrumentation

    Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

    Also in 31 projects that use this

  • +6 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 115 edited versions we read keep these.

  • 6

    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 when user-perceived performance is poor, a measurable budget is missed, or a change risks adding substantial work, bytes, or latency.

    line 10
  2. Distinctive:

    Do not optimize based only on intuition or microbenchmarks unrelated to real user workloads.

    line 15
  3. Distinctive:

    Add a regression budget or test only when it is stable and meaningful.

    line 32
  4. Distinctive:

    Consider startup, memory, network, rendering, and server latency as appropriate.

    line 37
  5. Distinctive:

    Avoid adding complex caching or concurrency that risks data correctness.

    line 40
  6. Distinctive:

    If a page ships a large unused chart package, confirm bundle analysis and route usage before splitting or replacing it.

    line 44

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

When to use

Use when user-perceived performance is poor, a measurable budget is missed, or a change risks adding substantial work, bytes, or latency.

When not to use

Do not optimize based only on intuition or microbenchmarks unrelated to real user workloads.

Inputs and assumptions

Identify target devices, network, workload, performance metric, baseline, budget, user impact, and current profiling tools.

Workflow

  1. Reproduce the issue and capture a representative baseline.
  2. Profile the relevant path and find the dominant cost.
  3. Set a measurable target and choose the smallest change that addresses the bottleneck.
  4. Preserve correctness, accessibility, and error handling; document any trade-off.
  5. Compare before/after under the same conditions.
  6. Add a regression budget or test only when it is stable and meaningful.

Decision rules

  • Optimize observed bottlenecks before speculative ones.
  • Consider startup, memory, network, rendering, and server latency as appropriate.
  • Caching requires clear invalidation, privacy, and staleness behavior.
  • Avoid adding complex caching or concurrency that risks data correctness.

Example

If a page ships a large unused chart package, confirm bundle analysis and route usage before splitting or replacing it; compare real route load after the change.

Common failures

  • Reporting synthetic benchmark gains as user impact.
  • Caching user-specific data without safe cache keys.
  • Trading correctness or accessibility for a marginal speedup.

Validation

Repeat the baseline measurement, verify functional behavior, inspect regressions across representative devices/workloads, and report exact conditions and limits.

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.