reusable-components
Installation
SKILL.md
Structuring Views into Components in Vaadin 25
Use the Vaadin MCP tools (search_vaadin_docs, get_component_java_api) to look up the latest documentation whenever uncertain about a specific API detail. Always set vaadin_version to "25" and ui_language to "java".
For an exact Java API signature or to read source, use the javadoc MCP (mcp__javadoc__* — find via ToolSearch javadoc if not loaded) to read Javadoc and sources from Maven Central instead of unpacking jars from ~/.m2.
When to Extract Components
Not every view needs decomposition. Extract when you see these signals:
- View exceeds ~200 lines — hard to navigate and reason about
- Cohesive groups — a cluster of components that form a logical unit (e.g., a filter bar, a detail panel)
- Repeated patterns — the same group of components appears in multiple views
- Isolated state — a section manages its own state independently from the rest of the view
Before and After
A monolithic OrderView with filters, a grid, and a detail panel all in one class: