agentleFS
martingarramonmartingarramon/claude-code-starter-kit/skills/performance/SKILL.md

performance

Skill4 starsChanged 9 months agoMITView on GitHub

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 9 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

  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

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

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:

    After generating large codebases with Claude — AI code often has optimization gaps

    line 5
  2. Distinctive:

    Before scaling to production

    line 6
  3. Distinctive:

    When profiling reveals unclear bottlenecks

    line 7
  4. Distinctive:

    Always measure before AND after.

    line 26
  5. Distinctive:

    Consider the full stack (code, DB, network, infrastructure).

    line 29

“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

Performance — Profiling and Optimization

When to Use

  • Application is slow, memory-hungry, or unresponsive under load
  • After generating large codebases with Claude — AI code often has optimization gaps
  • Before scaling to production
  • When profiling reveals unclear bottlenecks

Core Principle

Measure first, then optimize targeted bottlenecks. Use Claude to interpret profiling data, diagnose root causes, and suggest data-driven improvements. Never optimize without evidence.

Process

  1. Profile baseline — Run profilers (cProfile, Chrome DevTools, Go pprof, etc.). Have Claude interpret results and highlight hot spots.
  2. Identify bottlenecks — Decompose by type: CPU, memory, I/O, network, database. Use Claude for hypothesis generation.
  3. Apply targeted fixes — Implement caching, algorithmic improvements, query optimization. Have Claude generate code variants.
  4. Benchmark changes — Re-profile and compare. Iterate until goals are met.
  5. Document tradeoffs — Note any impacts on readability, memory, or maintainability.

Output Format

  • Profiling summary (key metrics before/after)
  • Optimization changes (code diffs with explanations)
  • Tradeoff analysis
  • Future recommendations

Rules

  • Always measure before AND after. No gut-feel optimization.
  • 80/20 rule: fix the top 20% causing 80% of issues.
  • Validate with real benchmarks, not Claude's estimates.
  • Consider the full stack (code, DB, network, infrastructure).
  • Readability matters — don't sacrifice clarity for 5% gains.

Anti-Patterns

  • Premature optimization (wasting time on non-issues)
  • Optimizing without profiling data (solving the wrong problem)
  • Making code unreadable for marginal gains
  • Ignoring scalability (works at 100 users, dies at 10K)
  • Benchmarking in unrealistic environments

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.