performance
БесплатноБез исполняемых скриптовНе проверенPerformance patterns and anti-patterns for ethereum.org covering TTFB, LCP, INP, CLS, bundle size, build memory, and RSC payload. Use when diagnosing a perf…
от ethereum★ 6 005 звёзд на GitHubОб этом скилле
Performance Knowledge
Knowledge base. No runtime actions; authoring conventions for maintainers below. Read the relevant references/*.md files directly via the Read tool.
Two entry points
- Diagnosing an existing regression →
references/diagnose-table.md(symptom → bucket). - Reviewing a proposed change before merge →
references/review-checklist.md(diff pattern → rules to load).
Cross-cutting anti-patterns
These look right but aren't. Check every review or diagnose pass against this table.
| Looks like… | Actually… |
|---|---|
Adding CDN-Cache-Control to fix TTFB |
Netlify strips them; CF ignores due to max-age=0. |
Finite-revalidate getter on a route reading public/content |
Turns the route into ISR → runtime 404s. See edge-caching.md. |
await import(`.../${locale}/${ns}.json`) |
Webpack enumerates all combinations → OOM. Use fs.readFile. |
Adding a useSession / cookies() in root layout |
Every route becomes dynamic. Edge caching dies silently. |
preload: true via getImageProps() on manual <picture> |
fetchPriority attribute is not set; add it manually. |
Bumping revalidate to hourly to "fix staleness" |
Increases edge miss rate. Keep daily; add client /api/* for freshness. |
| Mocking DB/content in perf tests | Perf wins must be measured against real prod build (pnpm build && start). |
Removing common.json keys without audit |
Lookups of removed keys silently render the bare key (fallback). Grep the key across src/ and app/ first. |
File map
| Topic | File |
|---|---|
| Symptom → bucket routing | references/diagnose-table.md |
| Diff pattern → rules routing | references/review-checklist.md |
| TTFB, edge caching, CDN | references/edge-caching.md |
| Bundle size, code splitting, RSC payload | references/bundle.md |
| Build OOM, ENOSPC, file tracing | references/build.md |
| INP, main-thread work | references/inp.md |
| LCP, images | references/images.md |
For data-fetching patterns (Trigger.dev tasks, Netlify Blobs, src/lib/data caching, internal /api/* routes, fetcher retries), use the data-layer skill instead.
Conventions for adding rules
- One topic per file; no content duplication across files.
- Cite a PR (
PR #N) when a rule comes from a specific shipped change. Add a SHA only when no PR exists. - Forward-looking ("do this, avoid that"). Keep entries prescriptive — no postmortems or incident narratives.
- New review check? Add a row to
review-checklist.mdAND the matching bucket file. Don't restate the rule inline.
Установить performance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл performance?
Performance patterns and anti-patterns for ethereum.org covering TTFB, LCP, INP, CLS, bundle size, build memory, and RSC payload. Use when diagnosing a perf regression or reviewing proposed code changes for perf landmines.
Как установить скилл performance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл performance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic