web-performance-seo
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 "web-performance-seo" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f073960b0f4d6e5e5b1e48619826d939f44706390429f7db1ec1867bb930629b. Verify the upstream source and version against https://github.com/ZhanlinCui/Agent-Skills-Hunter 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
Fix PageSpeed Insights/Lighthouse accessibility '!' errors caused by contrast audit failures, covering scenarios such as CSS filters, OKLCH/OKLAB color spaces, low opacity, gradient text, and image backgrounds. Used for accessibility-focused SEO and performance debugging and fixes.
Introduction source: third_party · ZhanlinCui · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Fix PageSpeed Insights/Lighthouse accessibility "!" errors caused by contrast audit failures (CSS filters, OKLCH/OKLAB, low opacity, gradient text, image backgrounds). Use for accessibility-driven SEO/performance debugging and remediation.
- Audience
- PSI/Lighthouse accessibility shows "!" or error instead of a numeric score color-contrast audit errors or getImageData failures Need to improve accessibility signals that impact SEO
- Testing
- Not tested
Browse files
Frontmatter
name: web-performance-seo
description: Fix PageSpeed Insights/Lighthouse accessibility "!" errors caused by contrast audit failures (CSS filters, OKLCH/OKLAB, low opacity, gradient text, image backgrounds). Use for accessibility-driven SEO/performance debugging and remediation.Web Performance SEO: Accessibility Contrast Error Fix
When to use
- PSI/Lighthouse accessibility shows "!" or error instead of a numeric score
- color-contrast audit errors or getImageData failures
- Need to improve accessibility signals that impact SEO
Workflow
- Reproduce
- Run Lighthouse or PSI; capture failing audit names.
- Scan code for common triggers
- CSS filters/backdrop blur, mix-blend-mode
- OKLCH/OKLAB colors
- Low opacity backgrounds (< 0.4)
- Gradient text with color: transparent
- Text over images without opaque overlays
- Fix in priority order
- Remove filters/blend modes
- Convert OKLCH/OKLAB to HSL/RGB
- Raise opacity thresholds
- Add solid-color fallback for gradient text
- Add overlay behind text on images
- Verify locally with Lighthouse/axe
- Verify in PSI after deployment
Fast scan commands
rg -n "backdrop-blur|filter:|mix-blend-mode" .
rg -n "oklch|oklab" .
rg -n "/10|/20|/30|opacity-25|opacity-0" .
rg -n "background-clip.*text|color.*transparent" .
Fix patterns
Remove filters (critical)
// Before
<div className="bg-card/50 backdrop-blur-sm">...</div>
// After
<div className="bg-card/80">...</div>
Convert OKLCH/OKLAB to HSL/RGB
/* Before */
:root { --primary: oklch(0.55 0.22 264); }
/* After */
:root { --primary: hsl(250, 60%, 50%); }
Raise opacity thresholds
- Backgrounds >= 0.4 (prefer >= 0.6)
- Replace /10 -> /40, /20 -> /40, /30 -> /60
Gradient text fallback
.title { color: #111111; }
@media (prefers-contrast: no-preference) {
.title.with-gradient {
background: linear-gradient(90deg, #0ea5e9, #6366f1);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
}
@media (forced-colors: active) {
.title.with-gradient { background: none; color: CanvasText; }
}
Overlay for text on images
<div className="relative">
<img src="/hero.jpg" alt="Hero" />
<div className="absolute inset-0 bg-black/60"></div>
<h1 className="relative text-white">Title</h1>
</div>
Acceptance criteria
- Accessibility score is numeric (not "!")
- color-contrast audit passes or lists actionable items
- Contrast ratios >= 4.5:1 for normal text, >= 3:1 for large text
Notes
- "!" indicates audit failure, not a low score.
- Always test locally before waiting for PSI updates.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对 PSI/Lighthouse 无障碍访问对比度问题的具体修复方案
- 覆盖多种常见触发场景(CSS filters, OKLCH/OKLAB, low opacity, gradient text, image backgrounds)
- 提供可落地的技术命令和代码示例
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易与其他 Skill 重叠
- description 位于顶层 frontmatter,内容完整
Highlights
- Phase/步骤清晰,有出口条件
- 包含端到端示例
- frontmatter 完整
- 单文件长度适中
Highlights
- 工具来源明确
- 参数正确
- 覆盖主要异常场景
- 不可逆操作有确认机制
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.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.