Reach for this when you're wiring up Turbo Frame form submissions and need validation errors to render inline without breaking user focus. It covers the full lifecycle: create/edit flows, inline editing, typeahead search with validation, modal forms, and the external form controls pattern. The guardrails are solid reminders about keeping one source of truth and using the HTML form attribute when controls live outside the form DOM. References are dated and selective, so you load exactly what you need for inline edits, modals, or typeahead. If your form problem bleeds into navigation history or real-time updates, it explicitly hands off to neighbor skills.

skills.sh installs
230
GitHub stars
153
last updated
Aug 21, 2026

Install

$ npx -y skills add thehotwireclub/hotwire_club-skills --skill hwc-forms-validation --agent claude-code

Installs into .claude/skills of the current project.

Files

Forms & Validation

Implement form-centric Hotwire workflows with Turbo Frames and Stimulus.

Core Workflow

  1. Identify the form flow: create/edit, inline edit, typeahead, modal form, or external controls.
  2. Wrap the form interaction scope in a Turbo Frame when validation errors must rerender in place.
  3. Return 422 for validation failures and 303 for successful redirects.
  4. Handle post-submit behavior with turbo:submit-end only when Turbo defaults are insufficient.
  5. Preserve user context during rerenders (focus/caret/selection).

Guardrails

  • Keep one source of truth for input state; avoid duplicate controls across frame and non-frame DOM.
  • Use the HTML form attribute for controls rendered outside the target <form> hierarchy.
  • Avoid firing submit logic on every keystroke without debounce/throttle.
  • Keep post-submit behavior explicit when form responses update only a frame.

Load References Selectively

Open only the file needed for the current request.

Sponsors

Details

Repository
github.com/thehotwireclub/hotwire_club-skills
Categories
Backend & APIs, Design & UI/UX
First seen
Jun 3, 2026

More from thehotwireclub/hotwire_club-skills

All 6
1arco-design avatararco-designarco-design/arco-design-skillArco Design React UI component library reference (@arco-design/web-react). Use this skill whenever the user asks to build a page, create a UI, write frontend co229skills.sh installs
2yonatangross avatardoctoryonatangross/orchestkitOrchestKit doctor for health diagnostics across manifest integrity, hook configuration, skill validation, agent frontmatter, MCP server connectivity, CC version227skills.sh installs
3huggingface avatarhugging-face-trackiohuggingface/skillsTrack and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing alerts for training diagnostics, or retr226skills.sh installs
4thehotwireclub avatarhwc-ux-feedbackthehotwireclub/hotwire_club-skillsImplement cross-cutting Hotwire UX feedback patterns: loading states, busy indicators, progress bars, optimistic UI, render interception, and view/page transiti225skills.sh installs
5srbhr avatarnextjs15-performancesrbhr/resume-matcherNext.js 15 critical performance fixes. Use when writing React components, data fetching, Server Actions, or optimizing bundle size.223skills.sh installs
6thehotwireclub avatarhwc-navigation-contentthehotwireclub/hotwire_club-skillsBuild Hotwire navigation and content-discovery flows: Turbo Frame pagination, tabbed navigation, lazy loading, faceted filtering/search, cache lifecycle, scroll223skills.sh installs