Agent skill UI design
Wpds
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/wordpress/agent-skills/tree/trunk/skills/wpds --skill wpds --agent claude-code --yesCheck this file in your project.claude/skills/wpds/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/wordpress/agent-skills/tree/trunk/skills/wpds --skill wpdsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The Skill targets WordPress 7.0+ and requires a connected WordPress Design System MCP server. The verified `@wordpress/design-system-mcp` 0.18.0 package requires Node.js 22.13+. Use the project’s local settings preview for the UI checks.
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Skill name
- wpds
- Scenario
- Apply the WPDS manual-save pattern to settings
- Deliverable
- A settings panel with an explicit save state and a record of the actual WPDS pattern, component and token references used.
- Skill name
wpds- Repository
wordpress/agent-skills
Define a component task with an observable result
A request with an unclear outcome
Assume an MCP resource URI exists and copy the Button props from memory.
The server interface changed. The live tool output identifies both the component package and its supported props.
A workflow with observable results
- Retrieve the save pattern through MCP
- Look up the Button and model one save
- Verify the save states in WordPress
WordPress Design System operation manual
Retrieve the design pattern and component API from the installed WPDS MCP server, then check one save flow in WordPress.
Replace the bracketed details with your own project and target.
Retrieve the save pattern through MCP
Determine which interface the connected server exposes.
Prompt · Step 1Use the `wpds` skill for [WordPress settings panel]. Confirm the WordPress target and list the connected MCP server’s tools or resources. On the verified 0.18.0 server, call `get_patterns`, then `get_pattern_details` with slug `save-submit`. If your server uses the Skill’s wpds resource URIs, read its pages resource instead. Report the selected manual or autosave model with the MCP evidence before editing.Look up the Button and model one save
Use MCP component and token evidence for the existing UI.
Prompt · Step 2Use `wpds` to implement [approved manual-save surface]. Query Button with `get_component_details` and use `get_design_tokens` if custom CSS is needed, or use the corresponding resources on a resource-based server. Inspect the installed UI package before choosing the actual loading prop. Keep edits pending behind one explicit Save action, keep that action unavailable in the unchanged and pending states, and reuse the existing request and success feedback.Verify the save states in WordPress
Exercise clean, dirty, pending and successful states.
- The component and save-model choices are supported by actual connected MCP output.
- The local settings surface has one consistent save model and blocks duplicate pending requests.
Prompt · Step 3Use `wpds` to verify [local WordPress settings panel] with disposable settings. Confirm that unchanged values leave Save unavailable, an edit enables Save, repeated activation while pending does not create a second request, and success restores the saved state. Run the project lint command if present. Record the observed states and supporting MCP lookups.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
The Skill’s resource URI is unavailableReference
- Command or reference
Official MCP · Installed tool interface- Examples
- Discover the available interface first. Version 0.18.0 exports pattern, component and token tools.
WordPress Design System troubleshooting
Where do I check which WPDS MCP API I have?
Check the connected server’s tool and resource listings. The published 0.18.0 server supports named tools, and its pattern result provides the slugs to pass to `get_pattern_details`.