agentleFS
muad-yasinmuad-yasin/the-high-council-mcp/skills/frontend-developer/SKILL.md

frontend-developer

Skill1 starsChanged 20 days agoMITView on GitHub

Implements and reviews interface code correctly - component structure, data binding, layout across real viewport sizes, input and lifecycle handling, accessibility in code, importing a design mockup by its literal values, and the verification UI needs beyond "it compiles". Use when writing, changing or reviewing anything that renders or reacts to input - web, mobile, desktop, game UI, terminal UI, CLI output - including wiring one button or showing one number. Takes ux-design's flow, wireframe and states list as input. Not for business logic or persistence (backend-developer) or whether it looks right (visual-craft).

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ai-agents-architect, security-engineer and 4 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.
  • xfstudioSkill

    ai-agents-architect

    Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.

    Also in 3 projects that use this

  • belokonmSkill

    security-engineer

    Expert in infrastructure security, DevSecOps pipelines, and zero-trust architecture design.

    Also in 3 projects that use this

  • xenitV1Skill

    nextjs-best-practices

    Next.js App Router principles. Server Components, data fetching, routing patterns.

    Also in 3 projects that use this

  • xenitV1Skill

    tailwind-patterns

    Tailwind CSS v4 principles. CSS-first configuration, container queries, modern patterns, design token architecture.

    Also in 3 projects that use this

  • lsyamsiarSkill

    cloud-architect

    Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost optimization, disaster recovery, landing zones, security architecture, serverless design.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write to a frequently updating display only when the value changes.

    line 38
  2. Distinctive:

    Don't abstract a component until a second real use case exists.

    line 65
  3. Very specific:

    Read references/timing-lifecycle-input.md before live verification, lifecycle or resume handling, overlays over moving content, or …

    line 74
  4. Distinctive:

    Activation often doesn't run setup synchronously: - put a real frame boundary between activation and interaction in any automated check, …

    line 76
  5. Distinctive:

    Only the active state implemented.

    line 96

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

You implement interfaces: whatever renders or reacts to a person's input. Whether the design is right (flow, states, hierarchy) should be settled first - if no such pass happened, run ux-design rather than implementing a guess. Whether the built result looks right is visual-craft's.

Design away the bug class

When a UI bug recurs in the same shape, ask first "can this class be made unrepresentable?", not "where else do I patch it?" A shared formatter makes "one call site drifts to the machine locale" impossible; a real navigation stack makes "two screens visible at once" impossible and turns every new screen into zero new sweep sites. Second best is a build-failing guard (a lint rule, a test that scans for the pattern). Worst is a comment recording the fix: one project re-shipped a wrapping-text bug eight lines below the comment documenting its earlier fix. The limit: constrain states that have actually bitten you; an invariant with no incident behind it is speculation with a test attached.

Hard rules

  1. UI is never logic. No business rules, derived-value math or state mutation in a component; reading a flag to decide what to show is fine. A component is a deep module - small surface (inputs in, events out) hiding its wiring. A caller reaching into a child to make it behave means the surface is wrong.
  2. React to events; don't poll state that has one, and unsubscribe on teardown. A sibling that may not exist yet is resolved at first use, never assumed from initialization order; state that can already be true before mount (an event fired during bootstrap) gets a one-time sync right after subscribing (the ordering rule is backend-developer's rule 7).
  3. Real hit targets. The numbers (the WCAG 2.2 floor and the platform guidance) are ux-design's. Art may be smaller if the hit area meets them - computed from real bounds, not eyeballed.
  4. Follow the established pattern before inventing one. Check how a similar screen does layout, animation, state and input before adding a library or hand-rolling something a helper already does. Settled layout choices stay settled. Look at how the project's toolchain is set up - compiler, framework mode, linter - and only then apply a framework rule: a setting may already do what the rule asks (the review-side line is in backend-developer's verification reference).
  5. Audit per-frame work: an unthrottled read of a slow source every tick (about once a second is usually enough); slow-changing data visited at frame rate (split a fast active subset from a throttled sweep); verbose logging left in a hot path. Never drive animation through a system that marks elements dirty every frame when nothing changed.
  6. No dynamic content in a fixed-size box unless overflow is intended. Many text systems' default overflow does not clip - surplus text paints over its neighbors, silently. Growing content gets a growing container (remove the fixed height; a bigger constant is not the fix); a genuinely fixed box gets shorter content and explicit truncation. Measure the longest real value against the container, not a screenshot of a typical one: auto-size text hides overflow in one screenshot and ships it to another device. Truncation can fail vertically too, dropping a whole line with no ellipsis - it looks like a missing binding, not a sizing bug.
  7. Name where surplus space goes. Each screen names one destination (a scroll region, a spacer, a background) and every sibling declares it won't grow. Text never absorbs surplus. Left unnamed, an unrelated growth flag becomes the destination: one project shipped a ~450-unit hole mid-screen that survived six visual passes, all captured at the one aspect ratio where surplus was zero.
  8. An overflow effect (glow, shadow, pulse) inside a clipping container clips silently. Size the effect, then widen the container's padding - never shrink the effect to fit one parent.
  9. Every release path of a press-and-hold funnels into one idempotent reset - release, pointer leaving, cancelled touch, app backgrounded mid-hold, element hidden while held. Otherwise a finger sliding off leaves an action running forever.
  10. A foreground trigger coordinating with an autonomous feed registers pending intent, then waits for a may-fire gate. The feed pauses while anything is pending; the pending count is balanced per instance, floored at zero, and released on teardown - or a destroyed trigger wedges the feed forever.

All states, never happy-path-only

Every data-bound element handles locked/unavailable, first-time/empty, loading, active, and error. If a request describes only the active state, implement the others and say so. A newly interactive element ships with a visible signal that it is interactive. One explicit state value beats accumulated booleans: when show logic grows a third isX && !isY, impossible combinations are already writable.

Data binding

  • Display values come from the data layer's own events and read models; never guess a field name or recompute what it already exposes.
  • Every user-facing number, date and amount goes through one shared formatter with an explicitly pinned locale (for example Intl.NumberFormat / Intl.DateTimeFormat with a locale argument on the web). Parsing the literal "0.55" under a comma-decimal locale has returned 55. Never parse a string you could write as a literal. Run each screen once under a pseudo-locale (Windows qps-ploc, ICU en-XA), which exposes unpinned formatting and parsing in one pass.
  • Displayed value equals committed value: a preview goes through the same call that commits it, never an inline re-derivation.
  • A displayed rate uses the product's real cadence as its time unit, and two screens showing "the same" number use the identical basis (the display-side case of backend-developer's units-and-frames rule).
  • Write to a frequently updating display only when the value changes.
  • A non-ASCII glyph not confirmed in the loaded font renders as a blank or a box, silently.

Accessibility in code

ux-design decides the accessible design; this is what the code must do. WCAG 2.2 AA is the reference.

  • Native elements first. A real <button>, link, <label for> or platform control brings focus, keyboard and screen-reader semantics for free; a clickable <div> brings none. Add ARIA only where no native element fits - wrong ARIA is worse than none.
  • Everything works from the keyboard, in a logical order, with a visible focus indicator that sticky headers, banners and overlays never cover. Where a measurable indicator is wanted, WCAG 2.2's Focus Appearance (2.4.13, level AAA) gives one: an area at least that of a perimeter 2 CSS px thick around the component, at 3:1 contrast against its unfocused look (AAA goes beyond the AA reference here; adopting it is a design decision, not the implementer's). Dialogs move focus in, trap it, and return it on close.
  • Every control has an accessible name - icon-only buttons included - and every input a programmatic label.
  • Announce async changes that matter (errors, completed saves, loading results) through the platform's status or live-region mechanism.
  • Color never carries meaning alone (ux-design owns the rule); in code, every color-coded state also sets a shape, icon, sign or word.
  • Respect reduced-motion settings (prefers-reduced-motion on the web) for anything beyond small transitions.
  • Content reflows at a 320 CSS px wide viewport (about 400% zoom) without two-axis scrolling, and text resizes to 200% without loss (WCAG 1.4.10 Reflow, 1.4.4 Resize Text).

Terminal and CLI output

A command line is an interface too, with two readers: a person and a program.

  • Results go to stdout, messages and errors to stderr, and the exit code carries the outcome. An error printed with exit code 0 is a success to every script that calls the tool.
  • A program reads a declared machine format (a --json flag, a stable schema), never the human text. The wording for people stays free to improve only while nothing parses it.
  • Color and cursor control only when the output is a terminal, and none when NO_COLOR is set to a non-empty value unless the user's own flag or configuration asks for color: in a pipe or a log file the codes are noise to the next reader. Meaning never rides on color alone here either.
  • An unknown flag or argument is an error, never ignored - a mistyped --dry-run that is silently dropped runs the real thing.
  • Long work shows progress on stderr and ends with one line saying what happened and where the output is, so silence is not taken for a hang.

Right-sizing

  • Don't abstract a component until a second real use case exists. A UI builder or generator script earns its keep by deleting drift and manual wiring, and stops once it is harder to read than what it replaced.
  • Turn off hit-testing on elements that never take input (a label inside its own button, decorative art).

Importing a design mockup

The mockup file's literal values are the spec; never re-derive a value from how a render looks. "Build this" produces a visual reproduction - close, and close is how one project shipped two card radii side by side for weeks. Extract declared values and resolved layout geometry, write the conversion table, name what is deliberately not taken, and pixel-diff any shared visual change before building on it. Pipeline: references/design-import.md.

Timing, lifecycle, viewport

Read references/timing-lifecycle-input.md before live verification, lifecycle or resume handling, overlays over moving content, or transient messages. The load-bearing rules:

  • Activation often doesn't run setup synchronously - put a real frame boundary between activation and interaction in any automated check, and force a layout pass before reading measured positions.
  • Live edits in an editor or hot-reload session can silently revert - redo accepted values as persisted edits and re-verify from a fresh session.
  • Every lifecycle handler (resume, foreground, reconnect) answers "what if this fires twice, or when nothing changed?"
  • A viewport or safe-area measurement cached at startup can go stale - re-measure on the platform's settling signal.
  • A one-shot message and a periodic refresh sharing a render target race - give the message its own slot or pause the refresh.

You cannot self-certify UI

"It compiles," "the handler ran" and a screenshot that looks right are not evidence. Generated UI is measurably weak exactly here: a 2026 peer-reviewed study of six AI UI design generators (W4A 2026, five WCAG criteria) found 29% compliance, and naming accessibility in the prompt lowered it. Code-writing agents were not measured, so treat the result as a prior for them. Pair signals structurally, then compute the check. Never let the same agent both write the check and certify the result, and say plainly what was not verified.

A capture at one viewport shape is not evidence about the others. Verify at a short design floor, the most common real device, the tallest or widest ceiling, and a split-screen or tablet shape.

Mistakes to flag

  • Business rules or derived-value math inside a component; a caller reaching into a child to make it behave.
  • State polled where an event exists; a subscription never removed; a startup event with no one-time sync.
  • A hit area below the floor, or sized by eye.
  • Dynamic content in a fixed-size box; overflow checked on a typical value instead of the longest real one.
  • Surplus space with no named destination, or text absorbing it; a glow or shadow clipped by its container.
  • A press-and-hold with a release path that skips the reset; a pending count that a destroyed trigger never releases.
  • Only the active state implemented; show logic built from accumulating booleans.
  • A number or date formatted or parsed outside the shared, locale-pinned formatter; a preview computed apart from the call that commits.
  • A clickable <div> where a native control fits; a control with no accessible name; focus hidden behind an overlay; meaning carried by color alone.
  • An error printed with exit code 0; human-formatted output parsed by a program; color codes written into a pipe; an unknown flag ignored.
  • A value re-derived from how a mockup renders instead of read from the file.
  • A lifecycle handler that breaks when it fires twice; a viewport measurement cached at startup.
  • A framework rule applied without a look at how the project's toolchain is set up.
  • A capture at one viewport shape offered as proof; the agent that wrote the check certifying the result.

Verification protocol, the evidence graded, and the review checklist: references/verification-and-review.md.

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.