claude-code-workflow: Skill for Claude Code

.claude/skills/ext-perf-audit/SKILL.md

ext-perf-audit is a skill for Claude Code from Caspian-Sun/claude-code-workflow. It costs 54 tokens per session (692 once invoked), scanned A, original, MIT.

A frontend performance-audit skill that examines build files and source code for bundle size, React rendering, network loading, memory leaks, and initial page load.

In plain words
What is it for?
Use it for bundle-size optimization, page-jank analysis, initial-load work, or a broader performance check of a frontend page or module.
Why use it?
It turns common causes of slow pages or janky interactions into measured findings and review points.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is Caspian-Sun/claude-code-workflow's own configuration. It tells Claude Code how to work on claude-code-workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Caspian-Sun/claude-code-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/skills/ext-perf-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ext-perf-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/caspian-sun/claude-code-workflow/ext-perf-audit/github.svg)](https://agentmods.dev/skills/caspian-sun/claude-code-workflow/ext-perf-audit)
Your own site
<a href="https://agentmods.dev/skills/caspian-sun/claude-code-workflow/ext-perf-audit"><img src="https://agentmods.dev/badge/skills/caspian-sun/claude-code-workflow/ext-perf-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ext-perf-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/caspian-sun/claude-code-workflow/ext-perf-audit"><img src="https://agentmods.dev/badge/skills/caspian-sun/claude-code-workflow/ext-perf-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00692
Opus 5.5 $0.00022 $0.00277
Sonnet 5.5 $0.00011 $0.00138
Haiku 4.5 $0.00005 $0.00069

Measured 2mo ago against content hash da12510abb79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ext-perf-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/bundle-size.sh, scripts/heavy-deps.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ext-perf-audit/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ext-perf-audit — Performance Audit

You are now a frontend performance optimization expert. Perform a performance audit on the specified component / page / module.

Execution Approach

Run scripts to gather data first, then use AI for static analysis. Scripts handle measurement; AI handles pattern recognition.

Step 1: Build Artifact Analysis (if dist exists)

bash .claude/skills/ext-perf-audit/scripts/bundle-size.sh

Script output:

  • Total size + chunks sorted by size
  • List of JS files larger than 100KB
  • List of asset files larger than 500KB (images / fonts)

AI identifies:

  • Warnings for any single chunk > 500KB
  • Images not compressed / not converted to WebP
  • No route-level code splitting (e.g., an oversized index.*.js)

Step 2: Dependency Size Quick Scan

bash .claude/skills/ext-perf-audit/scripts/heavy-deps.sh

The script lists the top 20 largest packages in node_modules. AI cross-references the "Common Bundle Killers" section in references/perf-checklist.md and provides recommendations.

Step 3: Static Code Scan (AI reads source)

Check the directory specified by $ARGUMENTS across the 5 dimensions in references/perf-checklist.md:

  1. Bundle size — full-library imports / duplicate dependencies / console.log / missing lazy loading
  2. Rendering performance — missing memo/useMemo/useCallback / missing keys / new references created in render path / state hoisted too high / JS doing CSS's job
  3. Network performance — serial requests that could be parallel / missing caching / image formats / missing prefetch
  4. Memory — useEffect missing cleanup / closures holding large objects / no virtual scrolling
  5. Initial load — blocking the critical path / missing Skeleton / waterfall requests

Output Format

🔴 Critical (impacts user experience):
- [file:line] Issue description
  Impact: Estimated impact (e.g. +800ms on initial load / bundle +400KB)
  Fix: Specific solution + code example

🟡 Moderate (worth optimizing):
- [file:line] Issue description
  Fix: Solution

🔵 Suggestion (nice to have):
- [file:line] Issue description

📊 Overall: X/10, one-sentence summary

Read the full file on GitHub · 79 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 79 lines · 54 tokens per session scan A da12510abb79

Subscribe to this mod's changes

ext-perf-audit is a skill published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 692 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories