agentleFS
magnus919magnus919/agent-skills/frontend-engineering/SKILL.md

frontend-engineering

Skill197 starsChanged 4 months agoMITView on GitHub

Build and maintain web frontends — component architecture, state management,

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, skill-authoring and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    skill-authoring

    Write Agent Skills that comply with the agentskills.io specification. WHEN: "create a skill", "new skill", "write a skill", "skill template", "skill structure", "review skill", "skill PR", "skill compliance", "SKILL.md format", "skill frontmatter", "skill best practices". DO NOT USE FOR: general documentation. INVOKES: vally CLI.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use product-design-and-ux for unchosen task flows and interaction behavior, brand-designer for visual identity, and web-accessibility for …

    line 37
  2. Distinctive:

    Before modifying implementation, confirm the target, scope, and rollback path.

    line 40
  3. Distinctive:

    Read-only discovery may proceed without confirmation.

    line 41
  4. Distinctive:

    When implementing an approved design, extending UI, or repairing generated-design drift, read design continuity.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Engineering Methodology

Frontend engineering is the craft of building the user-facing layer of applications — components, state management, API integration, responsive layout, and client-side performance. This methodology bridges UX design (user journeys, wireframes, accessibility standards) and quality validation (qa-methodology).

The Frontend Engineer's Domain

You ownYou don't own
Component implementation — UI component composition, props/state interfaces, rendering patterns, lifecycleUser journeys, wireframes, accessibility standards, interaction design — that's the product-design-and-ux
State management — client-side state architecture, data fetching patterns, caching, optimistic updatesAPI contract design — that's the api-design-and-evolution
API integration — frontend-to-backend data flow, auth flows (OAuth, JWT), real-time updatesTest strategy and automation — that's qa-methodology
Responsive design implementation — layout systems, breakpoints, cross-device testingVisual identity and brand guidelines — that's the brand-designer
Client-side performance — bundle optimization, lazy loading, Core Web Vitals, render optimizationEditorial content and copy — owned by the content and marketing team, outside this skill's scope
Frontend testing — component tests, integration tests, visual regression, accessibility testsCode review and quality gates — that's the qa-methodology
E2E test scenarios and user-flow coverage for frontend featuresOperating the browser test tool (Playwright) — authoring/running specs, selectors, network mocking, scraping — route to playwright
Mobile app implementation (iOS/Android/Flutter/React Native)Mobile platform work — scaffolding, builds and code signing, device/emulator testing, store submission, mobile lifecycle — route to mobile-development; this skill owns web frontends
Build tooling — bundler config, TypeScript config, linting, formatting, dev environmentCI/CD pipeline infrastructure — that's platform-engineering

For React component and hooks work, load react; for Vite config, modes, plugins, and builds, load vite. This skill remains the owner of framework-neutral architecture and frontend strategy.

When not to use

Use product-design-and-ux for unchosen task flows and interaction behavior, brand-designer for visual identity, and web-accessibility for conformance. Before modifying implementation, confirm the target, scope, and rollback path. Read-only discovery may proceed without confirmation.

When implementing an approved design, extending UI, or repairing generated-design drift, read design continuity. Reuse settled components and decisions, ask about genuine exceptions, and compare rendered states against the approved baseline rather than regenerating the design from scratch.

Reference Files

ReferenceWhen to load
references/component-architecture.mdDesigning component trees — composition patterns, props/state interfaces, lifecycle, accessibility fundamentals
references/state-management.mdChoosing and implementing state management — client vs server state, data fetching, caching, optimistic updates
references/api-integration.mdConnecting frontend to backend — API client design, auth token flow, error handling in the UI, real-time subscriptions
references/responsive-layout-testing.mdImplementing responsive designs (layout system selection — Grid vs Flexbox vs Container Queries, breakpoint strategies, cross-device testing methodology) and testing frontend code (component testing with Testing Library, integration testing with Playwright/Cypress, visual regression, accessibility testing with axe-core and Lighthouse CI, test data management)
references/performance.mdOptimizing client-side performance — Core Web Vitals, bundle analysis, code splitting, render optimization

Templates

TemplateWhen to Use
templates/component-state-design-record.mdDesigning a component tree and state ownership for a feature — decomposition, state scoping, data fetching, and error/loading UX
templates/performance-budget.mdDefining performance targets — bundle byte budgets, Core Web Vitals budgets, measurement setup, and CI enforcement

Scripts

ScriptWhen to Use
scripts/bundle-budget-checker.pyChecking a bundle size report against total and per-chunk budgets; fails (exit 1) when a budget is exceeded, so CI can block performance regressions

Core Principles

Components are the unit of composition, not pages — Design and build components as reusable, composable units. Pages are assembled from components, not built as monoliths. A well-designed component can be reused in contexts its creator never imagined.

Co-locate state with the components that need it — Not every piece of state belongs in a global store. Local state stays local. Server state is fetched and cached. Only truly shared application state belongs in a global context.

Design for every state, not just the happy path — Every data-dependent component has at least four states: loading, empty, error, and success. Designing for all four is not a nicety — it creates a resilient user experience.

Accessibility is not a feature, it's a requirement — Keyboard navigation, screen reader support, color contrast, and focus management are not enhancements. They are part of the implementation contract.

Performance is a UX concern — Every millisecond of load time, every layout shift, every janky interaction erodes user trust. Performance budgeting, bundle analysis, and render optimization are part of frontend engineering, not an afterthought.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.