polaris-web-components
Installation
SKILL.md
Polaris Web Components
Component catalog, rules, and patterns for polaris-app-home. MCP tool calls (doc search, validation) route through /shopify-dev-mcp.
Rules
- Never use deprecated components. Use the recommended replacement.
<s-link>is for navigation only. Never use<s-link>for actions. Use<s-button>or<s-clickable>instead.showOverlay()/hideOverlay()are DOM methods, not App Bridge. Call these on<s-modal>and<s-popover>element refs directly (e.g.,document.getElementById('my-modal')?.showOverlay()). They are NOTshopify.*APIs.- SpacingKeyword / SizeKeyword scale. Numbers increase with size:
small-500(smallest) →small-400→small-300→small-200→small-100→small→base→large→large-100→large-200→large-300→large-400→large-500(largest). Used bygap,padding,bordersize, etc.noneis also valid for spacing/padding.
Instructions
- Find component in the Component Catalog. If missing, invoke
/shopify-dev-mcp→search_docs_chunkswithapi_name: "polaris-app-home". Do NOT usefetch_full_docsfor this surface (deprecated). - Write markup following the rules above and Common Patterns.
- Validate via
/shopify-dev-mcp→validate_component_codeblockswithapi: "polaris-app-home". If validation fails twice on the same artifact, stop and surface the error to the user.