/web-stylebook:web-stylebook-designfrom web-stylebook
Builds or improves web UIs with researched design judgment, real source edits, verification, and an honest report. Use before writing HTML/CSS/JSX for a page or when a UI looks generic.
Ships in web-stylebook. 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.
Use Web Stylebook before writing or changing UI. A new page or screen starts with
start_ui_design (below). The default for an improvement or
fix request is inspect → decide → implement → verify → compare/report. The host agent edits
and runs the product with its available tools. Web Stylebook supplies knowledge and validates
submitted evidence; it cannot access the repository, edit files, inspect pixels, or run
interactions itself.
Use the web-stylebook MCP tools when they are connected. Otherwise run the same tools from a
shell. The results are identical, and nothing leaves the machine:
npx -y web-stylebook-mcp@latest tools # list the tools
npx -y web-stylebook-mcp@latest call start_ui_design --input start-args.json
npx -y web-stylebook-mcp@latest schema get_design_improvement_plan
npx -y web-stylebook-mcp@latest call get_design_improvement_plan --input plan-args.json > plan.json
npx -y web-stylebook-mcp@latest read webstylebook://workflows/improve-ui
Write the arguments to a JSON file and pass --input; inline JSON breaks in some shells, notably
Windows PowerShell. Output is JSON on stdout. Exit code 1 means the tool returned an error
object, which says what to fix. --text prints the short summary instead. Keep each plan's output
in a file, because the completion step needs its exact query and workflow.planHash. Wherever
this skill names a tool or a webstylebook:// resource, call or read reaches the same thing.
get_design_audit_plan and validate_design_audit_result for those reviews. Do not claim that a
review improved the UI.context.constraints: visible title distinctions, useful group
boundaries, conversation continuity, reading-surface tone and comfortable text measure.get_design_improvement_plan with relevant
surface/concerns or foundationIds/category, locale, and context containing the user task,
constraints and target matrix. A call without context is useful for knowledge discovery but
cannot finish the workflow. Save the returned query and workflow.planHash.
The default is 6 foundations, maximum 12; inspect coverage.omittedIds or browse
webstylebook://foundations for additional relevant knowledge. The workflow resource is
webstylebook://workflows/improve-ui.compare_page_revisions on saved before/after HTML/CSS, the selectors scripts
actually query, and the product type where known. Restore unintended losses, or acknowledge an
intended removal with its reason; validate the returned evidence/results under a separate
get_design_audit_plan({revisionPreservation: true}) query with validate_design_audit_result.
Other UI runtimes compare the saved semantic/interaction inventory. Static preservation is
not visual or behavioral verification. Repair or revert regressions and refresh affected evidence.
Existing content in the DOM is insufficient if more of its distinguishing text is truncated.
Additional visible labels are insufficient if context already identifies the object or speaker.
Compare grouping and reading comfort as well as technical contrast and overflow.validate_design_improvement_result with the exact plan query,
expectedPlanHash: workflow.planHash, and actual captures, changes, checks, outcomes and
limitations. Read the result contract and example when
assembling the submission. Each target needs visual, behavior, preservation and affected
accessibility checks. Record observed steps for behavior/accessibility. Follow nextActions
for needs-work; do not silently drop targets, mark a proposal implemented, or convert missing
evidence into a pass. A justified fully verified no-change result is honest; do not manufacture
edits merely to produce a difference.reportMarkdown as a starting point and provide
paired before/after images or direct artifact links, implemented changes and their reasons,
observed differences, checks performed, tradeoffs and remaining unverified work. A side-by-side
or toggle report is useful when several screens are involved. Distinguish improved, unchanged,
regressed and not-verified outcomes. Label fixed data and local verification; never imply
production deployment or a user-study result that did not happen. complete is submitted
evidence coverage, not independent design-quality certification.
When the user reports a regression, reopen the previous improvement claim and correct the
report. Keep justified gains, restore rejected changes and label superseded evidence. Do not
treat passing checks as a reason to disregard feedback or require approval after every edit.Use get_design_principle_plan for placement, apply, verify and caution guidance rather than a
fixed recipe. Read webstylebook://design-principles/{id} only when selected details are needed.
Record the selected visual-design principles and selected UX principles with the placement
decisions and observed checks they produced. Use get_ux_principle_plan for contextual decision prompts, not universal laws.
Accessibility, safety, informed consent, and truthful feedback take priority. get_ui_state_plan
helps with affected loading, empty, error and recovery states. Sources support bounded concepts;
remedies are authored contextual guidance and examples are illustrative, not observed results.
Inspect the actual UI, not only a summary. Do not claim numerical usability gains, timing savings, quality scores or user-research findings without corresponding measurements. A familiar pattern can be appropriate; evaluate its contribution to this task. Reuse the existing design system where it works. Keep Web Stylebook (MCP or CLI) as the source of design knowledge rather than caching its catalog here.
Apply this section when the confirmed scope includes user-facing copy or the full experience:
The absence of internal jargon is not a pass. Inspect what the actual visible content means here.
In Claude Code the tool is mcp__plugin_web-stylebook_web-stylebook__start_ui_design from the plugin and
mcp__web-stylebook__start_ui_design when you add the server yourself (mcp__<server key>__start_ui_design
under another key). If tools are listed by name only, load it first: ToolSearch with the query
start_ui_design finds it under any of these names. For dashboards and charts, use it with a chart
skill.
start_ui_design with the product context and pageRole: the direction, page structure,
must-haves, fonts, photo plan, copy brief and the next calls with their arguments.compose_design_tokens when you write CSS or a theme.get_ui_state_plan states of each surface that loads data or takes input.audit_page_structure on the rendered HTML and CSS and audit_copy on the rendered HTML; fix
every finding and run both again.get_design_audit_plan with the structure, copy and assets groups added, then
validate_design_audit_result with the real evidence.Read the new-direction workflow for the full steps, the composition rules and when to show candidate directions. Honor an already chosen direction and existing authorization. Do not import that mode's composition or candidate approval steps into routine improvements of an existing UI.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-design, design-review, ui-audit, web-stylebook, design-tokens
npx claudepluginhub seungdori/web-stylebook-mcp --plugin web-stylebookOther plugins' skills for the same job