Ferrox frontend design

From FerroxLabs/ferrox-factory · View interactive version

Ferrox frontend design is an AI agent skill from the GitHub repository FerroxLabs/ferrox-factory. Use when building or restyling any frontend or UI surface - web pages, components, dashboards, landing pages, HTML mockups, or visual companion screens. Covers aesthetic direction, typography, layout, copy, the anti-template discipline, the design knowledge base, and the DESIGN.md contract.

How to use this skill

Skill file

Doctrine is original Ferrox Factory writing (MIT). The knowledge base (data/, templates/design/, scripts/search.js) is ported from ijfw-design: Sean Donahoe's own IP, internal port, ijfw repo untouched.

Frontend Design

Overview

Act like a studio that was hired specifically because the client fired someone for shipping a template. Every visual decision (palette, faces, layout, copy) must be an argument for this product, defensible in a sentence that names the subject. If a choice would survive being pasted into an unrelated project, it is not a choice yet.

Core principle: distinctiveness comes from the subject, not from decorating harder.

Architecture: contract vs knowledge

The contract comes first

if [ -f DESIGN.md ]; then
  echo "DESIGN.md found: binding for this session"
else
  echo "no DESIGN.md: offer /ferrox:design-init before substantial UI work"
fi

The knowledge base (progressive disclosure)

Do not load the data files wholesale. Keep this doctrine in context and pull knowledge on demand, running from this skill's directory:

node scripts/search.js "fintech dashboard dense data" --design-system -p "ProjectName"
node scripts/search.js "warm editorial" --domain palettes -n 5
node scripts/search.js "display serif" --domain typography -n 5
node scripts/search.js "form validation" --domain ux -n 5

Precedence when values conflict: DESIGN.md tokens first, then the chosen template or brand direction, then search results, then your own heuristics.

Ground every design in the subject's own world

Pin down the subject before touching CSS: what the product is, who uses it, and the single job of this screen. The subject's materials, instruments, and vocabulary are the richest source of specific choices. A tide planner earns a nautical chart's linework; a foundry tool earns iron and heat. If the brief is vague, choose a concrete subject, state it, and design for it. Build with real content from that world, not lorem ipsum.

The hero is a thesis

The opening of a page is an argument about what matters, in whatever form proves it: a headline, a live demo, a real artifact, 1 interactive moment. The reflexive big-number-plus-small-label hero with a gradient accent is the template answer; reach for it only when a metric genuinely is the story. Open with the most characteristic object in the subject's world.

Typography carries personality

Structure is information

Numbering, eyebrows, dividers, and labels must encode something true. Number steps only when order matters to the reader. Decorative 01 / 02 / 03 markers on unordered content tell the reader a lie about sequence, and they read as template filler.

The anti-template list

Generated UI collapses into a small set of looks. Name them so you can refuse them:

  1. Warm cream background, high-contrast serif display, terracotta accent.
  2. Near-black page with 1 lone acid-green or neon accent.
  3. Purple-to-blue gradient hero with glassy cards.
  4. Everything centered: centered nav, centered hero, centered card stacks, centered footer.
  5. Decorative numbering and hairline dividers that encode no real structure.

Any of these can be legitimate when the brief explicitly asks for it; the brief always wins. What is never legitimate is arriving at 1 of them by default, independent of subject. If your draft matches an entry, that section is not designed yet: revise it and say what changed.

Take exactly 1 justified aesthetic risk

Every design gets 1 bold move: an unusual face, a confrontational layout, an expressive motion moment, a signature element. Write the justification in subject terms before building it, then keep everything around it quiet so the risk reads as intent. Zero risks produces wallpaper; 3 risks produce a costume.

Match complexity to the vision

Maximalist directions demand elaborate, controlled execution; minimal directions demand precision in spacing, type, and detail. Elegance is executing the chosen vision at its required fidelity, not adding or removing ornament to hedge.

Copy is design material

Name things by what users recognize and control, never by internal machinery: people manage alerts, not notification pipelines. Buttons state their outcome ("Save route", not "Submit") and keep that name through the flow. Errors say what happened and what to do next. Empty states point at the first action. Sentence case, active voice, no filler, register tuned to the audience defined in DESIGN.md.

Process

  1. Brainstorm direction. State the subject, audience, and the screen's single job. Check DESIGN.md; if absent, propose /ferrox-design-init.
  2. Explore 2-3 directions. Genuinely different ones, seeded from a --design-system query or the template catalog, each summarized in a sentence. Recommend 1 and say why, before listing the others.
  3. Plan the tokens. Load exactly 1 chosen direction template (or the DESIGN.md tokens verbatim) and lock a compact system: 4-6 named palette values, faces and numeric type scale, spacing unit and steps, layout concept, and the 1 signature risk.
  4. Build. Derive every color, size, and face from the token plan. No improvised values mid-build; a needed value that is missing goes into the plan first.
  5. Critique. Review the result against DESIGN.md (or the token plan) and the anti-template list, section by section. Screenshot it if the environment allows; judge the render. Verify the floor: responsive to mobile, visible keyboard focus, 4.5:1 body contrast, reduced motion respected.
  6. Refine. Fix what the critique caught, then remove 1 decoration that survives without a justification. Repeat the critique once after meaningful changes.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.