npx claudepluginhub hbs9312/hbs9312-plugins --plugin frontflowThis skill uses the workspace's default tool permissions.
컴포넌트 파일을 읽고 UI 명세서의 상태 목록을 기반으로 스토리를 생성합니다.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
컴포넌트 파일을 읽고 UI 명세서의 상태 목록을 기반으로 스토리를 생성합니다. F2/F3에서 자동 호출되지만, 독립 실행도 가능합니다.
$ARGUMENTS 에서:
UI 명세서가 없으면 Props 타입에서 상태를 추론합니다.
frontend.md의 설정에 따라:
import type { Meta, StoryObj } from '@storybook/react'
import { {Component} } from './{Component}'
const meta: Meta<typeof {Component}> = {
title: '{카테고리}/{Component}',
component: {Component},
tags: ['autodocs'],
argTypes: {
// Props에서 자동 도출
},
}
export default meta
type Story = StoryObj<typeof {Component}>
// 1. 기본 상태 (필수)
export const Default: Story = {
args: { /* 기본 props */ },
}
// 2. 모든 variant 조합 (해당 시)
export const AllVariants: Story = { ... }
// 3. 각 상태 (UI 명세서 기반)
export const Loading: Story = { ... }
export const Error: Story = { ... }
export const Disabled: Story = { ... }
export const Empty: Story = { ... }
// 4. 반응형 (필수)
export const Mobile: Story = {
parameters: {
viewport: { defaultViewport: 'mobile1' },
},
args: { /* 기본 props */ },
}
// 5. 경계 케이스 (해당 시)
export const LongText: Story = {
args: { name: '매우 긴 이름이 들어갔을 때 말줄임 처리가 되는지 확인' },
}
TS API 응답 스키마를 기반으로 현실적인 목 데이터:
생성된 .stories.tsx 파일을 Write로 저장합니다.