/s2-docs:s2-docsfrom s2-docs
Looks up Spectrum 2 (S2) component documentation, design guidelines, and usage patterns for React Spectrum or Spectrum Web Components. Helps prevent drift from documented S2 design decisions during prototyping.
Ships in s2-docs. 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; scripts run unread.
Deprecated. This skill and
@adobe/s2-docs-mcpare superseded by@adobe/design-data-mcp. If that server is available, prefer itsdesign-data-component-searchanddesign-data-componenttools. The commands below still work and use current data.
Fetch canonical S2 docs before suggesting any Spectrum component or pattern. This prevents common vibe-coding mistakes: wrong variant, hard-coded sizes, divider-first layouts, missing required props.
Get a specific component (use before writing any RSP/SWC code):
node ${CLAUDE_SKILL_DIR}/scripts/lookup.js get <component-name>
Find components by use case:
node ${CLAUDE_SKILL_DIR}/scripts/lookup.js use-case "<phrase>"
Search by name:
node ${CLAUDE_SKILL_DIR}/scripts/lookup.js search <query>
List all components in a category (actions, containers, feedback, inputs, navigation, status):
node ${CLAUDE_SKILL_DIR}/scripts/lookup.js list --category <category>
Cursor does not support inline shell injection. Use Bash explicitly with --cursor for trimmed, delimited output:
node ${CLAUDE_SKILL_DIR}/scripts/lookup.js get <component-name> --cursor
node ${CLAUDE_SKILL_DIR}/scripts/lookup.js use-case "<phrase>" --cursor
use-case or search if unsure.get <name> for each relevant component.After fetching docs, verify every suggestion against:
accent; match the use case (primary, secondary, negative)label on all inputs, necessityIndicator when requiredaccent = primary CTA (max 3 per view); primary = medium emphasis; secondary = low emphasis; negative = destructivesize="S|M|L|XL" prop, never hard-coded pxWhat SKILL.md sets; muted values are Claude Code's defaults
Trigger on: "which Spectrum component", "React Spectrum", "Spectrum Web Components", "@adobe/react-spectrum", "@spectrum-web-components", component name imports, "S2 tokens", "Spectrum spacing", "Spectrum variant", or any question about what a Spectrum component should do or look like.
npx claudepluginhub adobe/spectrum-design-data --plugin s2-docsOther plugins' skills for the same job