一键导入
ds-plan
Generate phased implementation plans for design system components with adaptive scope, design decisions, and risk assessment
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate phased implementation plans for design system components with adaptive scope, design decisions, and risk assessment
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create new web components in the Helvetia Design System. Generates Stencil component files with shadow DOM, interfaces, SCSS with design tokens, and visual HTML. Use when building a new component, migrating from the old design system, or creating subcomponents.
Create design tokens for a component from its CSS variables
Use when writing or generating Storybook documentation for a Baloise Design System component — creates stories.ts, doc-config.ts, and six MDX subpages (Overview, Usage, Variants, Styling, Accessibility, Testing) using reusable Storybook blocks (ComponentLead, ComponentPublicMethods, ComponentParts, CanvasTabs, ComponentPageObject) for dynamic data binding to components.json
Auto-generate all test files for DS components including visual, a11y, component, page object, and unit tests. Use when creating new components or setting up comprehensive test coverage.
Lint and fix Helvetia Design System components for style guide compliance. Checks prop validation coverage, divider comment formatting, and lifecycle hook setup. Use when building or reviewing DS components, or when user asks to lint/check a component.
| name | ds-plan |
| description | Generate phased implementation plans for design system components with adaptive scope, design decisions, and risk assessment |
/ds-plan — Design System Component Planning SkillGenerate structured, phased implementation plans for design system components. The skill interviews you about component scope, detects the architecture type, proposes design decisions grounded in your design system patterns, surfaces conflicts with evidence-based suggestions, and creates a ready-to-implement plan.
Use /grill-with-docs to interview the user to have a complete understanding of the component requirements.
/ds-plan Create a new navbar component with mobile menu
/ds-plan Add a size variant to the button component
/ds-plan Build a card component with slots for header, content, and footer
docs/plan/NNN-kebab-case.mdExtract component name, purpose, and scope (new/update).
Ask: API, Slots & Parts, Dependencies, Out-of-scope.
Ask about: Responsive behavior, Accessibility, SEO crawling, Browser support (only if relevant to component type).
docs/plan/NNN-kebab-case.mdAlways propose mobile-first SCSS per STYLE_GUIDE.md. Define base styles for 320px+, use @include media() for enhancements, never hardcode breakpoints.
Place critical content in light DOM (slots), Shadow DOM for layout/styling only. Enables both AA compliance and SEO crawling.
All colors, spacing, typography use --ds-* tokens from packages/tokens. Never hardcode values.
Use native elements: <nav>, <button>, <a>, <dialog>. Adds accessibility and SEO value automatically.
Generated plan includes: Overview, Design Decisions, Technical Decisions (if web-component), Accessibility Compliance (if interactive), Responsive Behavior (if layout-dependent), SEO Considerations (if navigation), Browser Support, Style Guide Alignment, Risks & Mitigations, Related Documentation, Phases (1–N with goals, tasks, dependencies, acceptance criteria).
4-skill workflow:
/ds-plan — Create implementation plan → docs/plan/NNN-component-scope.md/ds-create-component — Scaffold component files/ds-test-component — Generate test files/ds-document-component — Create Storybook docs/ds-test-component)/ds-document-component)The final phase focuses on manual testing, not test automation:
/ds-test-component for that)This ensures the implementation is validated at runtime before test suite creation.
See README.md for team guidance and implementation notes.