/polymath-frontend:component-designfrom polymath-frontend
Design a UI component's contract — props, state, side effects, a11y, and the smallest set of tests that locks the contract.
Ships in polymath-frontend. 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.
None: SKILL.md is the whole skill.
Design a component before writing its implementation. Output is a contract sketch the implementer can build from in one pass.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-frontend:component-design.variant: "primary" | "secondary" beats isPrimary + isSecondary).Component: <Name>
Responsibility: <one sentence>
Props:
required
- <name>: <type> — <purpose>
optional
- <name>: <type> — <purpose>
State: <where it lives, why>
Side effects:
- on <trigger> → <effect>; cleanup: <how>
A11y:
- role: <role>
- name: <derived from prop or aria-label>
- keyboard: <key bindings>
- focus: <management>
Tests (3, contract-locking):
1. <test name>
2. <test name>
3. <test name>
States:
loading: <visual>
empty: <visual>
error: <visual>
LeftPanel) instead of their purpose.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/bundle-analyzeAudit a JavaScript bundle for the biggest bytes and propose the cheapest cut; uses the bundler's report rather than guessing./i18n-auditAudit software for i18n readiness — hardcoded strings, locale date/number/currency formatting, ICU plurals, pseudolocalization, RTL/bidi, fallback chain. Internationalization, not UX copywriting./web-vitals-budgetSet Core Web Vitals budgets (LCP, INP, CLS) per route and propose the cheapest fix path when one is over budget. Web routes only; not mobile (mobile-perf) or backend (perf-budget).npx claudepluginhub mohammadbafkar/polymath --plugin polymath-frontend