perf-audit
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "perf-audit":https://skillpi.com/zh/skills/deepskill-18e1dadb5457ea49b9e1ab7fab680fea1aba4a196ec5d45e5d9e569c031606ff。安装前核对上游来源和版本:https://github.com/Houseofmvps/ultraship。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
运行 Lighthouse 性能审计并自动修复常见问题。用于检查网站性能并对可自动解决的常见问题应用修复措施。
介绍来源: third_party · Houseofmvps · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
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, GlobPerformance 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 neededunused_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
deferorasyncto 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
widthandheightattributes - No preconnect → add
<link rel="preconnect" href="...">for external origins - Font display → add
font-display: swapto @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.
版本历史
-
v2.5.0
GitHub ↗
原版更新说明
## 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 ```
-
v2.3.2
GitHub ↗
原版更新说明
## 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]`
-
v2.3.0
GitHub ↗
原版更新说明
## 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 ```
-
v2.1.2
GitHub ↗
原版更新说明
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.
-
v2.1.1
GitHub ↗
原版更新说明
## 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.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Lighthouse 性能审计及自动修复功能,直接解决网站性能优化的核心痛点
- 覆盖 LCP、TBT、CLS、FCP、SI 等关键性能指标,并提供具体修复建议
- 支持多种常见性能问题的自动化修复,显著提升开发效率
亮点
- description 明确说明使用场景(检查或提升网站性能)
- argument-hint 提供 URL 参数提示,触发条件清晰
- 边界定义明确,不易与其他 Skill 重叠
亮点
- Phase/步骤清晰(6个步骤),逻辑完整
- 包含端到端示例和具体修复方案
- frontmatter完整,文档结构规范
亮点
- 工具来源明确(lighthouse-runner.mjs),参数正确
- 覆盖主要异常场景(无Chrome、超时、无dev server等)
- 提供优雅降级方案,确保在各种环境下都能提供有用反馈
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。