agentleFS
jerelvelardejerelvelarde/chalk-skills/skills/audit-performance/SKILL.md

audit-performance

Skill8 starsChanged 9 months agoMITView on GitHub

Audit performance against Core Web Vitals and performance budgets when the user asks to check performance, audit speed, or analyze web vitals

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use marketing-pages, close-spec 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.
  • dzhngSkill

    marketing-pages

    Best-practice rulebook for a marketing site's pages, organized by page class — campaign landers, product pages, programmatic SEO trees, editorial. Use when writing or updating a landing/marketing page, wiring a campaign lander to an attribution identifier, changing site-wide nav/footer links, touching sitemap/robots/agent-readable surfaces, or auditing a public site's indexing, reachability, and conversion setup.

    Also in 4 projects that use this

  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 4 projects that use this

  • LucasMatuszewskiSkill

    audit-agents

    Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.

    Also in 4 projects that use this

  • +9 more from dzhng

The file

Files
SKILL.md

Audit Performance

Overview

Generate a performance budget audit against Core Web Vitals (LCP, INP, CLS), bundle size, and API latency. Defines thresholds, identifies violations, and provides actionable recommendations for image optimization, code splitting, lazy loading, and caching improvements.

Workflow

  1. Read engineering context -- Scan .chalk/docs/engineering/ for architecture docs, existing performance budgets, and infrastructure configuration. Check the codebase for build configuration (webpack, vite, next.config) and existing performance tooling.
  2. Parse the audit target -- Extract from $ARGUMENTS the page, feature, or endpoint to audit. If unspecified, audit the most critical user-facing page (typically the landing page or main dashboard).
  3. Determine the next file number -- Read filenames in .chalk/docs/engineering/ to find the highest numbered file. The next number is highest + 1.
  4. Define performance budgets -- Set thresholds (use existing budgets from docs if available, otherwise use industry standards):

    MetricGoodNeeds ImprovementPoor
    LCP< 2.5s2.5-4.0s> 4.0s
    INP< 200ms200-500ms> 500ms
    CLS< 0.10.1-0.25> 0.25
    Bundle size (JS)< 200KB gzipped200-350KB> 350KB
    API latency (p95)< 300ms300-1000ms> 1000ms
  5. Analyze the codebase for performance issues -- Review:
    • Bundle: large dependencies, tree-shaking gaps, missing code splitting
    • Images: unoptimized formats, missing lazy loading, no responsive sizes
    • Rendering: layout shifts from dynamic content, render-blocking resources
    • Data fetching: waterfall requests, missing caching, over-fetching
    • API: slow queries, missing indexes, N+1 problems
  6. Report violations -- For each budget exceeded or at risk, document: current value (if measurable from code analysis), threshold, root cause, and recommended fix.
  7. Prioritize recommendations -- Rank fixes by impact (how much improvement) and effort (how hard to implement). Quick wins first.
  8. Write the file -- Save to .chalk/docs/engineering/<n>_performance_audit.md.
  9. Confirm -- Share the file path and highlight the top 3 highest-impact fixes.

Output

  • File: .chalk/docs/engineering/<n>_performance_audit.md
  • Format: Plain markdown with budget table, violations list, and prioritized recommendations
  • First line: # Performance Audit: <Target>

Anti-patterns

  • Auditing without budgets -- "The page is slow" is not actionable. Define thresholds first, then measure against them. Without budgets, there is no pass/fail.
  • Only measuring lab data -- Lab metrics (Lighthouse) and field metrics (CrUX) can differ significantly. Note which measurements are lab-based and recommend field monitoring.
  • Recommendations without priority -- A list of 20 optimizations without ranking overwhelms teams. Prioritize by impact-to-effort ratio and present quick wins first.
  • Ignoring bundle composition -- "Bundle is too large" without identifying which dependencies contribute most is not helpful. Break down the bundle and identify the largest contributors.
  • Missing API latency -- Frontend performance audits that ignore API response times miss half the picture. Include backend latency in the audit scope.

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.