agentleFS
bedomaxbedomax/webdesigner-agent/.claude/skills/frontend/SKILL.md

frontend

Skill1 starsChanged 4 months agoMITView on GitHub

Expert frontend engineering for scalable web applications. Use when writing HTML, CSS, JavaScript, TypeScript, React, Next.js, or any UI code — components, state management, rendering strategy, performance optimization, and accessibility.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backend, programming and 10 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.
  • xiaobei930Skill

    backend

    Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices.

    Also in 10 projects that use this

  • Xia-AtaraxiaSkill

    programming

    Guides correctness-first, type-strict Python and TypeScript implementation. Use when asked to write a `.py` or `.ts` file, scaffold a Python/TypeScript project, add strict types, assess an implementation diff for correctness or type holes, or fix a reproducible defect. Not for smell-only assessment or behavior-preserving restructuring — use refactor; not for suite-level test architecture — use testing.

    Also in 3 projects that use this

  • iankikuSkill

    data

    (forwward) Designs analytics systems, writes SQL queries, plans event tracking, and builds dashboards for product and user metrics. Triggers on SQL, analytics, dashboards, tracking, data pipelines, or user behavior analysis.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 7 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 3

    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:

    Prefer the least powerful tool: local state → lifted state → URL state → context → external store.

    line 27
  2. Distinctive:

    Use the project's system (Tailwind or CSS Modules).

    line 33
  3. Distinctive:

    Test with keyboard-only navigation before shipping.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 29 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

Build fast, accessible, maintainable interfaces.

Rendering Strategy (decide per page, document in the spec)

  • SSG: marketing pages, landing pages, blogs — fastest, best for SEO.
  • ISR: content that changes occasionally (pricing, catalogs).
  • SSR: personalized or frequently changing indexable content.
  • CSR: authenticated dashboards and app-like interactions only — never for indexable lead-gen pages.

Component Architecture

  • Small, single-purpose components; extract only when reused or when a file exceeds ~200 lines.
  • Colocate: component + styles + tests in the same folder.
  • Props flow down, events flow up; avoid prop drilling deeper than 2 levels — use composition or context.
  • Server Components by default (Next.js App Router); add "use client" only where interactivity is required.
  • Type everything: no any, exported components have explicit prop types.

State Management

  • Prefer the least powerful tool: local state → lifted state → URL state → context → external store.
  • URL is state: filters, tabs, and pagination belong in searchParams so pages are shareable and crawlable.
  • Server data lives in a data-fetching layer (React Query / SWR / server components), never duplicated into global stores.

CSS

  • Use the project's system (Tailwind or CSS Modules); never mix approaches in one codebase.
  • Design tokens as CSS custom properties or Tailwind theme config — no hardcoded hex values in components.
  • Mobile-first media queries; avoid fixed heights; let content define size.
  • Prevent CLS: aspect-ratio or width/height on all media.

Performance Budget

  • Initial JS < 150KB gzipped per route; code-split heavy components (dynamic() / lazy()).
  • Images: next/image or <img loading="lazy" decoding="async"> with srcset; AVIF/WebP.
  • Fonts: self-hosted, subset, font-display: swap, preload the primary weight.
  • Third-party scripts: load after interaction or with a facade (e.g. lite-youtube); measure everything you add.
  • Memoize only measured bottlenecks — profile before optimizing.

Accessibility (WCAG 2.1 AA, non-negotiable)

  • Semantic elements first: nav, main, button, a — a div with onClick is a bug.
  • Keyboard: everything focusable and operable; visible :focus-visible styles; logical tab order.
  • Forms: <label> bound to every input, error messages linked via aria-describedby.
  • Announce dynamic changes with aria-live where needed.
  • Test with keyboard-only navigation before shipping.

Forms (the lead-gen critical path)

  • Client + server validation with shared schema (e.g. Zod).
  • Show inline errors on blur, not only on submit; never clear user input on failure.
  • Disable submit during flight, show progress, confirm success clearly.
  • Fire analytics events on submit success (conversion tracking).

Frontend Review Checklist

  • Correct rendering strategy for the page type
  • No any, lint and type-check pass
  • JS budget respected, images optimized
  • Keyboard accessible, AA contrast
  • Works at 375px / 768px / 1440px
  • Forms validated on both sides and tracked

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.