perf-audit

Run a Lighthouse performance audit and automatically fix common issues. Used to check website performance and apply fixes for common problems that can be resolved automatically.

Last repository push
GitHub Stars
124
Forks
13
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "perf-audit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-18e1dadb5457ea49b9e1ab7fab680fea1aba4a196ec5d45e5d9e569c031606ff. Verify the upstream source and version against https://github.com/Houseofmvps/ultraship before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Run a Lighthouse performance audit and automatically fix common issues. Used to check website performance and apply fixes for common problems that can be resolved automatically.

0 Downloads

Introduction source: third_party · Houseofmvps · 0.0.1 Reference

SkillPi interpretation

Tasks
Run Lighthouse performance audit with auto-fix for common issues. Use when user wants to check or improve site performance.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
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

Performance Audit

Run Lighthouse against the project and fix performance issues.

Process

Step 1: Find the URL

  • Check if dev server is running (try common ports: 3000, 5173, 4321, 8080)
  • Check package.json scripts for dev/start commands
  • Ask user for URL if not auto-detected
  • If no server running, suggest starting one first

Step 2: Run Lighthouse

node ${CLAUDE_PLUGIN_ROOT}/tools/lighthouse-runner.mjs <url>

Parse JSON output for scores and opportunities.

Step 3: Report Scores & Core Web Vitals

Present all four Lighthouse scores:

  • Performance (target 90+)
  • Accessibility (target 90+)
  • Best Practices (target 90+)
  • SEO (target 100)

Report Core Web Vitals with targets:

  • LCP (Largest Contentful Paint): target <2.5s — report the LCP element from lcp_element
  • TBT (Total Blocking Time): target <200ms — proxy for INP
  • CLS (Cumulative Layout Shift): target <0.1
  • FCP (First Contentful Paint): target <1.8s
  • SI (Speed Index): target <3.4s

Step 4: Identify Root Causes

Before fixing, identify what's actually causing problems:

LCP too high? Check lcp_element in results — fix THAT specific element:

  • If it's an <img>: preload it, use WebP, add fetchpriority="high"
  • If it's text: check web font loading, add font-display: swap
  • If it's a background image: preload via <link rel="preload">

CLS too high? Check diagnostics for layout shift sources:

  • Images without width/height → add dimensions (scanner already checks this)
  • Dynamic content injected above fold → reserve space with CSS
  • Web fonts causing FOUT → add font-display: optional or swap

Unused resources? Check wasted_resources:

  • unused_js_kb > 100KB → code splitting or tree shaking needed
  • unused_css_kb > 50KB → purge unused CSS (PurgeCSS, Tailwind purge)

Third-party scripts slow? Check third_party_impact:

  • Analytics blocking >100ms → defer/async load
  • Ad scripts blocking >200ms → lazy load below fold
  • Chat widgets → load on user interaction, not page load

Step 5: Apply Fixes

For each opportunity, apply fixes using Edit tool:

Performance fixes (high impact first):

  • Render-blocking resources → add defer or async to non-critical scripts
  • Unused JavaScript → recommend code splitting, dynamic imports, tree shaking
  • Unused CSS → recommend PurgeCSS or Tailwind purge config
  • LCP image not preloaded → add <link rel="preload" as="image" href="...">
  • Images not lazy-loaded → add loading="lazy" to below-fold images
  • Images without dimensions → add width and height attributes
  • No preconnect → add <link rel="preconnect" href="..."> for external origins
  • Font display → add font-display: swap to @font-face declarations
  • Third-party scripts → defer non-essential scripts, lazy load on interaction

Accessibility fixes:

  • Missing alt text (also caught by SEO scanner)
  • Missing form labels → add <label> elements
  • Low contrast → adjust colors
  • Missing landmark regions → add <main>, <nav>, <footer>

Step 6: Graceful Degradation

  • No Chrome: report "Chrome needed for Lighthouse. Install Chrome or Chromium."
  • Lighthouse timeout: return partial results with warning
  • No dev server: suggest starting one, or test against production URL

Key Principle

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.

Version history

  1. v2.5.0 GitHub ↗
    Original release notes

    ## Elite SEO Intelligence — Top 1% Operator Patterns Based on real top 1% SEO operator methodology. Every feature is designed to provide technical foundation to ruthlessly help rank sites and get cited in AI search (ChatGPT, Perplexity, Copilot, Gemini, AI Overviews). ### New Commands **keyword-intelligence.mjs** (12 commands, was 10) - `anomalies` — Detects low-position high-CTR keywords (Google flags these as strongest opportunities) + high-position low-CTR underperformers - `cross-reference` — Joins GSC page data with GA4 conversions to find 4 critical buckets: converting-but-underexposed (highest ROI), ranking-but-not-converting (funnel problem), scalable pages (double down), CTR problems - `--brand=term1,term2` — Separates brand vs non-brand queries across ALL commands. Non-brand is all that matters for SEO growth. - Position band % distribution (1-3, 4-10, 11-20, 21+) in analyze output **ga4-client.mjs** (12 commands, was 10) - `ai-traffic` — Tracks ChatGPT (utm_source=chatgpt.com), Perplexity, Microsoft Copilot, Gemini, Claude, and You.com referral traffic with conversion rates - `organic` — Organic-only overview with key event rates per landing page - `--organic` flag — Filters top-pages and landing-pages to organic search only - Key event rate per session + average engagement time per page **bing-webmaster.mjs** (11 commands, was 6) - `indexnow` — Instant IndexNow push for changed URLs (Bing + Yandex + partners) - `keyword-research` — Keyword suggestions from Bing - `backlinks` — Backlink counts and sample link data - `site-scan` — Bing's technical SEO scan - `url-inspection` — Crawl/index status from Bing **seo-scanner.mjs** - Snippet restriction detection: `nosnippet`, `max-snippet`, `data-nosnippet` — Google says restrictive preview controls limit AI feature eligibility ### Updated SEO Strategy SKILL - AI Traffic Measurement phase - CTR Anomaly Analysis framework - Non-Brand Position Band Tracking (weekly KPIs) - GSC ↔ GA4 Cross-Reference (the "money move") - IndexNow for instant Bing/Copilot discovery - AI Slop Prevention guardrails - Ruthless weekly KPI stack (14 metrics, not 50) ### Install ``` npm install -g ultraship ```

  2. v2.3.2 GitHub ↗
    Original release notes

    ## Security Fixes ### CRITICAL — IPv6-Mapped IPv4 SSRF Bypass `validateUrl()` in `tools/lib/security.mjs` only matched IPv4 dotted-decimal patterns. Addresses like `::ffff:127.0.0.1` and `::ffff:169.254.169.254` bypassed all SSRF protection. Now detects and blocks IPv6-mapped IPv4 addresses in both dotted and hex formats. ### HIGH — Redirect-Based SSRF in health-check.mjs `health-check.mjs` followed HTTP redirects without re-validating the target URL. A public URL redirecting to an internal IP would bypass SSRF protection. Now validates every redirect hop. ### MEDIUM — Guard Hook Bypass Hardening `guard-bash.sh` now blocks additional evasion techniques: - Base64-encoded commands piped to shell (`base64 -d | bash`) - Remote scripts piped to shell (`curl ... | sh`, `wget ... | sh`) - Python/Perl destructive one-liners (`python3 -c "shutil.rmtree(...)"`) - xargs chaining destructive commands (`xargs rm -rf`, `xargs git push --force`) ### LOW — MCP Server Version Pinning Pinned `@upstash/[email protected]` and `@playwright/[email protected]` (previously `@latest`), eliminating supply chain risk from automatic upgrades. ## Stats - 180 tests passing - 0 dependencies with known vulnerabilities - All IPv6 SSRF bypass vectors verified blocked (9/9 test cases) **Full install:** `npm install -g [email protected]`

  3. v2.3.0 GitHub ↗
    Original release notes

    ## What's New 6 new features inspired by analyzing [gstack](https://github.com/garrytan/gstack) and adapting the best patterns for indie SaaS builders. ### New Skills (6) | Skill | Command | Description | |---|---|---| | **Sprint Workflow** | `/sprint` | Structured pipeline: plan → build → test → review → ship → verify. Skills chain into each other with artifacts. | | **Safety Guardrails** | `/guard` | PreToolUse hooks block destructive commands (`rm -rf`, `DROP TABLE`, `git push --force`, `git reset --hard`). Optional directory freeze restricts edits. | | **Investigation** | `/investigate` | Root cause debugging with module freeze. Iron law: no fixes without investigation. Scoped analysis, evidence-based hypotheses. | | **Project Learnings** | `/learn` | Save, search, prune, export structured knowledge that compounds across sessions. Debugging insights, deployment gotchas, architecture decisions. | | **Sprint Retrospective** | `/retro` | Analyzes git velocity, commit patterns (features vs fixes), test health, hot files, shipping cadence. Generates insights and recommendations. | | **Canary Monitoring** | `/canary` | Post-deploy health verification. Checks HTTP status, response time, error patterns. Compares against baseline for regression detection. | ### New Tools (3) - `learnings-manager.mjs` — CRUD for project learnings (save/search/list/prune/export) - `canary-monitor.mjs` — Post-deploy canary with baseline regression detection - `retro-analyzer.mjs` — Sprint retrospective analyzer (git velocity, patterns, test health) ### New Agent (1) - `canary-monitor` — Dispatched by `/canary` for post-deploy verification ### New Hooks (2) - `guard-bash.sh` — PreToolUse hook for blocking destructive Bash commands - `guard-edit.sh` — PreToolUse hook for directory freeze enforcement ### Numbers | | Before | After | |---|---|---| | Skills | 33 | **39** | | Tools | 30 | **33** | | Agents | 10 | **11** | | Commands | 28 | **34** | | Tests | 155 | **180** | All 180 tests passing. 1 dependency. Node.js ESM. MIT. ```bash claude plugin install ultraship # or npm install -g ultraship ```

  4. v2.1.2 GitHub ↗
    Original release notes

    README rewritten as standard developer tool documentation. Removed: narrative "your week without Ultraship" section, marketing taglines, pitch framing, dramatic copy. Added: structured tool reference tables (29 tools in 7 categories), full command reference (27), skill categorization (32), architecture section with directory layout, inline security summary. Motivated by PR feedback on awesome-claude-code-toolkit: "comes across as marketing-heavy rather than a grounded technical tool." The README now reads like ESLint or Turborepo documentation — what it is, how to install, what every tool/command/skill does, how it's built, how to contribute.

  5. v2.1.1 GitHub ↗
    Original release notes

    ## Frontend Design Skill Upgraded to Product Designer + UI/UX Expert Level The `frontend-design` skill now combines three disciplines: ### Product Design Thinking (new) - User intent analysis (what is the ONE primary action?) - Information hierarchy (5-second test) - Conversion design (CTA placement, social proof, value proposition above fold) - User psychology (cognitive load, loss aversion, anchoring, social proof, progress indication) ### UX Discipline (new) - Interaction design (4 states for every element: default, hover, active, disabled) - Form design (single column, labels above fields, inline validation on blur, descriptive submit buttons) - Accessibility (WCAG AA contrast, keyboard nav, screen readers, 44px touch targets, prefers-reduced-motion) - Responsive design (mobile-first, 4 breakpoints, touch vs hover, fluid typography) - Performance as UX (1s = instant, 3s = slow, skeleton screens, lazy loading) - Navigation patterns (breadcrumbs, max 7 items, mobile thumb zone) ### Industry-Specific Design Rules (new) 10 product types with specific tone guidance and anti-patterns: - SaaS/DevTools, Fintech/Banking, Healthcare, E-commerce, Education, Creative/Portfolio, Enterprise/B2B, Social/Community, Legal/Government, Kids/Gaming - Example: banking apps get "trust, stability, clarity" — NEVER playful design or AI purple gradients ### Design System Specifics (new) - Complete 14-token color architecture (primary through destructive, with on-* contrast pairs) - Animation timing: 200-300ms enter, 120-200ms exit, 30-50ms stagger, spring physics over cubic-bezier - GPU-composited properties only (opacity + transform — never animate width/height/margin) - 8px spacing grid for all margins, padding, and gaps - Line height rules: 1.5 body, 1.2-1.3 headings ### Expanded Quality Checklist 25 items across 5 categories (Functionality, Accessibility, Responsiveness, Visual Consistency, Production Readiness) — up from 10 items. ### Page-Specific UX Patterns Landing pages, dashboards, settings pages, onboarding flows, pricing pages — each with specific design rules a top product designer would apply. All knowledge is inline in the skill file. No Python scripts. No CSV databases. No new dependencies. Pure design expertise, zero bloat.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供 Lighthouse 性能审计及自动修复功能,直接解决网站性能优化的核心痛点
  • 覆盖 LCP、TBT、CLS、FCP、SI 等关键性能指标,并提供具体修复建议
  • 支持多种常见性能问题的自动化修复,显著提升开发效率
Trigger Precision95/100

Highlights

  • description 明确说明使用场景(检查或提升网站性能)
  • argument-hint 提供 URL 参数提示,触发条件清晰
  • 边界定义明确,不易与其他 Skill 重叠
Structure and Standards95/100

Highlights

  • Phase/步骤清晰(6个步骤),逻辑完整
  • 包含端到端示例和具体修复方案
  • frontmatter完整,文档结构规范
Execution Reliability95/100

Highlights

  • 工具来源明确(lighthouse-runner.mjs),参数正确
  • 覆盖主要异常场景(无Chrome、超时、无dev server等)
  • 提供优雅降级方案,确保在各种环境下都能提供有用反馈
Evidence Verifiability (mean of the first four)95/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.