一键导入
perf-audit
Run Lighthouse performance audit with auto-fix for common issues. Use when user wants to check or improve site performance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Lighthouse performance audit with auto-fix for common issues. Use when user wants to check or improve site performance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build a regression + eval harness for AI-written code and AI features. Generates characterization tests that lock current behavior before a refactor, scaffolds a Promptfoo eval suite for chatbots/RAG/classifiers, and wires it into the ship-gate. Use when the user wants evals, regression tests for AI code, to stop AI features drifting, or to test an LLM feature.
Run security audit — dependency vulnerabilities, secret scanning, OWASP pattern detection, HTTP headers. Use when user wants to harden their project.
Accessibility audit + auto-fix (WCAG 2.2 A/AA). Scans built/static HTML for screen-reader, keyboard, and structure failures, fixes the deterministic ones, and escalates to a rendered scan for contrast and focus. Use when the user wants to check or improve accessibility, fix WCAG issues, or pass an a11y review.
Turn the /ship scorecard into a blocking, config-as-code quality gate. Sets per-category score thresholds, hard-fails on leaked secrets or critical findings, and wires the gate into a pre-push hook and CI so nothing below the bar merges. Use when the user wants a merge gate, CI quality gate, pre-push check, or to enforce ship-readiness.
Post-deploy canary monitoring — checks site health, detects regressions, monitors for errors after deployment. Use after deploying to verify production is healthy.
Code review with principal-engineer-level depth. Reviews for correctness, performance, security, maintainability, and architecture. Use when completing tasks, reviewing PRs, or before merging.
| name | perf-audit |
| description | Run Lighthouse performance audit with auto-fix for common issues. Use when user wants to check or improve site performance. |
| argument-hint | <url> |
| allowed-tools | Bash, Read, Edit, Grep, Glob |
Run Lighthouse against the project and fix performance issues.
node ${CLAUDE_PLUGIN_ROOT}/tools/lighthouse-runner.mjs <url>
Parse JSON output for scores and opportunities.
Present all four Lighthouse scores:
Report Core Web Vitals with targets:
lcp_elementBefore fixing, identify what's actually causing problems:
LCP too high? Check lcp_element in results — fix THAT specific element:
<img>: preload it, use WebP, add fetchpriority="high"<link rel="preload">CLS too high? Check diagnostics for layout shift sources:
Unused resources? Check wasted_resources:
unused_js_kb > 100KB → code splitting or tree shaking neededunused_css_kb > 50KB → purge unused CSS (PurgeCSS, Tailwind purge)Third-party scripts slow? Check third_party_impact:
For each opportunity, apply fixes using Edit tool:
Performance fixes (high impact first):
defer or async to non-critical scripts<link rel="preload" as="image" href="...">loading="lazy" to below-fold imageswidth and height attributes<link rel="preconnect" href="..."> for external originsfont-display: swap to @font-face declarationsAccessibility fixes:
<label> elements<main>, <nav>, <footer>Fix, don't just audit. Identify the specific elements causing problems. Apply every automated fix possible. For build-tool changes (code splitting, tree shaking), provide exact config recommendations.