sync
Sync Storybook CSF Next stories with demos and MDX documentation for a component. Use this when demos, docs, or stories are out of sync.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Sync Storybook CSF Next stories with demos and MDX documentation for a component. Use this when demos, docs, or stories are out of sync.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate a consumer-facing changeset summary from staged git diffs for release changelogs. Use this when asked to write a changeset summary or changelog entry.
Generate Conventional Commits messages from staged git diffs. Use this when asked to write a commit message from staged changes.
Generate Moto UI demos, MDX documentation, and registry updates for a component. Use this when documenting a new component or adding examples to an existing one.
| name | sync |
| description | Sync Storybook CSF Next stories with demos and MDX documentation for a component. Use this when demos, docs, or stories are out of sync. |
Read agents.md (project root) and follow it strictly.
Sync Storybook CSF Next stories with demos and MDX documentation for a component. Ensures demo parity, valid component props, accurate MDX-derived descriptions, and consistent Storybook structure.
sync <component-name>
| Source | Path |
|---|---|
| Runtime demos | apps/docs/src/demos/<component-name> |
| Component source | packages/react/src/components/<component-name> |
| MDX docs | apps/docs/content/docs/**/<component-name>.mdx |
| Stories output | packages/storybook/src/stories/<component-name> |
Stories are created under:
packages/storybook/src/stories/<component-name>/
├── stories.tsx
├── basic.tsx
├── controlled.tsx
└── ...
Open apps/docs/content/docs/**/<component-name>.mdx and extract:
Open apps/docs/src/demos/<component-name>/ and catalog every .tsx file:
Open packages/react/src/components/<component-name>/ and inspect:
Cross-reference demo args against exported component types. Flag mismatches — do not silently correct.
Write stories under packages/storybook/src/stories/<component-name>/:
stories.tsx — Meta config and story definitions using CSF Nextbasic.tsx, controlled.tsx)Requirements:
import type { Meta, StoryObj } from "@storybook/react"const meta = { ... } satisfies Meta<typeof Component>export const StoryName: StoryObj<typeof meta> = { ... }parameters.docs.source.code or render function matching the demoVerify:
The task is done when: