# Perf

> Static performance hints (large images, missing img dimensions, no loading=lazy, sync script tags) plus optional Lighthouse JSON report ingestion that surfaces failing audits ranked by potential ms savings. Use when the user wants to audit web performance or process a Lighthouse report. Dragoon does NOT run Lighthouse itself - generate the report with `npx lighthouse <url> --output json --output-path lh.json` and pass --lighthouse. Run as `node ~/.claude/skills/dragoon/skills/perf/scripts/perf.js [--lighthouse path]`.

- Skill: `dragoon0x/perf` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dragoon0x/perf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dragoon0x/perf/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: dragoon0x (https://skillmd.com/u/dragoon0x)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dragoon0x/perf

---


# /perf

Two halves: static hints from your codebase, and parsing of Lighthouse JSON reports.

## When to use

- The user wants to audit web performance
- After running Lighthouse, to surface the most impactful audits
- Before launch, to catch image and script issues early

## Static rules

- `perf-001` large-image (>500KB) (medium)
- `perf-002` img-missing-dimensions causes CLS (low)
- `perf-003` img-without-loading-lazy below the fold (low)
- `perf-004` sync-script-tag blocks parsing (medium)

## Lighthouse ingestion

```
npx lighthouse https://example.com --output json --output-path lh.json
dragoon perf --lighthouse lh.json
```

Output: scores per category, core web vitals (LCP/CLS/TBT/INP/FCP/SI), and the top 6 failing audits ranked by ms savings.

## Run it

```
dragoon perf                                # static only
dragoon perf --lighthouse lh.json           # add lighthouse summary
dragoon perf --severity medium              # filter
dragoon perf --json                         # CI mode
```

