Логотип Frontend Engineering

Frontend Engineering

Спільнота
d-padmanabhan
frontend-engineering

Framework-agnostic frontend architecture playbook. Workflows for picking rendering (SSG / SSR / SPA / ISR), setting bundle budgets, choosing state management (local / server / global), Core Web Vitals tracking + INP debugging, accessibility floor enforcement, testing pyramid, and supply-chain security. Use when designing a new frontend project, auditing an existing one, picking between React / Vue / Svelte / Astro, debugging perf, or wiring CI gates for a SPA / SSG / SSR app.

Огляд

Видавецьd-padmanabhan
Репозиторійagent-engineering-handbook
Назва навичкиfrontend-engineering
Зірки
20
Форки
3
Файли в пакеті
1
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем d-padmanabhan. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Frontend Engineering у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/frontend-engineering
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook.git /tmp/agent-engineering-handbook
mkdir -p .claude/skills
cp -r /tmp/agent-engineering-handbook/skills/frontend-engineering .claude/skills/frontend-engineering
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Frontend Engineering в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Frontend Engineering, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Frontend Engineering не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Frontend Engineering Playbook

Framework-agnostic. React, Vue, Svelte, Solid, Astro, Next, Nuxt, Gatsby, Hugo, SvelteKit, Remix - the architecture decisions and CI discipline are the same; the framework is the implementation.

Companion rule: 260-frontend.mdc. The rule is what auto-loads when an agent edits .tsx / .vue / vite.config.* / etc.; this skill is the depth.


When to invoke

  • Designing a new frontend project (greenfield)
  • Auditing an existing frontend project (perf, a11y, security)
  • Choosing between SPA / SSG / SSR / ISR / hybrid rendering
  • Setting up Core Web Vitals tracking (lab + RUM)
  • Picking state management (and unbreaking a Redux/Zustand-stuffed-with-server-data mess)
  • Hitting an INP / LCP / CLS regression
  • Wiring CI gates: bundle budget, axe-core, Lighthouse

Do not use for:

  • Framework-specific syntax help (defer to framework docs)
  • CSS architecture (BEM vs Tailwind vs CSS-in-JS - taste + team conventions)
  • Design system decisions (out of scope; that is a design org problem)

Five Golden Rules

  1. Rendering choice is upstream of everything else. SSG vs SSR vs SPA vs ISR shapes hosting, perf budget, SEO, hydration cost. Decide first; document in ADR.
  2. The bundle is a budget, not a metric. Set the budget; enforce in CI; raise it explicitly with justification - never silently.
  3. Three buckets for state, no overlap. Local UI / server / global client. Stuffing server data into Redux is the most common frontend refactor.
  4. Real-user metrics beat lab metrics. Lighthouse in CI is a floor; RUM (web-vitals + analytics) is the truth.
  5. Accessibility is a CI gate, not a sprint. axe-core in CI on every PR; manual SR pass before release; no a11y debt accrual.

Workflow 1 - Design a new frontend project

Steps

  1. Pick the rendering model. Use the matrix in references/rendering-choice-matrix.md. Document in an ADR.
  2. Pick the framework. Constraints first: team familiarity > marketing claims. React, Vue, and Svelte are all production-grade in 2026; the framework is rarely the bottleneck.
  3. Pick the meta-framework if SSR/SSG/hybrid. Next.js / Nuxt / SvelteKit / Astro / Remix - match to the rendering model and team familiarity.
  4. Set bundle budgets per route type (NN2 in the rule). Wire bundlewatch / size-limit / @next/bundle-analyzer + CI gate from day one.
  5. Set state-management strategy. Server-state library (TanStack Query / SWR / Pinia query) chosen on day one. Global client store (Zustand / Pinia / Redux Toolkit) added only when actual cross-route state appears - not preemptively.
  6. Set Core Web Vitals SLOs. Targets in the rule. Pick a RUM vendor (Cloudflare Web Analytics free; Vercel Analytics if on Vercel; Datadog / Sentry / SpeedCurve if you have budget).
  7. Wire CI gates in this order: TypeScript strict, ESLint (including jsx-a11y or vuejs-accessibility), test suite, axe-core E2E pass, Lighthouse CI with perf + a11y thresholds, bundle budget, dependency scan.
  8. Pick the analytics + RUM split. RUM (perf metrics) vs product analytics (user behavior) - usually different tools, and that is fine.
  9. Pick the error tracker. Sentry / Datadog / Rollbar / self-hosted - source-map upload from CI, release tagging from the deploy commit SHA.
  10. Document in README.md + ADR: rendering model, framework + version, state libraries, perf budgets, RUM / error vendors, CI gates.

Deliverable

ADR with the eight decisions above + a CI pipeline that enforces NN1-NN7.


Workflow 2 - Audit an existing frontend project

Steps

  1. Snapshot current state before changing anything.
    • Bundle size per route (Next: ANALYZE=true npm run build; Vite: rollup-plugin-visualizer; Webpack: webpack-bundle-analyzer)
    • Core Web Vitals from RUM (LCP / INP / CLS at p75)
    • Lighthouse score (perf + a11y) on the top 5 routes
    • axe-core violation count across the app
    • Dependency tree (npm ls --depth=0 + npm audit)
  2. Categorize findings by impact:
    • Critical: WCAG AA violations, CSP missing, secrets in bundle, Critical CVEs
    • High: LCP > 4s p75, INP > 500ms p75, bundle > 2x budget
    • Medium: a11y warnings, missing image dimensions, render-blocking 3rd-party scripts
    • Low: minor bundle bloat, missing TypeScript strict, snapshot tests
  3. Prioritize: ship Critical immediately; High in current sprint; Medium / Low backlog.
  4. For each finding, write a one-line "before / after" before opening the PR. Forces clarity.
  5. Re-measure after each merge. RUM has natural variance; don't claim a win on a single data point.

Quick wins checklist (90% of audits)

  • Add loading="lazy" to below-the-fold images
  • Add width + height to every image (CLS fix)
  • Convert to next/image / <picture> with AVIF / WebP fallback
  • Move third-party scripts to defer / async or next/script strategy
  • Preload critical font(s); subset; font-display: swap
  • Code-split large libraries (chart / map / editor) behind dynamic import
  • Remove moment -> date-fns or dayjs (typically -60 KB gz)
  • Remove full lodash -> lodash-es per-function or stdlib equivalents
  • Move polling / refetch logic out of useEffect to TanStack Query
  • Add axe-core to E2E tests; fix violations
  • Pin CDN scripts with SRI hashes; add CSP header

Workflow 3 - Choose state management

Anti-pattern to flag in review: server data in a Redux/Zustand store with manual cache invalidation. The solution is TanStack Query (React) or Pinia query / useFetch (Vue / Nuxt) or equivalent; you do not need to reinvent caching + retry + dedup + optimistic-update.


Workflow 4 - Set up Core Web Vitals tracking

Lab + CI gates:

  1. Lighthouse CI on every PR; fail PR if perf / a11y / best-practices score drops below threshold
  2. Bundle-size delta reported in PR comment via bundlewatch / size-limit

RUM (the truth):

  1. Install web-vitals library (~3 KB gz)
  2. Send LCP / INP / CLS / FCP / TTFB to your analytics endpoint
  3. Group by route, browser, geo, connection type
  4. Set SLO dashboards: p75 LCP < 2.5s, p75 INP < 200ms, p75 CLS < 0.1
  5. Alert when p75 INP regresses > 50ms week-over-week (most common silent regression)

Debugging INP specifically (the hardest to fix):

  • Long tasks blocking the main thread (Chrome DevTools Performance tab)
  • Hydration cost on first interaction (React 18 partial fix; React 19 useTransition / use())
  • Heavy event handlers (debounce; virtualize lists > 100 items)
  • React re-renders cascading from context (split context; memoize)
  • Synchronous third-party scripts on the critical path

Workflow 5 - Decide whether to migrate SPA to SSG/SSR

Don't migrate just because everyone is talking about RSC. Reasons that justify:

  • SEO became critical (used to be authed-only; now public)
  • LCP / TTFB is unfixable at the current SPA architecture
  • Hydration cost is hurting INP unfixably
  • Per-route SSR would let you remove a heavy global client store

Reasons that do NOT justify:

  • "Server components sound cool"
  • "We saw a Next.js demo"
  • "Our bundle is big" (often fixable in-place; measure first)

Migration is expensive: routing, data fetching, auth, error boundaries, tests, CI all change. Pilot one route, measure, then decide.


Reviewer feedback format

text
[BLOCKER] <one-line summary>
Principle: NN<n> from 260-frontend.mdc
Evidence: <bundle delta / Lighthouse before-after / axe finding / etc>
Fix: <specific, actionable>

[IMPORTANT] <...>
[SUGGESTION] <...>

BLOCKER = violates an NN1-NN7 non-negotiable. IMPORTANT = misalignment with the rule (e.g., server data in global store). SUGGESTION = improvement opportunity not required to merge.


Anti-patterns reviewers should catch

(See the full table in 260-frontend.mdc.)

The top three that show up in every audit:

  1. Server data in global client state. Move to TanStack Query / SWR / Pinia query.
  2. No bundle budget in CI. PRs land that double the bundle; nobody notices until users complain.
  3. Lighthouse-only perf signal. Lab numbers look fine; RUM shows the real story.

References

Related

  • Rule: 260-frontend.mdc - cross-cutting non-negotiables (the rule this skill backs)
  • Rule: 225-javascript-typescript.mdc - JavaScript and TypeScript language gates
  • API design: ${HANDBOOK_ROOT}/skills/api-design/SKILL.md, 320-api-design.mdc, and 325-networking.mdc - the contract and transport layers the frontend calls
  • Rule: 310-security.mdc - OWASP context
  • Rule: 330-observability.mdc - RUM patterns
  • Skill: single-file-dashboard - the anti-framework alternative for emailable analytical artifacts
  • Skill: reactflow-architecture-diagrams - interactive React Flow canvases (distinct niche)

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Frontend Engineering?

Framework-agnostic frontend architecture playbook. Workflows for picking rendering (SSG / SSR / SPA / ISR), setting bundle budgets, choosing state management (local / server / global), Core Web Vitals tracking + INP debugging, accessibility floor enforcement, testing pyramid, and supply-chain security. Use when designing a new frontend project, auditing an existing one, picking between React / Vue / Svelte / Astro, debugging perf, or wiring CI gates for a SPA / SSG / SSR app.

Навіщо використовувати Frontend Engineering у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Frontend Engineering — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Frontend Engineering у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/frontend-engineering. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Frontend Engineering?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Frontend Engineering?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Frontend Engineering — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Frontend Engineering?

Так. Навичку опубліковано на GitHub: d-padmanabhan, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇