Skip to content
user

frontend-engineering

Build a web surface, then prove it holds up.

9 skills4 human gates45-120 min/session

The contract

Use it when
You need to create, retrofit, audit, or verify an HTML/CSS/JS surface with a page/screen contract, accessible states, Core Web Vitals targets, and completion evidence.
You type
Build this screen against its page contract.
You provide
A surface brief, existing page, or completed implementation, plus any product constraints, routes, viewports, design references, and available performance data.
You receive
A proportional page/screen contract, implementation or audit path, gate results, evidence manifest, and independent frontend review focused on regressions that ordinary tests miss.

Where you decide

The agent pauses at these points. You choose whether to continue, redirect, or stop.

What changes when you install this

After installing frontend-engineering, the main skill gives one operating path for web surfaces: create starts from a contract, retrofit starts from brownfield inspection, audit reports findings without code changes, and verify runs gates against a completed surface. Supporting skills cover tokens, accessibility, performance, rendering, component contracts, responsive layout, CSS architecture, and status. The frontend-reviewer agent provides an independent diff read for token drift, ARIA mutation completeness, state coverage, WCAG 2.2 manual checks, and Core Web Vitals regression signals.

The journey

Common requests:

  • Create: “Build this dashboard screen from the brief.” The agent writes a proportional contract, implements the surface, runs gates, and produces evidence. You approve the contract and accept or fix exceptions.
  • Retrofit: “Improve this existing checkout page without changing its flow.” The agent starts with brownfield inspection, then produces a preservation list, implementation path, and evidence manifest. You decide which existing debts are in scope.
  • Audit: “Audit this landing page for frontend quality.” The agent writes a prioritized report without changing code. You decide which findings become work.
  • Verify: “Verify this completed page before release.” The agent runs the gate suite and produces an evidence manifest. You accept the release evidence or send it back.

The journey

1. Choose the frontend job

  • You provide: the surface or request: create a new page, retrofit an existing one, audit without edits, or verify completed work.
  • Agent does: loads frontend-engineering, selects create, retrofit, audit, or verify, and names the expected output before touching code or gates.
  • You do: confirm that the mode matches the job you actually want done.
  • You decide: choose the operating mode.
  • Output: a mode decision with the work boundary: contract, brownfield inspection, audit report, or verification manifest.
  • State: decision-required

2. Write or confirm the page/screen contract

  • You provide: the surface brief, target user, primary job, first-screen requirements, existing design constraints, and any measurement event already known.
  • Agent does: for create mode, drafts the proportional page/screen contract before significant UI code. For retrofit mode, runs brownfield inspection first and then narrows or expands the contract only if the surface is being substantially rebuilt.
  • You do: read the contract as the product owner: can you tell what the surface must show, what action it supports, what state coverage applies, and whether the primary action reads or writes data?
  • You decide: approve the contract or send it back with the missing product, state, responsive, a11y, or measurement detail.
  • Output: an approved contract or brownfield inspection that constrains implementation.
  • State: proposed-write

3. Implement or audit the surface

  • You provide: repository access, the route or component location, design-system constraints, and any existing token, a11y, performance, or rendering requirements.
  • Agent does: follows the implementation sequence for create or retrofit: named aesthetic reference, optional genre routing through the co-installed design pack, seed token block, state matrix, semantic HTML, CSS token discipline, responsive behavior, and public-surface checks where applicable. In audit mode, it reads the surface and reports findings without writing code.
  • You do: answer any product decision that changes the contract, such as what to preserve in a retrofit or which known debt is allowed as a ride-along.
  • You decide: accept scoped implementation decisions or keep them out of this change.
  • Output: implemented frontend work for create/retrofit, or an audit report for audit mode.
  • State: confirmed-write

4. Run verification gates

  • You provide: a runnable local route, static file, or completed surface, plus any browser or environment constraints.
  • Agent does: runs the verification gates in order: structural HTML validation, accessibility audit, CSS token enforcement when configured, and visual QA against applicable states. It records Core Web Vitals targets at p75 and separates mobile and desktop where field data exists.
  • You do: provide access or manual evidence for any browser-only check the agent cannot run.
  • Output: gate results with pass, fail, or unverified status for each required check.
  • State: read-only

5. Produce the evidence manifest

  • You provide: screenshots, field data, analytics-event proof, or known-exception decisions that are not available from local gates.
  • Agent does: assembles the evidence manifest with routes, viewports, browsers, states, screenshots, a11y result, perf result, console/network result, analytics events, known exceptions, and unverified items. For a production surface it also records security/privacy review status and reliability/recovery status — the state of those reviews and who they were routed to, not a verdict of its own.
  • You do: inspect the unverified items and known exceptions instead of treating them as noise.
  • You decide: accept the known exceptions, require fixes, or defer the surface.
  • Output: a completion-ready evidence manifest for create, retrofit, or verify mode.
  • State: decision-required

6. Get an independent frontend review

  • You provide: the diff and evidence manifest.
  • Reviewer does: reads the HTML/CSS/JS diff for token drift, ARIA mutation completeness, state coverage regression, WCAG 2.2 manual-verification items, and Core Web Vitals regression signals. Security, reliability, and broader product-design findings route to their own reviewers instead of being claimed here.
  • You do: review findings and decide whether each one blocks the handoff.
  • You decide: merge after clean review, or send the work back through implementation and gates.
  • Output: reviewed frontend work with the contract, gates, manifest, and reviewer disposition connected.
  • State: confirmed-write

Human gates

For each gate, everything you need to make a confident decision.

  • Choose the frontend operating mode

    Trigger
    Before planning starts, after you describe the surface or review target
    Time
    2-5 minutes
    What to check, good, bad, consequence

    What to check

    • Create is for a new surface or significant component.
    • Retrofit is for improving an existing surface and starts with brownfield inspection.
    • Audit reads and reports only.
    • Verify runs gates and records evidence for completed work.

    What good looks like

    The mode matches the job and the expected output is named before work begins.

    What bad looks like

    A small component tweak gets treated like a full new route, or a review-only request silently turns into code edits.

    Consequence of skipping

    The wrong mode either overburdens a small change or skips evidence a larger surface needs.

  • Approve the frontend surface contract

    Trigger
    Before significant UI code in create mode, or before a retrofit becomes a substantial rebuild
    Time
    10-15 minutes
    What to check, good, bad, consequence

    What to check

    • The target user, primary job, expected result, first-screen content, and next action are specific.
    • The read/write consequence is clear.
    • The critical states, responsive behavior, a11y requirements, and measurement event are testable.

    What good looks like

    A reader can tell what the first screen must accomplish and what evidence will prove it.

    What bad looks like

    The contract repeats vague product goals or omits error, empty, keyboard-only, high-zoom, or reduced-motion states that apply.

    Consequence of skipping

    A weak contract lets the implementation drift into a polished happy path with missing states.

  • Accept the frontend implementation evidence

    Trigger
    After implementation, audit, or verify mode produces gate results
    Time
    10-20 minutes
    What to check, good, bad, consequence

    What to check

    • Routes, viewports, browsers, states, screenshots, a11y result, perf result, console/network result, analytics events, known exceptions, and unverified items are present.
    • Core Web Vitals use p75 targets, with mobile and desktop separated where field data exists.
    • Known exceptions are explicit decisions, not hidden missing work.

    What good looks like

    The manifest names what was tested, what passed, what could not be tested, and what remains accepted risk.

    What bad looks like

    Completion is claimed from source inspection alone, or field performance, manual WCAG 2.2 checks, and screenshots are left implicit.

    Consequence of skipping

    Without evidence, the surface may look complete while still failing in browser, accessibility, or performance review.

  • Review the frontend implementation

    Trigger
    After gates and manifest are ready, before merge or handoff
    Time
    10-20 minutes
    What to check, good, bad, consequence

    What to check

    • Token drift, ARIA mutation completeness, state coverage regression, WCAG 2.2 Focus Appearance, WCAG 2.2 Target Size Minimum, and Core Web Vitals regression signals were reviewed.
    • Security, reliability, or product-design concerns were routed to the appropriate reviewer instead of claimed as covered here.

    What good looks like

    The reviewer finds no blocking frontend regressions, or the findings are fixed and rerun.

    What bad looks like

    The same author judges their own UI diff complete without an independent read.

    Consequence of skipping

    The independent read catches frontend-specific regressions that schema checks and unit tests rarely see.

Typical session

Agent turns
6-14
Human gates
4
Wall-clock time
45-120 min

Install

agentbundle install --pack frontend-engineering --scope user

Skills in this pack

  • frontend-engineering4 gates

    Selects create, retrofit, audit, or verify mode; runs the shared pre-flight; and requires evidence before completion.

  • token-architecture1 gate

    Shapes the design-token system used by the surface.

  • a11y-engineering1 gate

    Handles dedicated accessibility audits, retrofits, and complex interaction accessibility.

  • fe-performance1 gate

    Measures, diagnoses, and remediates Core Web Vitals and asset-budget violations.

  • rendering-strategy1 gate

    Chooses CSR, SSR, SSG, ISR, or RSC route strategy from data, SEO, and hydration constraints.

  • component-contract1 gate

    Defines public interfaces for reusable components.

  • responsive-layout1 gate

    Plans responsive layout behavior across containers and breakpoints.

  • css-architecture1 gate

    Keeps cascade layers, scoping, specificity, and token compliance coherent.

  • fe-status

    Reads the evidence manifest and reports current frontend quality state.