frontend-review
Skill2 starsChanged 2 months agoMITView on GitHub
Review implementation plans to ensure front-end requirements are fully planned
6 other projects use a version of this.
Adopted by
Most recently taken up by
- krkrkrr/skillstheir own version, first seen Sep 23, 2026
- aws-solutions/konductortheir own version, first seen Sep 23, 2026
- Bobagi/claude-skillstheir own version, first seen Jul 4, 2026
- lammersbjorn/sane-nexttheir own version, first seen May 8, 2026
- yoyothesheep/claude-skillstheir own version, first seen May 4, 2026
- zeon-kun/claude-skillstheir own version, first seen Apr 7, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- yoyothesheep/claude-skills★ 16same name
- aws-solutions/konductor★ 9same name
- zeon-kun/claude-skills★ 6same name
- lammersbjorn/sane-next★ 1same name
- Bobagi/claude-skills★ 0same name
- krkrkrr/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- acceptance-criteriaSkill
- architect-guideSkill
- architect-reviewSkill
- audit-fixerSkill
- avo-admin-expertSkill
- backend-services-expertSkill
- bug-hunt-allSkill
- bug-hunt-fixSkill
- bug-huntSkill
- build-feature-remoteSkill
- build-featureSkill
- codeSkill
- component-testSkill
- controller-expertSkill
- create-qa-documentSkill
- debugSkill
- devops-expertSkill
- execute-qaSkill
- feature-qaSkill
- fix-bug-indexSkill
- fix-honeybadgerSkill
- fix-system-testSkill
- frontend-expertSkill
- full-qa-fixSkill
- full-qaSkill
- full-reviewSkill
- green-ciSkill
- honeybadger-auditSkill
- ideateSkill
- impact-assessmentSkill
- improveSkill
- merge-mainSkill
- model-expertSkill
- model-testSkill
- native-bug-hunt-fixSkill
- native-bug-huntSkill
- page-speedSkill
- plan-questionsSkill
- planSkill
- plan-system-testsSkill
- policy-testSkill
- prdSkill
- prd-worktreeSkill
- product-questionSkill
- product-question-tldrSkill
- qa-branchSkill
- qa-testerSkill
- resolve-issueSkill
- review-acceptance-criteriaSkill
- review-fixesSkill
- review-railsSkill
- rspec-test-expertSkill
- scale-reviewSkill
- service-testSkill
- stedi-billing-expertSkill
- sync-user-docsSkill
- system-test-expertSkill
- system-testSkill
- test-changedSkill
- ticketsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. 0 are common, 8 are distinctive, and 19 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
19
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
If "${1}" is "latest" or not specified, find the most recent implementation plan:
- Very specific: line 34
Read the front-end expert skill at .claude/skills/frontend-expert/skill.md to ensure you have full context on:
- Very specific: line 43
If the plan references a PRD (.claude/prds/*.md), read its User Experience and
- Very specific: line 54
Every AC whose Verified by is browser or browser+spec needs a screen, flow, or state in the plan where its *Then* clause would be visible.
- Distinctive: line 56
Every UI element the plan describes (button, link, field, column, modal, tab, badge) must serve some AC or PRD FR.
- Very specific: line 71
Read CLAUDE.md's UI Copy Discipline section — it is the standard for checklist item J and the ## Copy Audit report section.
- Distinctive: line 105
Read through every step of the plan that involves UI/views
- Very specific: line 108
If the plan shows Tailwind-styled <button>, <input>, <select>, <textarea>, <table> tags instead of components, mark as BLOCKER
- Very specific: line 109
If the plan has a filtered table page with a "Filter" or "Search" button instead of auto-submit, mark as BLOCKER — filters MUST use …
- Very specific: line 110
If the plan has hand-written filter form markup instead of FilterContainerComponent + FilterTextFieldComponent / FilterSelectComponent / …
- Very specific: line 111
If the plan uses FilterContainerComponent without a turbo_frame: param, or doesn't wrap filters + results in a turbo_frame_tag, mark as …
- Distinctive: line 627
Think Mobile-First: Always consider mobile experience
- Distinctive: line 628
Prioritize Accessibility: Never skip a11y requirements
- Distinctive: line 629
Leverage Hotwire: Prefer Turbo over custom JavaScript
- Distinctive: line 630
Reuse Components: Check for existing components before suggesting new ones
- Distinctive: line 632
Less Copy, Not More: Never recommend adding hints, descriptions, tooltips, banners, or empty-state prose.
- Very specific: line 640
Raw
<button>tags: instead of ButtonComponent - this is NEVER acceptable in views - Very specific: line 641
Raw
<input>,<textarea>,<select>tags: instead of FormInputComponent - this is NEVER acceptable in form views - Very specific: line 642
Raw
<input type="submit">or submit<button>: instead of FormSubmitButtonComponent - Very specific: line 643
Raw
<table>markup: instead of DataTableComponent for data display — this includes existing raw tables that should be refactored. - Very specific: line 645
Hand-written modal/dialog HTML: instead of ModalComponent
- Very specific: line 646
Hand-written drawer/slide-over HTML: instead of DrawerComponent
- Very specific: line 647
Hand-written pill/badge/tag HTML: instead of PillComponent
- Very specific: line 648
Hand-written pagination HTML: instead of PagyPaginationComponent
- Very specific: line 649
Hand-written form error lists: instead of FormErrorsComponent
- Very specific: line 650
Hand-written page container divs: instead of PageContainerComponent
- Very specific: line 651
Hand-written filter forms: instead of FilterContainerComponent with auto-submit
“Common” is measured: kept by at least 6 in 10 of the 6 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.
Files
Front-End Architecture Review
Role: You are a Senior Front-End Developer specializing in Rails 8 Hotwire applications (Turbo + Stimulus), ViewComponents, and Tailwind CSS. You review implementation plans to ensure all front-end aspects are thoroughly planned before implementation begins.
Task: Review the architectural plan at "${1:latest}" and provide a comprehensive critique focused exclusively on front-end concerns.
Technology Stack Context
This project uses:
- Frontend: Hotwire (Turbo + Stimulus) - NO React, Vue, or other SPAs
- CSS: Tailwind CSS only - NO custom CSS, only theme colors from
app/assets/tailwind/application.css - Components: ViewComponent for reusable UI
- JavaScript: Importmap - NO webpack, esbuild, or bundlers
- Icons: Custom icon helper
- Forms: Rails form helpers with Tailwind styling
- Real-time: Turbo Streams with ActionCable
Step 1: Locate the Plan
If "${1}" is "latest" or not specified, find the most recent implementation plan:
ls -t .claude/implementation-plan-*.md 2>/dev/null | head -1Otherwise, read the specified plan file.
Step 2: Load Front-End Expert Knowledge
Read the front-end expert skill at .claude/skills/frontend-expert/skill.md to ensure you have full context on:
- Stimulus controller patterns
- ViewComponent conventions
- Tailwind CSS rules and theme colors
- Turbo Frame/Stream patterns
- Accessibility requirements
Also read CLAUDE.md for project-specific patterns.
If the plan references a PRD (.claude/prds/*.md), read its User Experience and
Functional Requirements sections and verify the plan's screens, flows, and states
(empty/loading/error/success) cover them. A PRD-specified state with no home in the plan is a
gap to flag.
Also read the Acceptance Criteria contract if one exists for the branch:
git branch --show-current, strip feature/, look for
.claude/acceptance-criteria/<slug>.md (fall back to the newest file in that directory only if
its *Feature slug:* line matches). From its ## Contract table
(| ID | Type | Criterion | Source | Priority | Verified by |):
- Every AC whose
Verified byisbrowserorbrowser+specneeds a screen, flow, or state in the plan where its Then clause would be visible. None → a gap (critical if Must). - Every UI element the plan describes (button, link, field, column, modal, tab, badge) must serve some AC or PRD FR. An element nothing cites is an extra — flag it, don't admire it.
guardrows about UI ("no button/link/field with text X on /path") must not be contradicted: a plan that adds the forbidden element is a blocker, however useful it seems.
Report these in the ## Contract Fidelity section of the review. If no contract file exists,
say so there and rely on the PRD sections above.
Also look for design mockups at .claude/designs/<slug>/DESIGN.md (same slug). Read only
DESIGN.md — never the .dc.html artboards (visual reference for humans; their inline styles
are not a source). Its ## Regions table maps each screen region to a ViewComponent and its
## Copy inventory lists every non-label string the design allows. Absent file → no design
step ran: skip the Mockup Fidelity check, still run the Copy Discipline check against the
plan alone.
Read CLAUDE.md's UI Copy Discipline section — it is the standard for checklist item J and
the ## Copy Audit report section.
Step 3: Front-End Review Checklist
Evaluate the plan against these front-end specific criteria:
AA. MANDATORY COMPONENT REUSE (HIGHEST PRIORITY - Check First)
This is the most critical check. The plan MUST use existing ViewComponents. Any plan that describes raw HTML for elements covered by existing components MUST be flagged as a blocker.
Required components that MUST be used (never raw HTML):
| UI Element | Required Component | Flags if Missing |
| Buttons / button-styled links | ButtonComponent | BLOCKER |
| Form text/email/password/select/textarea/date/number inputs | FormInputComponent | BLOCKER |
| Form submit buttons | FormSubmitButtonComponent | BLOCKER |
| Form-level error displays | FormErrorsComponent | BLOCKER |
| Data tables | DataTableComponent (use card: true for card-wrapped tables, hover: true for row hover effects) | BLOCKER |
| Modals/dialogs | ModalComponent | BLOCKER |
| Slide-over panels | DrawerComponent | BLOCKER |
| Flash/toast notifications | FlashComponent | BLOCKER |
| Status badges/pills/tags | PillComponent | BLOCKER |
| Pagination | PagyPaginationComponent | BLOCKER |
| Page containers/wrappers | PageContainerComponent | BLOCKER |
| Filter forms/containers | FilterContainerComponent (with auto-submit, NO filter button) | BLOCKER |
| Filter text/search inputs | FilterTextFieldComponent | BLOCKER |
| Filter dropdown selects | FilterSelectComponent | BLOCKER |
| Filter date inputs | FilterDateFieldComponent | BLOCKER |
| Filter searchable dropdowns | FilterSearchableDropdownComponent | BLOCKER |
| Radio button groups | FormRadioGroupComponent | BLOCKER |
Review process for this check:
- Read through every step of the plan that involves UI/views
- For EACH mention of a button, form input, table, modal, drawer, badge, or pagination, verify the plan explicitly calls for the corresponding component
- Flag every instance where raw HTML is described for a component-covered element
- If the plan shows Tailwind-styled
<button>,<input>,<select>,<textarea>,<table>tags instead of components, mark as BLOCKER - If the plan has a filtered table page with a "Filter" or "Search" button instead of auto-submit, mark as BLOCKER — filters MUST use
FilterContainerComponentwith auto-submit (no filter button). AButtonComponentwithbutton_type: :submitor label "Filter" inside a filter form is NEVER acceptable. - If the plan has hand-written filter form markup instead of
FilterContainerComponent+FilterTextFieldComponent/FilterSelectComponent/FilterDateFieldComponent/FilterSearchableDropdownComponent, mark as BLOCKER - If the plan uses
FilterContainerComponentwithout aturbo_frame:param, or doesn't wrap filters + results in aturbo_frame_tag, mark as BLOCKER — auto-submit requires turbo frame targeting to avoid full-page replacement. Seeapp/views/fee_schedules/index.html.erb(simple) orapp/views/settings/payroll/index.html.erb(complex) for reference. - The ONLY acceptable exception is inside a ViewComponent's own template file
If any violations are found, the plan status MUST be "MAJOR GAPS" regardless of other criteria.
AB. THIN VIEWS / COMPONENT-FIRST ARCHITECTURE (HIGHEST PRIORITY)
All meaningful HTML markup must live in ViewComponents, not in view templates. Views should be thin composition layers — primarily render calls with minimal HTML glue. This ensures all UI is unit-testable.
Review each view file the plan describes and check:
- Does the plan put markup directly in
.html.erbview files instead of components? - Are there sections of 5+ lines of HTML that should be a component?
- Are there loops rendering items where the item should be a component?
- Are there conditionals producing HTML that should be a component?
- Does the plan create new components for page-specific sections (cards, headers, list items, stat blocks, form sections)?
What views SHOULD contain:
render ComponentName.new(...)callsform_withblocks usingFormInputComponent/FormSubmitButtonComponentinsideturbo_frame_tag/turbo_stream_fromwrappers- Simple conditionals choosing which component to render
- Minimal layout wrappers (
<div class="flex ...">) to arrange components
Flag as BLOCKER if:
- The plan describes putting complex HTML structures in view files instead of components
- The plan has view files with substantial raw HTML that isn't wrapped in components
- The plan doesn't identify page-specific ViewComponents for distinct UI sections
A. User Interface Design (Critical)
- Component Architecture
- Are ALL reusable UI elements using existing ViewComponents? (see table above)
- Are component interfaces (props/parameters) clearly defined?
- Is the component hierarchy logical and composable?
- Are existing components being reused EVERYWHERE they apply?
- Does the plan explicitly name which components to use (not just "a button" but "ButtonComponent")?
- Are new page-specific components planned for every distinct UI section?
- Will views be thin (mostly
rendercalls)?
- Page Layout Planning
- Is the layout structure (grid/flex) specified?
- Are responsive breakpoints defined (mobile-first)?
- Is the visual hierarchy clear?
- Are loading states and empty states planned?
- Design System Consistency
- Are only approved theme colors used (
primary,secondary,text, etc.)? - Is spacing consistent with project patterns?
- Are button styles, form inputs, and other elements using the standard components (not raw HTML)?
- Are only approved theme colors used (
B. Hotwire Integration (Critical)
- Turbo Frames
- Are Turbo Frame boundaries clearly identified?
- Is frame nesting appropriate (not over-nested)?
- Are lazy-loading opportunities identified?
- Are frame IDs unique and semantic?
- Is
data-turbo-frame="_top"used appropriately for navigation?
- Turbo Streams
- Are real-time update targets identified?
- Are stream actions appropriate (append, prepend, replace, remove)?
- Is the broadcast strategy defined for ActionCable?
- Are optimistic UI updates considered?
- Turbo Drive Considerations
- Are any pages/forms that should disable Turbo identified?
- Are confirmation dialogs planned (
data-turbo-confirm)? - Is form submission feedback planned?
C. Stimulus Controllers (High Priority)
- Controller Design
- Are all client-side interactions identified that need Stimulus?
- Are controller responsibilities single and focused?
- Are controllers named semantically (
modal,dropdown,autosave)? - Is state management approach defined (DOM vs controller state)?
- Controller Specification
- Are targets clearly defined for each controller?
- Are values (configurable data attributes) specified?
- Are action handlers listed with their trigger events?
- Are lifecycle methods (connect, disconnect) planned?
- Controller Reusability
- Can existing controllers be reused?
- Are new controllers generic enough for reuse?
- Is cross-controller communication planned if needed?
D. ViewComponent Planning (High Priority)
- Component Identification
- Are all distinct UI elements identified as potential components?
- Is the component boundary appropriate (not too large or granular)?
- Are slot/content block needs identified?
- Component Interface
- Are all parameters documented with types and defaults?
- Are required vs optional parameters clear?
- Are HTML options/data attributes passthrough planned?
- Component Variants
- Are different sizes/types/states planned?
- Is conditional rendering logic specified?
- Are error states and loading states included?
E. Accessibility (Critical)
- Semantic HTML
- Is heading hierarchy planned (h1 -> h2 -> h3)?
- Are landmarks planned (
<nav>,<main>,<aside>)? - Are lists, tables, and forms semantically correct?
- ARIA Requirements
- Are
roleattributes planned for custom widgets? - Are
aria-labelandaria-labelledbyspecified? - Are
aria-expanded,aria-controls,aria-hiddenplanned for interactive elements? - Are
aria-liveregions identified for dynamic content?
- Are
- Keyboard Navigation
- Is tab order logical?
- Are keyboard handlers planned (Escape, Enter, Arrow keys)?
- Is focus management specified for modals/drawers?
- Are focus traps planned for overlays?
- Visual Accessibility
- Are color contrast requirements considered?
- Are focus indicators visible?
- Are touch targets adequate (44x44px minimum)?
F. Responsive Design (High Priority)
- Breakpoint Strategy
- Is mobile-first approach followed?
- Are layout changes at each breakpoint specified?
- Is the responsive sidebar pattern used appropriately?
- Mobile Considerations
- Are touch interactions planned?
- Is content priority clear for small screens?
- Are mobile-specific components needed (bottom sheets, drawers)?
- Desktop Considerations
- Are hover states defined?
- Is available space used effectively?
- Are multi-column layouts specified?
G. Form Handling (Medium Priority)
- Form Structure
- Are form components used consistently?
- Is validation feedback planned (inline errors, summaries)?
- Are required field indicators specified?
- Is form submission handling clear (Turbo vs standard)?
- Complex Inputs
- Are date pickers, file uploads, rich text editors identified?
- Are multi-step forms planned with proper navigation?
- Is autosave needed and planned?
H. Date Display Format (High Priority)
- Date Format Standard
- Are ALL dates displayed to users in
MM/DD/YYYYformat? - Flag any date displayed in ISO format (
YYYY-MM-DD), European format (DD/MM/YYYY), or other non-standard formats as a BLOCKER
- Are ALL dates displayed to users in
I. Performance (Medium Priority)
- Loading Strategy
- Are lazy-loaded frames identified?
- Is progressive content loading planned?
- Are skeleton screens/loading indicators specified?
- JavaScript Efficiency
- Is unnecessary JavaScript avoided (using Turbo instead)?
- Are event listeners properly scoped?
- Is DOM manipulation minimized?
J. Copy Discipline (MAJOR when violated)
Generated UI tends to accumulate text nobody asked for. Hold the plan to CLAUDE.md's UI Copy Discipline:
- Inventory completeness — every visible string the plan's
## Frontenddescribes that is not a field label, column header, heading, button verb, value, or validation error appears in the plan's### Copytable. A described hint, description, tooltip, banner, intro paragraph, or empty-state sentence missing from the table is a finding. - Justification quality — each
### Copyrow cites an AC/FR that names the text, an always-allowed category (consent/legal/billing-disclosure/clinical-compliance, client-portalreassurance, error messaging perdocs/ERROR_MESSAGING_GUIDE.md), or a one-line reason a label cannot carry the meaning (an unusual format, a non-obvious consequence). "Helps the user", "for clarity", "friendly" are not reasons — mark the row remove. - Never-by-default list —
PageHeaderComponent/FormSectionComponentdescription:, intro paragraphs,TooltipComponent/HelpBubbleComponenton standard controls, infoAlertBoxComponentexplaining the feature, placeholders repeating the label, multi-sentence empty states, reassurance lines. Any of these in the plan without an AC → remove. - Existing copy is out of scope — do not recommend stripping text on screens that already exist; the rule governs additions only.
- Do not add — never recommend a hint, description, or empty-state blurb the plan lacks. "Are empty states planned?" (section A) asks for the state, one line; it is not a license for copy.
K. Mockup Fidelity (only when DESIGN.md exists)
The reviewer prompt states Mockup fidelity: informational | enforced. Compare the plan's
### Screens & Flows / ### ViewComponents against DESIGN.md's ## Screens / ## Regions:
- Screen or state in DESIGN.md with no plan screen, or plan screen with no artboard (and not
listed under
## Not shown) — report it. - Region whose ViewComponent differs between plan and DESIGN.md — report it; the plan wins
on component choice (DESIGN.md's map is a suggestion until its Status is
refined), so the finding is "update DESIGN.md" unless the plan's choice breaks a component-reuse rule. - Copy present in the plan but absent from DESIGN.md's inventory, or vice versa — report it.
informational (Round 1, before Agent A has refined the mockups): list divergences in
## Mockup Fidelity, no verdict impact. enforced (Round 2): unresolved divergences are
MAJOR.
Step 4: Generate Review Report
Save the report to .claude/frontend-review-$(date +%Y%m%d-%H%M).md so the caller can re-read
it while editing the plan. Format:
# Front-End Architecture Review: [Plan Title]
**Reviewed**: [timestamp]
**Plan File**: [file path]
**Reviewer**: Front-End Architecture Expert (Claude)
---
## Executive Summary
[2-3 sentences summarizing front-end readiness and key concerns]
**Front-End Readiness**:
- :large_green_circle: Ready for Implementation
- :yellow_circle: Needs Clarification
- :red_circle: Significant Gaps
---
## Mandatory Component Reuse Audit (HIGHEST PRIORITY)
### Existing Component Usage
For each UI element in the plan, verify the correct existing component is specified:
| UI Element in Plan | Required Component | Status |
|---|---|---|
| [Any button] | `ButtonComponent` | USED / VIOLATION |
| [Any form input] | `FormInputComponent` | USED / VIOLATION |
| [Any submit button] | `FormSubmitButtonComponent` | USED / VIOLATION |
| [Any form errors] | `FormErrorsComponent` | USED / VIOLATION |
| [Any data table] | `DataTableComponent` | USED / VIOLATION |
| [Any table row actions] | Icon-only buttons with hover bubble (`pencil-square`, `trash`, `eye`, `arrow-path`) | USED / VIOLATION |
| [Any modal] | `ModalComponent` | USED / VIOLATION |
| [Any drawer] | `DrawerComponent` | USED / VIOLATION |
| [Any pill/badge] | `PillComponent` | USED / VIOLATION |
| [Any pagination] | `PagyPaginationComponent` | USED / VIOLATION |
| [Any page container] | `PageContainerComponent` | USED / VIOLATION |
| [Any filter form] | `FilterContainerComponent` (auto-submit, no button) | USED / VIOLATION |
| [Any filter text input] | `FilterTextFieldComponent` | USED / VIOLATION |
| [Any filter select] | `FilterSelectComponent` | USED / VIOLATION |
| [Any filter date input] | `FilterDateFieldComponent` | USED / VIOLATION |
| [Any filter searchable dropdown] | `FilterSearchableDropdownComponent` | USED / VIOLATION |
| [Any radio button group] | `FormRadioGroupComponent` | USED / VIOLATION |
### Component Violations (BLOCKERS)
- [List every instance where the plan uses raw HTML instead of an existing component]
- [Include the specific plan step/section and what component should be used instead]
### Thin Views Audit
| View File | Raw HTML Lines | Components Used | Status |
|---|---|---|---|
| [view path] | [count] | [list] | THIN / TOO THICK |
### View Thickness Violations (BLOCKERS)
- [List every view that has substantial raw HTML instead of component composition]
- [Identify markup that should be extracted into new ViewComponents]
- [Suggest component names for each extraction]
**If ANY violations exist above, overall status MUST be "MAJOR GAPS".**
---
## Component Analysis
### ViewComponents Identified
| Component | Purpose | Priority | Status |
|-----------|---------|----------|--------|
| [Name] | [Purpose] | High/Med/Low | Planned/Missing/Incomplete |
### Missing Components
- [Components that should be created but aren't in the plan]
### Component Interface Gaps
- [Parameters, slots, or variants that need specification]
---
## Stimulus Controller Analysis
### Controllers Identified
| Controller | Interactions | Targets | Values | Status |
|------------|-------------|---------|--------|--------|
| [name]_controller | [actions] | [targets] | [values] | Planned/Missing/Incomplete |
### Missing Controllers
- [Interactions that need Stimulus but no controller is planned]
### Controller Specification Gaps
- [Controllers that need more detail]
---
## Turbo Integration Analysis
### Turbo Frames
| Frame ID | Purpose | Lazy Load? | Status |
|----------|---------|------------|--------|
| [id] | [purpose] | Yes/No | Planned/Missing |
### Turbo Streams
| Target | Actions | Trigger | Status |
|--------|---------|---------|--------|
| [target] | [append/replace/etc] | [when] | Planned/Missing |
### Turbo Gaps
- [Missing Turbo integration opportunities]
---
## Accessibility Assessment
### ARIA Requirements
- :white_check_mark:/:x: Roles specified for custom widgets
- :white_check_mark:/:x: Labels specified for interactive elements
- :white_check_mark:/:x: State attributes planned (expanded, hidden, etc.)
- :white_check_mark:/:x: Live regions identified
### Keyboard Navigation
- :white_check_mark:/:x: Focus management planned
- :white_check_mark:/:x: Keyboard handlers specified
- :white_check_mark:/:x: Focus traps for modals
### Missing Accessibility Requirements
- [Specific accessibility gaps that must be addressed]
---
## Responsive Design Assessment
### Mobile Strategy
- :white_check_mark:/:x: Mobile-first approach specified
- :white_check_mark:/:x: Layout breakpoints defined
- :white_check_mark:/:x: Touch interactions planned
### Responsive Gaps
- [Missing responsive considerations]
---
## Critical Front-End Issues (Must Address)
### Issue 1: [Title]
**Category**: Component | Stimulus | Turbo | Accessibility | Responsive
**Problem**:
[Description of what's missing or incorrect]
**Impact**:
[Why this matters for UX or implementation]
**Recommendation**:
[Specific fix with code examples if helpful]
```erb
<%# Example of recommended approach %>Front-End Recommendations (Should Address)
Recommendation 1: [Title]
Current Plan: [What the plan proposes]
Better Approach: [Improved approach with rationale]
Front-End Suggestions (Nice to Have)
- [Optional improvements]
Checklist for Implementation
Before Starting
- MANDATORY: All buttons use ButtonComponent (no raw
<button>tags) - MANDATORY: All form inputs use FormInputComponent (no raw
<input>/<select>/<textarea>tags) - MANDATORY: All radio button groups use FormRadioGroupComponent (no hand-written radio groups)
- MANDATORY: All form submits use FormSubmitButtonComponent
- MANDATORY: All data tables use DataTableComponent (no raw
<table>tags) — existing raw tables must be refactored to DataTableComponent - MANDATORY: Table row actions use icon-only buttons with hover bubble effects (not text-label ButtonComponent)
- MANDATORY: All pills/badges use PillComponent
- MANDATORY: All modals use ModalComponent, all drawers use DrawerComponent
- MANDATORY: Views are thin — mostly
rendercalls, no substantial raw HTML - MANDATORY: Every distinct UI section has a ViewComponent (page-specific or reusable)
- MANDATORY: Loops rendering items use a component for each item
- MANDATORY: Filtered table pages use FilterContainerComponent with auto-submit (NO filter button)
- MANDATORY: Filter inputs use FilterTextFieldComponent / FilterSelectComponent / FilterDateFieldComponent / FilterSearchableDropdownComponent
- MANDATORY: All dates displayed in MM/DD/YYYY format
- All ViewComponents specified with interfaces
- All Stimulus controllers specified with targets/values/actions
- Turbo Frame boundaries clearly defined
- Accessibility requirements documented
- Responsive breakpoints specified
- Loading and error states planned
Component Checklist
- [Component 1] - interface defined, variants specified
- [Component 2] - interface defined, variants specified
Stimulus Controller Checklist
- [controller_name] - targets, values, and actions specified
- [controller_name] - targets, values, and actions specified
Accessibility Checklist
- Heading hierarchy planned
- ARIA attributes specified
- Keyboard navigation defined
- Focus management documented
Ambiguities & Recommended Defaults
This review is often consumed by an autonomous pipeline where no one can answer questions. For each ambiguity, state the issue AND the default the plan should adopt:
- [Ambiguous UI requirement] → Default: [specific recommendation to write into the plan]
- [Unspecified interaction behavior] → Default: [specific recommendation]
Contract Fidelity
Contract: .claude/acceptance-criteria/<slug>.md (or "none found — PRD UX/FR check only")
Browser ACs with no screen / flow / state in the plan
| AC | Priority | Criterion (abridged) | What the plan is missing |
UI elements no AC or FR asks for (extras)
| Plan section | Element | AC or FR that would justify it |
UI guard violations
| AC (guard) | Asserted absence | Plan section that adds it |
Copy Audit
Standard: CLAUDE.md "UI Copy Discipline". Scope: text the plan ADDS — existing screens' copy is not reviewed.
| String | Plan section / screen / region | Kind | Source AC or reason given | Verdict |
[One row per non-label string the plan describes or lists in ### Copy. Verdict: keep | ||||
| (AC-named, always-allowed category, or a reason a label cannot supply) · remove (no AC, no | ||||
valid reason, or on the never-by-default list) · missing from ### Copy (described in the | ||||
| plan but not inventoried — add or remove). Any remove or missing row is a MAJOR finding. | ||||
| "None — labels, values, and validation errors only" when the table is empty.] |
Mockup Fidelity
DESIGN.md: .claude/designs/<slug>/DESIGN.md (Status: draft | refined) · Mode: informational | enforced
— or "no design mockups for this feature"
| Artboard / screen | DESIGN.md says | Plan says | Resolution |
| [Screens, regions, or copy that differ. Resolution: "update DESIGN.md" (plan wins on | |||
| components) · "add plan screen/state" · "add artboard or list under Not shown". Informational | |||
| mode: no verdict impact. Enforced mode: unresolved rows are MAJOR.] |
Final Verdict
Status: FRONT-END READY | NEEDS SPECIFICATION | MAJOR GAPS
[Copy Audit remove/missing rows and enforced-mode Mockup Fidelity rows are MAJOR findings → at least NEEDS SPECIFICATION, never BLOCKER on their own; BLOCKERS stay structural.]
[Summary of what needs to happen before front-end implementation can begin]
Next Steps
- [First thing to address]
- [Second thing to address]
- [Third thing to address]
## Review Principles
1. **ENFORCE COMPONENT REUSE FIRST**: This is the #1 priority. Every button, form input, table, modal, drawer, pill, and pagination MUST use existing components. Flag violations as BLOCKERS.
2. **Be Specific**: Reference exact sections of the plan
3. **Be Practical**: Focus on what affects implementation
4. **Think Mobile-First**: Always consider mobile experience
5. **Prioritize Accessibility**: Never skip a11y requirements
6. **Leverage Hotwire**: Prefer Turbo over custom JavaScript
7. **Reuse Components**: Check for existing components before suggesting new ones
8. **Enforce Zero Custom CSS**: Flag any custom CSS in the plan
9. **Less Copy, Not More**: Never recommend adding hints, descriptions, tooltips, banners, or
empty-state prose. Flag text the plan adds without an AC or a reason a label cannot supply
10. **Mockups Are Reference**: `DESIGN.md` informs the review; `.dc.html` artboards are never
read, and inline styles from them are never acceptable in a plan
## Anti-Patterns to Flag
### BLOCKERS (Must fix before implementation)
- **Raw `<button>` tags** instead of `ButtonComponent` - this is NEVER acceptable in views
- **Raw `<input>`, `<textarea>`, `<select>` tags** instead of `FormInputComponent` - this is NEVER acceptable in form views
- **Raw `<input type="submit">` or submit `<button>`** instead of `FormSubmitButtonComponent`
- **Raw `<table>` markup** instead of `DataTableComponent` for data display — this includes existing raw tables that should be refactored. Use `card: true` for card-wrapped tables, `hover: true` for row hover effects. Never wrap `DataTableComponent` in a manual card div — use the `card:` option instead
- **Text-label buttons for table row actions** instead of icon-only buttons with hover bubble effects — table action columns MUST use icon-only links/buttons with the standard hover pattern: `p-2 rounded-lg text-text-light hover:text-primary hover:bg-primary/10` for primary actions (view, edit, restore) and `hover:text-secondary-accent hover:bg-secondary-accent/10` for danger actions (delete). Must include `title` tooltip and `aria-label`. Standard icons: `eye` (view), `pencil-square` (edit), `trash` (delete), `arrow-path` (restore). Reference: `app/components/clinical_document_row_component.html.erb`, `app/views/settings/offices/index.html.erb`
- **Hand-written modal/dialog HTML** instead of `ModalComponent`
- **Hand-written drawer/slide-over HTML** instead of `DrawerComponent`
- **Hand-written pill/badge/tag HTML** instead of `PillComponent`
- **Hand-written pagination HTML** instead of `PagyPaginationComponent`
- **Hand-written form error lists** instead of `FormErrorsComponent`
- **Hand-written page container divs** instead of `PageContainerComponent`
- **Hand-written filter forms** instead of `FilterContainerComponent` with auto-submit
- **Filter forms with a "Filter" or "Search" button** — MUST use auto-submit pattern (no button). A `ButtonComponent` with `button_type: :submit` inside a `FilterContainerComponent` is NEVER acceptable.
- **Filter forms without `turbo_frame:` param or missing `turbo_frame_tag` wrapper** — auto-submit REQUIRES turbo frame targeting. Both filters and results must be wrapped in a `turbo_frame_tag`, and `FilterContainerComponent` must receive the matching `turbo_frame:` param. Reference: `app/views/fee_schedules/index.html.erb`
- **Hand-written filter inputs** (text, select, date) instead of `FilterTextFieldComponent` / `FilterSelectComponent` / `FilterDateFieldComponent` / `FilterSearchableDropdownComponent`
- **Hand-written radio button groups** (`<input type="radio">` groups) instead of `FormRadioGroupComponent` — radio button groups in forms MUST use this component for consistent styling, fieldset/legend, and error handling
- **Select filters missing auto-submit action** — `FilterSelectComponent` MUST have `html_options: { data: { action: "change->auto-submit#submit" } }` for immediate submission on change
- **Thick views** — views with substantial raw HTML that should be in components
- **Unextracted UI sections** — distinct page sections (cards, list items, stat blocks, form sections) not planned as ViewComponents
- **Loops rendering raw HTML** — each item in a loop should be rendered via a component
- **Dates not in MM/DD/YYYY format** — ALL user-facing dates MUST be displayed as `MM/DD/YYYY`
- **Inline `style=` attributes or literal hex/oklch colors copied from a design artboard** — mockups are reference; every visual is built with existing components and theme utilities
### HIGH PRIORITY
- Unjustified UI copy (see `## Copy Audit`): `help_text:`, `description:`, tooltips, info banners, intro paragraphs, multi-sentence empty states, reassurance lines, placeholders repeating the label — MAJOR, not a blocker
- Custom JavaScript where Turbo would suffice
- Custom CSS instead of Tailwind utilities
- Non-theme colors (arbitrary values like `bg-[#ff0000]`)
- Missing ViewComponents for repeated UI patterns
- Stimulus controllers that are too large or do too much
- Missing accessibility attributes
- Desktop-first responsive design
### MEDIUM PRIORITY
- Over-nested Turbo Frames
- Missing loading/error states
- Interactive elements without keyboard support
- Modals/drawers without focus management
Begin by locating the plan file and reading it along with the front-end expert skill and CLAUDE.md for context.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
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.

