agentleFS
backnotpropbacknotprop/product-engineering/skills/pe-build/SKILL.md

pe-build

Skill21 starsChanged 3 months agoApache-2.0View on GitHub

Write and refine production UI code to a high craft bar. Use for building components, polish and detail work (spacing, typography, color, copy, icons, shadows, interaction states), implementing animation and gestures, implementing accessibility (keyboard, screen readers, focus, forms), and hardening for production (real data, failure states, devices, languages, offline, shipping metadata). Triggers on build, implement, polish, refine, tighten, "feels off", animate, transition, gesture, drawer, make accessible, keyboard navigation, production-ready, edge cases, empty states. The deliverable is code. Not for read-only critique (review) or pre-code design work (design).

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Generation guardrail: when writing new UI from scratch in any mode, also load craft/generation-guardrails.md (terse MUST/NEVER rules).

    line 43
  2. Very specific:

    Course preference: if references/course/ contains files, prefer them for their topics — craft-design-rules.md and friends extend craft.

    line 46
  3. Distinctive:

    Never disable submit buttons.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Build

Production UI to the craft bar. This spine routes and carries the shared loop; the craft itself lives in the reference files — load only what the mode needs.

The loop (every mode)

  1. Boundary — name the exact target, what must remain unchanged, and the surface's job (persuade / operate / read / experience); read DESIGN.md when present and verify it against tokens, components, and rendered output. Read .product/approved/ for a record matching the target: an approved artifact ranks above your judgment and below the user's words — implement to it, and state any deviation (constraint, platform, accessibility) before making it, never as a silent improvement. Preserve the incumbent identity: polish is refinement, never a concealed redesign.
  2. Evidence — read the real code and, where possible, the rendered result before changing anything.
  3. Triage — fix in order: blocked tasks and inaccessible paths → missing states and recovery → flow, hierarchy, responsiveness, drift → visual/copy/motion inconsistencies → cleanup. Don't perfect one corner while the path stays below bar.
  4. Implement — complete fixes, in the project's stack and idiom.
  5. Verify — walk the whole path; check states, viewports, zoom, focus, semantics, console, layout shift. At most two bounded visual rounds — no open-ended loop.
  6. Report — what changed, what was preserved, what remains, and the approved record built against (with each stated deviation), when one exists.

Modes

ModeWhenLoad from references/
craft (default)Components, polish, detail work, "feels off"craft/emil-craft.md for the canon; the domain folders as the work touches them: craft/ui/ (details: surfaces, icons, enter/exit), craft/layout/, craft/typography/, craft/colors/, craft/writing/ (each has index.md); craft/polish-lenses.md for trade-offs; craft/library-choices.md before adding a dependency
motionAnimate, transition, gesture, "feels janky"motion/build.md + motion/recipes.md; motion/apple-design.md for gesture physics and fluid interfaces; motion/view-transitions/ for React's View Transition API; motion/perf-additions.md; motion/vocabulary.md to name an effect
a11yMake accessible, keyboard, screen reader, focus, formsa11y/index.md, then its files per subtopic
hardenProduction-ready, edge cases, real data, offline, metadataharden/index.md, harden/resilience-matrix.md, harden/adaptation-patterns.md, harden/performance-diagnostics.md, harden/metadata.md

Generation guardrail: when writing new UI from scratch in any mode, also load craft/generation-guardrails.md (terse MUST/NEVER rules).

Course preference: if references/course/ contains files, prefer them for their topics — craft-design-rules.md and friends extend craft; the motion-* files extend and deepen motion (CSS, Motion for React, gestures, scroll, debugging, performance, reduced-motion snippets, and the motion-brief interview). They are a licensed local install; never copy from them into tracked files.

Gates

  • Redesign gate: changing the visual identity (fonts, palette, layout language) is forbidden unless the user explicitly asked for a redesign. Only then load craft/deslop-audit.md and work audit-first within the existing stack.
  • Read-only requests are not this skill. "Review/audit/critique" → hand to pe-review. Findings received from pe-review are implemented here at their stated file:line.

House rules (bind every mode)

  • Press scale is exactly 0.96.
  • Spring bounce 0 unless the design direction's register is explicitly playful.
  • Reduced motion means gentler-not-zero — keep opacity/color transitions.
  • Exits use ease-out; accelerate-away only as a stated deliberate choice. motion/view-transitions/css-recipes.md uses ease-in on several ::view-transition-old (exit) snippets and one enter — apply ease-out instead.
  • will-change only on observed first-frame stutter, never prophylactically.
  • Custom easing from the named curves in the motion references — never invent novel curves ad hoc.
  • Stagger ~30–80ms between list items, ~100ms between semantic groups.
  • Never disable submit buttons; validate on submit.

Name mapping

References that route to better-* skills by name resolve inside this skill: better-ui → craft/ui/ · better-layout → craft/layout/ · better-typography → craft/typography/ · better-colors → craft/colors/ · better-writing → craft/writing/ · better-accessibility → a11y/ · better-interface → the pe-review skill.

Handoffs

Verdicts and audits → pe-review. Proof that the built feature works, with recordings → pe-verify (the natural last step after harden). Direction, mockups, variations → pe-design. Standalone brand assets → pe-brand-assets. Documenting the system you built → pe-design, understand mode.

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.