agentleFS
MesteriisMesteriis/Engineering-Bible-AI/skills/performance/SKILL.md

performance

Skill0 starsChanged 5 months agoMITView on GitHub

Improves measured performance while preserving correctness, reliability, and maintainability.

45 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use web-quality-audit, core-web-vitals and 8 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.
  • 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 5 projects that use this

  • thisisAhsanIqbalSkill

    core-web-vitals

    Audits HTML patterns that affect Core Web Vitals (LCP, CLS, INP). Checks for layout shift causes, largest contentful paint blockers, and interaction responsiveness issues. Use when optimising page performance or fixing Google PageSpeed Insights warnings.

    Also in 6 projects that use this

  • kpbraySkill

    best-practices

    Applies Power BI best practices, BPA rules, and enterprise standards. Use for quality validation, naming conventions, and performance optimization.

    Also in 5 projects that use this

  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 13 projects that use this

  • VercelSkill

    remotion

    Remotion renderer for json-render that turns JSON timeline specs into videos. Use when working with @json-render/remotion, building video compositions from JSON, creating video catalogs, or rendering AI-generated video timelines.

    Also in 3 projects that use this

  • ratacatSkill

    design-patterns

    Use when designing software architecture, refactoring code structure, solving recurring design problems, or when code exhibits symptoms like tight coupling, rigid hierarchies, scattered responsibilities, or difficult-to-test components. Also use when choosing between architectural approaches or reviewing code for structural improvements.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 5

    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:

    Prefer measurement over intuition.

    line 16
  2. Distinctive:

    Do not add caching unless invalidation is clear.

    line 17
  3. Distinctive:

    Do not trade data integrity or safety for speed.

    line 18
  4. Distinctive:

    Do not make code clever merely to save imaginary nanoseconds.

    line 19
  5. Distinctive:

    Add caching only when:

    line 48

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

Skill: performance

Purpose

Improve performance only when it matters, and without breaking correctness.

Rules

  • Correctness comes first.
  • Identify the bottleneck before optimizing.
  • Prefer measurement over intuition.
  • Do not add caching unless invalidation is clear.
  • Do not trade data integrity or safety for speed.
  • Do not make code clever merely to save imaginary nanoseconds.

Common Bottlenecks

Check for:

  • repeated I/O;
  • N+1 queries;
  • unbounded memory growth;
  • unnecessary allocations;
  • blocking work in async/event-loop contexts;
  • inefficient serialization;
  • overly broad database queries;
  • missing indexes when schema context confirms it;
  • excessive polling;
  • hardware update intervals that cause instability or wear.

Optimization Workflow

  1. Define performance goal.
  2. Identify current behavior.
  3. Measure or reason from evidence.
  4. Make focused change.
  5. Validate correctness.
  6. Validate performance impact if possible.
  7. Document tradeoffs.

Caching Rules

Add caching only when:

  • correctness is preserved;
  • invalidation is understood;
  • cache size is bounded or controlled;
  • stale data behavior is acceptable;
  • failure behavior is defined;
  • observability exists when needed.

Reporting

Report:

  • bottleneck;
  • change;
  • correctness validation;
  • performance validation;
  • tradeoffs/risks.

Extended References

For deeper work, read:

  • ../../engineering/18_performance_philosophy.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.