Perf Audit logo

Perf Audit

Community
helderberto
perf-audit

Audit frontend bundle size and Core Web Vitals risks. Use when asked to "audit performance", "analyze bundle", "check bundle size", "check Core Web Vitals", or find frontend bottlenecks. Don't use for backend performance, database queries, or diagnosing a specific slowdown (/debug).

Overview

Publisherhelderberto
Repositoryagent-skills
Skill nameperf-audit
Stars
20
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by helderberto on GitHub. Read the source before you install it.

Installation

Install the Perf Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/helderberto/agent-skills/tree/main/skills/perf-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/helderberto/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/perf-audit .claude/skills/perf-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Perf Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Perf Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Perf Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Performance Audit

Workflow

  1. Detect build tool from package.json (vite, webpack, next, rollup)

  2. Run the production build via the project's task runner (auto-detect from package.json).

  3. Analyze the build output — non-interactive only. Never launch a browser or a long-running server in an audit; those hang an automated run. Prefer, in order:

    • Measure the emitted files directly: for each file in the output dir (e.g. dist/assets/*.js), report raw + gzipped size — gzip -c <file> | wc -c. This always works and needs no extra tooling.
    • Per-module breakdown, as a static artifact (not a server), written under $TMPDIR (else /tmp) and never the working tree, where the next commit would sweep it in. Print the path:
      • Vite/Rollup: npx source-map-explorer 'dist/assets/*.js', or add rollup-plugin-visualizer configured to emit JSON/HTML to a file
      • webpack/Next.js: npx webpack-bundle-analyzer -m static -r "${TMPDIR:-/tmp}/report.html" <stats-file> (writes a file; do not use the default server mode)
    • npx vite-bundle-visualizer opens a browser and blocks — only suggest it to the user for manual exploration; do not run it here.
  4. Check package.json for known heavy packages

  5. Check the source for the Core Web Vitals risks below. Detect the framework first; recommend only its idioms.

  6. Report findings: size impact for the bundle, potential impact for source risks

Compare against standard industry thresholds; report gzipped sizes.

Core Web Vitals risks

Read the source for these; each is a potential impact until measured.

  • LCP: hero image or heading not lazy-loaded; LCP image in the initial HTML with fetchpriority="high"; no <head> scripts without defer/async; critical fonts preloaded
  • CLS: images, iframes, and embeds reserve space (width/height or aspect-ratio); nothing injected above existing content; fonts with font-display and matched fallbacks
  • INP: no long synchronous work in event handlers; long loops yield (scheduler.yield(), setTimeout fallback); heavy work in a worker
  • Rendering: long lists virtualized; animations on transform/opacity; no read-then-write layout loops; memoization only where it pays
  • Network: independent requests in parallel, not sequential awaits; no over-fetching; lists paginated; hashed static assets cached long; heavy third-party widgets behind a facade

Output format

  • Bundle summary: total size / gzipped size vs budget
  • Large chunks: name + size + % of total
  • Heavy deps: package + size + lighter alternative
  • Quick wins: sorted by estimated savings
  • Core Web Vitals: LCP, INP, CLS — value + source, or not measured
  • Source risks: file:line, the metric at risk, the fix

Rules

  • Report gzipped sizes (what the browser downloads)
  • Never auto-change dependencies -- report and suggest only
  • Never state an LCP, INP, or CLS value without a measurement the user provided (Lighthouse or PageSpeed JSON, CrUX data, a DevTools trace); label it lab or field
  • Skip micro-optimizations with no plausible effect on a Core Web Vital or the bundle

Error Handling

  • Build fails -- report the error, skip the bundle steps, still run the source checks
  • No build output found -- run production build first
  • Build tool unrecognized -- scan package.json for heavy packages, then run the source checks

Frequently asked questions

What does the Perf Audit AI skill do?

Audit frontend bundle size and Core Web Vitals risks. Use when asked to "audit performance", "analyze bundle", "check bundle size", "check Core Web Vitals", or find frontend bottlenecks. Don't use for backend performance, database queries, or diagnosing a specific slowdown (/debug).

Why use Perf Audit on TypingMind?

Because you install it once and use it with any model. Perf Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Perf Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/helderberto/agent-skills/tree/main/skills/perf-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Perf Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Perf Audit?

As many as you like. As long as a model supports skills, you can use Perf Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Perf Audit AI skill free?

Yes. It is published on GitHub by helderberto under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇