agentleFS
ironbee-aiironbee-ai/ironbee-devtools-skills/skills/performance-audit/SKILL.md

performance-audit

Skill3 starsChanged 7 months agoMITView on GitHub

Analyze web and backend performance using Web Vitals, network timing, and Node.js metrics. Use when the user asks about page performance, load times, Core Web Vitals (LCP, CLS, INP), slow pages, backend bottlenecks, or SEO performance factors.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-design and security-audit.

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.
  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When TTFB or API latency suggests backend bottlenecks, inspect the Node.js process:

    line 100
  2. Distinctive:

    Wait for network idle: before measuring

    line 126

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

Analyze web page performance using Web Vitals and network timing metrics.

When to Use

This skill activates when:

  • User asks about page performance or speed
  • User wants to optimize load times
  • User mentions slow page, slow API, or poor user experience
  • User needs Core Web Vitals metrics
  • User asks about backend bottlenecks or TTFB
  • User asks about SEO performance factors

Capabilities

Web Vitals Analysis

ironbee-browser-devtools-cli o11y get-web-vitals
ironbee-browser-devtools-cli --json o11y get-web-vitals
ironbee-browser-devtools-cli --json o11y get-web-vitals --wait-ms 3000
ironbee-browser-devtools-cli --json o11y get-web-vitals --include-debug

Network Performance

ironbee-browser-devtools-cli --json o11y get-http-requests
ironbee-browser-devtools-cli --json o11y get-http-requests --resource-type script
ironbee-browser-devtools-cli --json o11y get-http-requests --resource-type stylesheet
ironbee-browser-devtools-cli --json o11y get-http-requests --status '{"min":400}'

Visual Analysis

ironbee-browser-devtools-cli content take-screenshot --name "above-fold"
ironbee-browser-devtools-cli content take-screenshot --name "full-page" --full-page

Performance Thresholds

MetricGoodNeeds WorkPoor
LCP≤2.5s2.5-4s>4s
INP≤200ms200-500ms>500ms
CLS≤0.10.1-0.25>0.25
TTFB≤800ms800-1800ms>1800ms
FCP≤1.8s1.8-3s>3s

Audit Workflow

SESSION="--session-id perf-audit"

# 1. Navigate to page
ironbee-browser-devtools-cli $SESSION navigation go-to --url "https://example.com"

# 2. Wait for page to settle
ironbee-browser-devtools-cli $SESSION sync wait-for-network-idle

# 3. Get Web Vitals
ironbee-browser-devtools-cli $SESSION --json o11y get-web-vitals --wait-ms 2000

# 4. Analyze network requests
ironbee-browser-devtools-cli $SESSION --json o11y get-http-requests

# 5. Check for console errors
ironbee-browser-devtools-cli $SESSION --json o11y get-console-messages --type warning

# 6. Take screenshot for reference
ironbee-browser-devtools-cli $SESSION content take-screenshot --name "performance-audit"

# 7. Cleanup
ironbee-browser-devtools-cli session delete perf-audit

Detailed Analysis

Check Large Resources

# Filter by type (one at a time: document, stylesheet, image, script, xhr, fetch, etc.)
ironbee-browser-devtools-cli --json o11y get-http-requests --resource-type script
ironbee-browser-devtools-cli --json o11y get-http-requests --resource-type stylesheet
ironbee-browser-devtools-cli --json o11y get-http-requests --resource-type image

Check Slow Requests

ironbee-browser-devtools-cli --json o11y get-http-requests
# Look for requests with high timing values

Backend Performance (ironbee-node-devtools-cli)

When TTFB or API latency suggests backend bottlenecks, inspect the Node.js process:

# Connect to API/server process
ironbee-node-devtools-cli --session-id perf debug connect --pid 12345

# Tracepoint on slow handler to capture call context
ironbee-node-devtools-cli --session-id perf debug put-tracepoint \
  --url-pattern "routes/heavy.ts" \
  --line-number 30

Common Issues

  • Large unoptimized images
  • Render-blocking CSS/JS
  • Too many HTTP requests
  • Slow server response (TTFB)
  • Layout shifts from dynamic content
  • Uncompressed resources
  • Missing caching headers
  • Third-party scripts blocking main thread

Best Practices

  1. Run multiple times for consistent results
  2. Wait for network idle before measuring
  3. Use --wait-ms for LCP/CLS to settle
  4. Check network requests for slow/large resources
  5. Take screenshots at different load stages
  6. Test on different network conditions (throttle if needed)
  7. Compare before/after for optimization validation

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.