/meta-planning-web-planning:meta-planning-web-planningfrom meta-planning-web-planning
Provides frameworks for writing frontend specifications covering UI-state completeness, component boundaries, form validation contracts, state ownership, and measurable success criteria.
Ships in meta-planning-web-planning. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Quick Guide: A UI spec is a contract about what the user sees in every state, and a state nobody specified still renders — as whatever the developer improvised. For each data-driven surface, specify loading, error, empty and success; for each UI piece, decide reuse, extend or create against a named component; for each form field, the rule, when it fires and the exact message; for each piece of state, one owner; and for each success criterion, what a reviewer will see. Apply a framework only where the feature touches its artifact — a feature with no form carries no form contract.
Detailed Resources:
<critical_requirements>
Specify loading, error, empty and success for every data-driven surface, or rule a state out in writing. An unspecified state still renders — as a blank region, a spinner that never resolves, or whatever the developer guessed.
Decide reuse, extend or create for each UI piece, naming by file and lines the existing component each decision was measured against. A spec that says "a modal" gets a new modal; one that names the existing modal gets its focus handling and dismissal for nothing.
Give each form field its rule, when the rule fires, and the exact message. Timing and wording left open are decided form by form, so two forms in one product validate differently.
Bound the change to named files and directories, with a do-not-touch list naming each shared store, component and auth surface the feature only consumes. Without one, the feature "fixes" a shared store or component on the way through and breaks its other consumers.
Name one owner for each piece of state the feature introduces. Two owners drift apart after the first update, and state in the wrong owner is the costliest thing in the feature to move later.
Write each success criterion as something a reviewer can see or do in the UI, with how it is checked. "Validation works" is met by any implementation; "an invalid email shows 'Enter a valid email address' below the field" is met by one.
</critical_requirements>
Auto-detection: UI spec, frontend spec, component spec, page spec, form spec, modal spec, loading state, empty state, error state, skeleton screen, validation message, validation timing, error summary, client state ownership, URL state, do-not-touch list, UI acceptance criteria
Applies to:
Handled elsewhere:
<decision_framework>
Each yes adds a section. A section the feature never touches is left out rather than filled with "N/A".
Inside a section that applies, the rule reverses: a state or field that cannot occur is ruled out in writing, because silence there reads as an oversight.
</decision_framework>
Every data-driven surface gets four states, each specified or ruled out. A surface rendering local data — a cart held in a store, recently viewed items — still gets an empty state; its loading and error are ruled out.
- Loading — what renders, and after what delay it appears
- Error — the message, whether Retry is offered, and what stays on screen
- Empty — first use, and no results for the current filters, where they differ
- Success — one item, many, and overflow: pagination, truncation or scroll
Where the data refreshes after first load, also specify what stays visible during the refresh and what a failed refresh does to data already on screen.
Full fragments: examples/core.md
For each UI piece the feature adds, the spec decides reuse, extend or create, and names what it measured against by file and lines.
- [UI piece] — reuse | extend | create [file:lines] — [what it supplies, or why nothing fits]
- Edit dialog — reuse components/modals/modal-container.tsx:12-78 — focus trap, Escape, overlay
The references a frontend spec usually needs are the nearest component, form, dialog and store, the wrapper the codebase calls its API through, and the validation helpers its forms already share — each at lines someone actually read. The decision covers utilities as well as UI pieces: validation helpers, API client wrappers and shared inputs are named for reuse rather than re-created, because two copies of one email check soon disagree. Extending a shared component changes it for every consumer, so an "extend" moves that file into the modified list and says what its other consumers see.
Full fragments: examples/core.md
A form is specified field by field, then as a whole:
Validation timing is a product-wide convention, so the spec names the one the codebase already uses rather than choosing per form. The two common conventions: validate on submit, then show an error summary that takes focus and links to each field; or flag a field when the user leaves it and clear the error as soon as the input is valid. Neither flags a field while it is first being typed into.
Full fragments: examples/core.md
Each piece of state the feature introduces or touches has exactly one named owner.
- [ ] Owner named — a store, one component's local state, or the URL
- [ ] Derived values computed from existing state, never stored beside it
- [ ] Server data read through the existing data-access layer, not copied into a store
- [ ] Shareable view state — filters, sort, page, active tab — in the URL
- [ ] Existing store shapes unchanged unless the spec says otherwise
The URL test is whether someone opening the link should see the same view. An open dialog and an unsaved edit fail it and stay out.
Full fragments: examples/core.md
The spec's file list says what the feature changes; the frontend half of the fence names the shared surfaces it consumes and leaves alone, each with who depends on it, and a command that proves the fence held.
Do not modify: [shared surface] — [who else depends on it]
Partly fenced: [file] — [the one change allowed]
Verify: git diff -- [fenced paths] is empty
The usual candidates: shared components and their props, stores other features read, global styles and design tokens, routing configuration, and session handling.
Full fragments: examples/core.md
Each criterion names something a reviewer can see or do in the running UI, and how it is checked.
1. An invalid email shows "Enter a valid email address" below the field — component test
2. Closing the dialog returns focus to "Edit profile" — keyboard check
Accessibility criteria cover what the feature adds: each new control reachable and operable by keyboard, focus placed on open and returned on close, each input labelled, and status messages such as "Saved" announced to screen readers without taking focus. A performance criterion carries a number or is left out.
Full fragments: examples/core.md
<red_flags>
Leaves the spec incomplete:
Easy to miss:
</red_flags>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agents-inc/skills --plugin meta-planning-web-planningOther plugins' skills for the same job