form-builder
Installation
SKILL.md
form-builder {Frontend} (v1.0)
"Ship pixels that perform, accessible by default."
Purpose
Complex form construction. Multi-step, conditional fields, validation (Zod + React Hook Form / Angular Reactive Forms), Firebase submission. [EXPLICIT] When to use: Frontend development within the Firebase/Google/Hostinger stack.
Core Principles
- Law of Semantics: HTML first, CSS second, JS third. Semantic markup is non-negotiable. [EXPLICIT]
- Law of Performance: Lighthouse > 90. Lazy load images. Code-split routes. Critical CSS inline. [EXPLICIT]
- Law of Accessibility: WCAG 2.1 AA minimum. Keyboard navigable. Screen reader tested. ARIA where needed. [EXPLICIT]
Core Process
Phase 1: Structure
- Define page/component structure with semantic HTML5. [EXPLICIT]
- Apply reusable assets from
assets/:form-control.css,form-step-template.html, andvalidation-policy.json. [EXPLICIT] - Configure responsive breakpoints (mobile-first). [EXPLICIT]
Phase 2: Build
- Implement with framework (React/Angular) or vanilla HTML/CSS/JS. [EXPLICIT]
- Integrate Firebase services (Auth, Firestore listeners, Storage). [EXPLICIT]
- Add loading/error states for async operations. [EXPLICIT]
- When input is structured, render a deterministic semantic prototype with
scripts/render-form-schema.py --schema <schema.json>. [EXPLICIT]