bestdeejay-design/agent-skills / skills/frontend-perfection
frontend-perfection
VerifiedAudit and polish frontend (static HTML/CSS/JS or built SPA) to measurable perfection: real-Chrome Lighthouse >=13 runs (mobile+desktop, no Playwright internals), SEO meta layer, WCAG contrast by computed luminance, heading order, a11y checks (axe-core subset), back-to-top navigation, design tokens (zero raw hex), adaptive checks, OG-image generation, plus Security/Privacy/i18n static coverage (HTTPS/mixed content, CSP, SRI, security headers, noopener, secrets-in-URL, cookie consent, i18n lang/dir/Intl). Front-End Checklist-inspired. Triggers: 'frontend audit', 'perfect the layout', 'lighthouse check', 'make it 100/100/100/100', 'audit the page', 'fix performance', 'contrast check', 'design tokens', 'og image', 'security headers', 'privacy', 'https', 'mixed content', 'CSP', 'SRI', 'i18n', 'internationalization', 'social share meta'.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.7 KB |
| evals/evals.json | config | 598 B |
| readme.ru.md | markdown | 3.0 KB |
| references/canonical-patterns.md | markdown | 5.4 KB |
| scripts/audit.js | script | 9.8 KB |
| scripts/meta_audit.py | script | 31.2 KB |
| scripts/package.json | manifest | 25 B |
| scripts/security_privacy_audit.py | script | 23.8 KB |
| skill.json | config | 2.5 KB |
readme.ru.md
View on GitHub# frontend-perfection (RU)
> Русское описание скилла. Сам скилл (`SKILL.md`, `skill.json`) — на английском.
**Назначение:** аудит и доведение фронтенда (статический HTML/CSS/JS или собранный
SPA) до измеримого совершенства. Скилл построен на **стабильных API**: реальный Chrome
через `chrome-launcher` + Lighthouse Node API (без внутренностей Playwright), точные
расчёты (контраст по вычисленной яркости, а не «на глаз»), отчёт before/after,
привязанный к audit-id.
**Что умеет:**
- **`scripts/audit.js`** — Lighthouse ≥13, mobile+desktop, порог по умолчанию 100,
exit 0/1/2, компактный JSON-отчёт с провалившимися аудитами.
- **`scripts/meta_audit.py`** — офлайн-статический аудит (чистый Python stdlib):
SEO-мета слой, WCAG-контраст, порядок заголовков, **a11y-проверки по правилам
axe-core** (alt у картинок, доступные имена у кнопок/ссылок, label у форм,
валидность ARIA-атрибутов, уникальность landmark'ов), проверка
back-to-top (лого-ссылка наверх или плавающая кнопка со стрелкой), дизайн-токены (ноль raw-hex
вне блока токенов), scroll-padding под фиксированную шапку, адаптивность.
- **OG-image** — безопасная для кадрирования картинка 1200×630 (~640px центральная
зона), смена URL вместо перезаписи (сброс кешей соцсетей).
**Когда применять:** просят «сделай вёрстку идеальной», «подними перформанс»,
«100/100/100/100», «проверь страницу», «audit the page»; нужен OG-image или SEO-мета;
жалуются на контраст, отсутствующие теги, дубли цветов в raw-hex.
**Формат работы:** найти проект → поднять локально (`python3 -m http.server 8377`) →
прогнать `audit.js` (mobile+desktop) и `meta_audit.py` → чинить по audit-id →
повторный аудит до зелёного → отчёт before/after.
**Русские триггеры:** «проверь вёрстку», «довести фронтенд до идеала», «контраст
цветов», «дизайн-токены», «SEO-мета слой» — раньше были триггерами скилла; после
EN-миграции матчинг идёт по английским триггерам и fuzzy-скорингу описаний.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |