[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQTMPZ5BA9MEFMHFFKQRM7":3,"skill-same:01M6HQTMPZ5BA9MEFMHFFKQRM7":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6HQTMPZ5BA9MEFMHFFKQRM7","component-architecture",null,"Reusable component patterns for cards, sections, forms, and layouts with consistent prop interfaces and composition strategies. Use when creating new components, refactoring existing ones, or establishing component design patterns.","BlackBeltTechnology\u002Fpi-agent-dashboard","BlackBeltTechnology","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8101592?v=4","01M6HQDX7QAJA0QP4NYRYBMJ8A","BlackBelt Technology","01M6HQDXCC7719N9YDMQVH9JS6",348,"MIT","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Fcomponent-architecture\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"component","architecture","component architecture","reusable","new","when","Existing","for","with","strategies","forms","patterns","design","design patterns","use","refactoring","Composition","components","2026-11-10 10:12:30",false,"---\nname: component-architecture\ndescription: Reusable component patterns for cards, sections, forms, and layouts with consistent prop interfaces and composition strategies. Use when creating new components, refactoring existing ones, or establishing component design patterns.\n---\n\n# Component Architecture\n\n## Folder Structure\n\n```\ncomponents\u002F\n├── ui\u002F                    # shadcn\u002Fui base components\n│   ├── button.tsx\n│   ├── card.tsx\n│   └── ...\n├── layout\u002F               # Page structure components\n│   ├── Header.tsx\n│   ├── Footer.tsx\n│   ├── MobileNav.tsx\n│   └── LanguageSwitcher.tsx\n├── sections\u002F             # Home page sections\n│   ├── Hero.tsx\n│   ├── TrustRow.tsx\n│   ├── ServicesPreview.tsx\n│   ├── AboutPreview.tsx\n│   └── LeadCapture.tsx\n├── cards\u002F                # Reusable card components\n│   ├── ServiceCard.tsx\n│   ├── ProgrammeCard.tsx\n│   ├── TestimonialCard.tsx\n│   └── PricingCard.tsx\n├── forms\u002F                # Form components\n│   ├── ContactForm.tsx\n│   ├── BookingForm.tsx\n│   └── LeadCaptureForm.tsx\n├── shared\u002F               # Utility components\n│   ├── Container.tsx\n│   ├── SectionHeader.tsx\n│   ├── CTAButton.tsx\n│   └── Breadcrumbs.tsx\n└── seo\u002F                  # SEO components\n    ├── JsonLd.tsx\n    └── OrganizationJsonLd.tsx\n```\n\n## Component Template\n\n```tsx\n\u002F\u002F components\u002Fcards\u002FServiceCard.tsx\nimport Link from 'next\u002Flink';\nimport { ArrowRight } from 'lucide-react';\nimport { Card, CardContent, CardHeader, CardTitle } from '@\u002Fcomponents\u002Fui\u002Fcard';\nimport { Badge } from '@\u002Fcomponents\u002Fui\u002Fbadge';\nimport type { Service } from '@\u002Ftypes';\n\ninterface ServiceCardProps {\n  service: Service;\n  locale: string;\n}\n\nexport function ServiceCard({ service, locale }: ServiceCardProps) {\n  return (\n    \u003CCard className=\"group hover:shadow-lg transition-shadow\">\n      \u003CCardHeader>\n        \u003Cdiv className=\"flex items-start justify-between\">\n          \u003CCardTitle className=\"text-xl\">{service.name}\u003C\u002FCardTitle>\n          \u003CBadge variant=\"secondary\">{service.duration}\u003C\u002FBadge>\n        \u003C\u002Fdiv>\n      \u003C\u002FCardHeader>\n      \u003CCardContent className=\"space-y-4\">\n        \u003Cp className=\"text-muted-foreground\">{service.shortDesc}\u003C\u002Fp>\n        \n        \u003Cdiv className=\"flex flex-wrap gap-2\">\n          {service.tags.map((tag) => (\n            \u003CBadge key={tag} variant=\"outline\" className=\"text-xs\">\n              {tag}\n            \u003C\u002FBadge>\n          ))}\n        \u003C\u002Fdiv>\n        \n        \u003Cdiv className=\"flex items-center justify-between pt-4 border-t\">\n          \u003Cspan className=\"font-semibold\">From €{service.priceFrom}\u003C\u002Fspan>\n          \u003CLink\n            href={`\u002F${locale}\u002Fservices\u002F${service.slug}`}\n            className=\"flex items-center gap-1 text-primary hover:underline\"\n          >\n            Learn more\n            \u003CArrowRight className=\"w-4 h-4 group-hover:translate-x-1 transition-transform\" \u002F>\n          \u003C\u002FLink>\n        \u003C\u002Fdiv>\n      \u003C\u002FCardContent>\n    \u003C\u002FCard>\n  );\n}\n```\n\n## Section Component Pattern\n\n```tsx\n\u002F\u002F components\u002Fsections\u002FServicesPreview.tsx\nimport { getTranslations } from 'next-intl\u002Fserver';\nimport { getServices } from '@\u002Flib\u002Fdata';\nimport { Container } from '@\u002Fcomponents\u002Fshared\u002FContainer';\nimport { SectionHeader } from '@\u002Fcomponents\u002Fshared\u002FSectionHeader';\nimport { ServiceCard } from '@\u002Fcomponents\u002Fcards\u002FServiceCard';\nimport { CTAButton } from '@\u002Fcomponents\u002Fshared\u002FCTAButton';\nimport type { Locale } from '@\u002Fi18n.config';\n\ninterface ServicesPreviewProps {\n  locale: Locale;\n}\n\nexport async function ServicesPreview({ locale }: ServicesPreviewProps) {\n  const t = await getTranslations({ locale, namespace: 'home.services' });\n  const services = await getServices(locale);\n  const featured = services.slice(0, 4);\n\n  return (\n    \u003Csection className=\"py-16 md:py-24\">\n      \u003CContainer>\n        \u003CSectionHeader\n          title={t('title')}\n          subtitle={t('subtitle')}\n          centered\n        \u002F>\n        \n        \u003Cdiv className=\"grid gap-6 md:grid-cols-2 lg:grid-cols-4 mt-12\">\n          {featured.map((service) => (\n            \u003CServiceCard\n              key={service.slug}\n              service={service}\n              locale={locale}\n            \u002F>\n          ))}\n        \u003C\u002Fdiv>\n        \n        \u003Cdiv className=\"flex justify-center mt-12\">\n          \u003CCTAButton href={`\u002F${locale}\u002Fservices`} variant=\"outline\">\n            {t('viewAll')}\n          \u003C\u002FCTAButton>\n        \u003C\u002Fdiv>\n      \u003C\u002FContainer>\n    \u003C\u002Fsection>\n  );\n}\n```\n\n## Shared Components\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FContainer.tsx\nimport { cn } from '@\u002Flib\u002Futils';\n\ninterface ContainerProps {\n  children: React.ReactNode;\n  className?: string;\n  size?: 'default' | 'narrow' | 'wide';\n}\n\nexport function Container({\n  children,\n  className,\n  size = 'default',\n}: ContainerProps) {\n  return (\n    \u003Cdiv\n      className={cn(\n        'mx-auto px-4 md:px-6',\n        {\n          'max-w-7xl': size === 'default',\n          'max-w-4xl': size === 'narrow',\n          'max-w-screen-2xl': size === 'wide',\n        },\n        className\n      )}\n    >\n      {children}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FSectionHeader.tsx\nimport { cn } from '@\u002Flib\u002Futils';\n\ninterface SectionHeaderProps {\n  title: string;\n  subtitle?: string;\n  centered?: boolean;\n  className?: string;\n}\n\nexport function SectionHeader({\n  title,\n  subtitle,\n  centered = false,\n  className,\n}: SectionHeaderProps) {\n  return (\n    \u003Cdiv className={cn(centered && 'text-center', className)}>\n      \u003Ch2 className=\"text-3xl md:text-4xl font-bold tracking-tight\">\n        {title}\n      \u003C\u002Fh2>\n      {subtitle && (\n        \u003Cp className=\"mt-4 text-lg text-muted-foreground max-w-2xl mx-auto\">\n          {subtitle}\n        \u003C\u002Fp>\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FCTAButton.tsx\nimport Link from 'next\u002Flink';\nimport { Button, type ButtonProps } from '@\u002Fcomponents\u002Fui\u002Fbutton';\nimport { ArrowRight } from 'lucide-react';\n\ninterface CTAButtonProps extends ButtonProps {\n  href: string;\n  children: React.ReactNode;\n  showArrow?: boolean;\n}\n\nexport function CTAButton({\n  href,\n  children,\n  showArrow = false,\n  ...props\n}: CTAButtonProps) {\n  return (\n    \u003CButton asChild {...props}>\n      \u003CLink href={href} className=\"gap-2\">\n        {children}\n        {showArrow && \u003CArrowRight className=\"w-4 h-4\" \u002F>}\n      \u003C\u002FLink>\n    \u003C\u002FButton>\n  );\n}\n```\n\n## Composition Pattern\n\n```tsx\n\u002F\u002F Compound components for flexibility\n\u002F\u002F components\u002Fcards\u002FPricingCard.tsx\nimport { Card, CardContent, CardHeader } from '@\u002Fcomponents\u002Fui\u002Fcard';\n\ninterface PricingCardProps {\n  children: React.ReactNode;\n  featured?: boolean;\n}\n\nexport function PricingCard({ children, featured }: PricingCardProps) {\n  return (\n    \u003CCard className={featured ? 'border-primary shadow-lg' : ''}>\n      {children}\n    \u003C\u002FCard>\n  );\n}\n\nPricingCard.Header = function PricingCardHeader({\n  title,\n  price,\n  period,\n}: {\n  title: string;\n  price: number;\n  period?: string;\n}) {\n  return (\n    \u003CCardHeader className=\"text-center\">\n      \u003Ch3 className=\"text-xl font-semibold\">{title}\u003C\u002Fh3>\n      \u003Cdiv className=\"mt-4\">\n        \u003Cspan className=\"text-4xl font-bold\">€{price}\u003C\u002Fspan>\n        {period && \u003Cspan className=\"text-muted-foreground\">\u002F{period}\u003C\u002Fspan>}\n      \u003C\u002Fdiv>\n    \u003C\u002FCardHeader>\n  );\n};\n\nPricingCard.Features = function PricingCardFeatures({\n  features,\n}: {\n  features: string[];\n}) {\n  return (\n    \u003CCardContent>\n      \u003Cul className=\"space-y-3\">\n        {features.map((feature, i) => (\n          \u003Cli key={i} className=\"flex items-center gap-2\">\n            \u003CCheckIcon className=\"w-4 h-4 text-primary\" \u002F>\n            {feature}\n          \u003C\u002Fli>\n        ))}\n      \u003C\u002Ful>\n    \u003C\u002FCardContent>\n  );\n};\n\n\u002F\u002F Usage\n\u003CPricingCard featured>\n  \u003CPricingCard.Header title=\"10-Pack\" price={650} \u002F>\n  \u003CPricingCard.Features features={['10 sessions', 'Valid 6 months']} \u002F>\n\u003C\u002FPricingCard>\n```\n\n## Props Interface Conventions\n\n```tsx\n\u002F\u002F Consistent prop naming\ninterface ComponentProps {\n  \u002F\u002F Content\n  title: string;\n  subtitle?: string;\n  description?: string;\n  \n  \u002F\u002F Data\n  items: Item[];\n  data?: DataType;\n  \n  \u002F\u002F Variants\n  variant?: 'default' | 'primary' | 'secondary';\n  size?: 'sm' | 'md' | 'lg';\n  \n  \u002F\u002F State\n  isLoading?: boolean;\n  disabled?: boolean;\n  \n  \u002F\u002F Styling\n  className?: string;\n  \n  \u002F\u002F Events\n  onClick?: () => void;\n  onSubmit?: (data: FormData) => void;\n  \n  \u002F\u002F i18n\n  locale: string;\n  \n  \u002F\u002F Children\n  children?: React.ReactNode;\n}\n```\n\n## Empty States\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FEmptyState.tsx\ninterface EmptyStateProps {\n  title: string;\n  description?: string;\n  action?: React.ReactNode;\n}\n\nexport function EmptyState({ title, description, action }: EmptyStateProps) {\n  return (\n    \u003Cdiv className=\"text-center py-12\">\n      \u003Ch3 className=\"text-lg font-medium\">{title}\u003C\u002Fh3>\n      {description && (\n        \u003Cp className=\"mt-2 text-muted-foreground\">{description}\u003C\u002Fp>\n      )}\n      {action && \u003Cdiv className=\"mt-6\">{action}\u003C\u002Fdiv>}\n    \u003C\u002Fdiv>\n  );\n}\n```\n","# Component Architecture\n\n## Folder Structure\n\n```\ncomponents\u002F\n├── ui\u002F                    # shadcn\u002Fui base components\n│   ├── button.tsx\n│   ├── card.tsx\n│   └── ...\n├── layout\u002F               # Page structure components\n│   ├── Header.tsx\n│   ├── Footer.tsx\n│   ├── MobileNav.tsx\n│   └── LanguageSwitcher.tsx\n├── sections\u002F             # Home page sections\n│   ├── Hero.tsx\n│   ├── TrustRow.tsx\n│   ├── ServicesPreview.tsx\n│   ├── AboutPreview.tsx\n│   └── LeadCapture.tsx\n├── cards\u002F                # Reusable card components\n│   ├── ServiceCard.tsx\n│   ├── ProgrammeCard.tsx\n│   ├── TestimonialCard.tsx\n│   └── PricingCard.tsx\n├── forms\u002F                # Form components\n│   ├── ContactForm.tsx\n│   ├── BookingForm.tsx\n│   └── LeadCaptureForm.tsx\n├── shared\u002F               # Utility components\n│   ├── Container.tsx\n│   ├── SectionHeader.tsx\n│   ├── CTAButton.tsx\n│   └── Breadcrumbs.tsx\n└── seo\u002F                  # SEO components\n    ├── JsonLd.tsx\n    └── OrganizationJsonLd.tsx\n```\n\n## Component Template\n\n```tsx\n\u002F\u002F components\u002Fcards\u002FServiceCard.tsx\nimport Link from 'next\u002Flink';\nimport { ArrowRight } from 'lucide-react';\nimport { Card, CardContent, CardHeader, CardTitle } from '@\u002Fcomponents\u002Fui\u002Fcard';\nimport { Badge } from '@\u002Fcomponents\u002Fui\u002Fbadge';\nimport type { Service } from '@\u002Ftypes';\n\ninterface ServiceCardProps {\n  service: Service;\n  locale: string;\n}\n\nexport function ServiceCard({ service, locale }: ServiceCardProps) {\n  return (\n    \u003CCard className=\"group hover:shadow-lg transition-shadow\">\n      \u003CCardHeader>\n        \u003Cdiv className=\"flex items-start justify-between\">\n          \u003CCardTitle className=\"text-xl\">{service.name}\u003C\u002FCardTitle>\n          \u003CBadge variant=\"secondary\">{service.duration}\u003C\u002FBadge>\n        \u003C\u002Fdiv>\n      \u003C\u002FCardHeader>\n      \u003CCardContent className=\"space-y-4\">\n        \u003Cp className=\"text-muted-foreground\">{service.shortDesc}\u003C\u002Fp>\n        \n        \u003Cdiv className=\"flex flex-wrap gap-2\">\n          {service.tags.map((tag) => (\n            \u003CBadge key={tag} variant=\"outline\" className=\"text-xs\">\n              {tag}\n            \u003C\u002FBadge>\n          ))}\n        \u003C\u002Fdiv>\n        \n        \u003Cdiv className=\"flex items-center justify-between pt-4 border-t\">\n          \u003Cspan className=\"font-semibold\">From €{service.priceFrom}\u003C\u002Fspan>\n          \u003CLink\n            href={`\u002F${locale}\u002Fservices\u002F${service.slug}`}\n            className=\"flex items-center gap-1 text-primary hover:underline\"\n          >\n            Learn more\n            \u003CArrowRight className=\"w-4 h-4 group-hover:translate-x-1 transition-transform\" \u002F>\n          \u003C\u002FLink>\n        \u003C\u002Fdiv>\n      \u003C\u002FCardContent>\n    \u003C\u002FCard>\n  );\n}\n```\n\n## Section Component Pattern\n\n```tsx\n\u002F\u002F components\u002Fsections\u002FServicesPreview.tsx\nimport { getTranslations } from 'next-intl\u002Fserver';\nimport { getServices } from '@\u002Flib\u002Fdata';\nimport { Container } from '@\u002Fcomponents\u002Fshared\u002FContainer';\nimport { SectionHeader } from '@\u002Fcomponents\u002Fshared\u002FSectionHeader';\nimport { ServiceCard } from '@\u002Fcomponents\u002Fcards\u002FServiceCard';\nimport { CTAButton } from '@\u002Fcomponents\u002Fshared\u002FCTAButton';\nimport type { Locale } from '@\u002Fi18n.config';\n\ninterface ServicesPreviewProps {\n  locale: Locale;\n}\n\nexport async function ServicesPreview({ locale }: ServicesPreviewProps) {\n  const t = await getTranslations({ locale, namespace: 'home.services' });\n  const services = await getServices(locale);\n  const featured = services.slice(0, 4);\n\n  return (\n    \u003Csection className=\"py-16 md:py-24\">\n      \u003CContainer>\n        \u003CSectionHeader\n          title={t('title')}\n          subtitle={t('subtitle')}\n          centered\n        \u002F>\n        \n        \u003Cdiv className=\"grid gap-6 md:grid-cols-2 lg:grid-cols-4 mt-12\">\n          {featured.map((service) => (\n            \u003CServiceCard\n              key={service.slug}\n              service={service}\n              locale={locale}\n            \u002F>\n          ))}\n        \u003C\u002Fdiv>\n        \n        \u003Cdiv className=\"flex justify-center mt-12\">\n          \u003CCTAButton href={`\u002F${locale}\u002Fservices`} variant=\"outline\">\n            {t('viewAll')}\n          \u003C\u002FCTAButton>\n        \u003C\u002Fdiv>\n      \u003C\u002FContainer>\n    \u003C\u002Fsection>\n  );\n}\n```\n\n## Shared Components\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FContainer.tsx\nimport { cn } from '@\u002Flib\u002Futils';\n\ninterface ContainerProps {\n  children: React.ReactNode;\n  className?: string;\n  size?: 'default' | 'narrow' | 'wide';\n}\n\nexport function Container({\n  children,\n  className,\n  size = 'default',\n}: ContainerProps) {\n  return (\n    \u003Cdiv\n      className={cn(\n        'mx-auto px-4 md:px-6',\n        {\n          'max-w-7xl': size === 'default',\n          'max-w-4xl': size === 'narrow',\n          'max-w-screen-2xl': size === 'wide',\n        },\n        className\n      )}\n    >\n      {children}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FSectionHeader.tsx\nimport { cn } from '@\u002Flib\u002Futils';\n\ninterface SectionHeaderProps {\n  title: string;\n  subtitle?: string;\n  centered?: boolean;\n  className?: string;\n}\n\nexport function SectionHeader({\n  title,\n  subtitle,\n  centered = false,\n  className,\n}: SectionHeaderProps) {\n  return (\n    \u003Cdiv className={cn(centered && 'text-center', className)}>\n      \u003Ch2 className=\"text-3xl md:text-4xl font-bold tracking-tight\">\n        {title}\n      \u003C\u002Fh2>\n      {subtitle && (\n        \u003Cp className=\"mt-4 text-lg text-muted-foreground max-w-2xl mx-auto\">\n          {subtitle}\n        \u003C\u002Fp>\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FCTAButton.tsx\nimport Link from 'next\u002Flink';\nimport { Button, type ButtonProps } from '@\u002Fcomponents\u002Fui\u002Fbutton';\nimport { ArrowRight } from 'lucide-react';\n\ninterface CTAButtonProps extends ButtonProps {\n  href: string;\n  children: React.ReactNode;\n  showArrow?: boolean;\n}\n\nexport function CTAButton({\n  href,\n  children,\n  showArrow = false,\n  ...props\n}: CTAButtonProps) {\n  return (\n    \u003CButton asChild {...props}>\n      \u003CLink href={href} className=\"gap-2\">\n        {children}\n        {showArrow && \u003CArrowRight className=\"w-4 h-4\" \u002F>}\n      \u003C\u002FLink>\n    \u003C\u002FButton>\n  );\n}\n```\n\n## Composition Pattern\n\n```tsx\n\u002F\u002F Compound components for flexibility\n\u002F\u002F components\u002Fcards\u002FPricingCard.tsx\nimport { Card, CardContent, CardHeader } from '@\u002Fcomponents\u002Fui\u002Fcard';\n\ninterface PricingCardProps {\n  children: React.ReactNode;\n  featured?: boolean;\n}\n\nexport function PricingCard({ children, featured }: PricingCardProps) {\n  return (\n    \u003CCard className={featured ? 'border-primary shadow-lg' : ''}>\n      {children}\n    \u003C\u002FCard>\n  );\n}\n\nPricingCard.Header = function PricingCardHeader({\n  title,\n  price,\n  period,\n}: {\n  title: string;\n  price: number;\n  period?: string;\n}) {\n  return (\n    \u003CCardHeader className=\"text-center\">\n      \u003Ch3 className=\"text-xl font-semibold\">{title}\u003C\u002Fh3>\n      \u003Cdiv className=\"mt-4\">\n        \u003Cspan className=\"text-4xl font-bold\">€{price}\u003C\u002Fspan>\n        {period && \u003Cspan className=\"text-muted-foreground\">\u002F{period}\u003C\u002Fspan>}\n      \u003C\u002Fdiv>\n    \u003C\u002FCardHeader>\n  );\n};\n\nPricingCard.Features = function PricingCardFeatures({\n  features,\n}: {\n  features: string[];\n}) {\n  return (\n    \u003CCardContent>\n      \u003Cul className=\"space-y-3\">\n        {features.map((feature, i) => (\n          \u003Cli key={i} className=\"flex items-center gap-2\">\n            \u003CCheckIcon className=\"w-4 h-4 text-primary\" \u002F>\n            {feature}\n          \u003C\u002Fli>\n        ))}\n      \u003C\u002Ful>\n    \u003C\u002FCardContent>\n  );\n};\n\n\u002F\u002F Usage\n\u003CPricingCard featured>\n  \u003CPricingCard.Header title=\"10-Pack\" price={650} \u002F>\n  \u003CPricingCard.Features features={['10 sessions', 'Valid 6 months']} \u002F>\n\u003C\u002FPricingCard>\n```\n\n## Props Interface Conventions\n\n```tsx\n\u002F\u002F Consistent prop naming\ninterface ComponentProps {\n  \u002F\u002F Content\n  title: string;\n  subtitle?: string;\n  description?: string;\n  \n  \u002F\u002F Data\n  items: Item[];\n  data?: DataType;\n  \n  \u002F\u002F Variants\n  variant?: 'default' | 'primary' | 'secondary';\n  size?: 'sm' | 'md' | 'lg';\n  \n  \u002F\u002F State\n  isLoading?: boolean;\n  disabled?: boolean;\n  \n  \u002F\u002F Styling\n  className?: string;\n  \n  \u002F\u002F Events\n  onClick?: () => void;\n  onSubmit?: (data: FormData) => void;\n  \n  \u002F\u002F i18n\n  locale: string;\n  \n  \u002F\u002F Children\n  children?: React.ReactNode;\n}\n```\n\n## Empty States\n\n```tsx\n\u002F\u002F components\u002Fshared\u002FEmptyState.tsx\ninterface EmptyStateProps {\n  title: string;\n  description?: string;\n  action?: React.ReactNode;\n}\n\nexport function EmptyState({ title, description, action }: EmptyStateProps) {\n  return (\n    \u003Cdiv className=\"text-center py-12\">\n      \u003Ch3 className=\"text-lg font-medium\">{title}\u003C\u002Fh3>\n      {description && (\n        \u003Cp className=\"mt-2 text-muted-foreground\">{description}\u003C\u002Fp>\n      )}\n      {action && \u003Cdiv className=\"mt-6\">{action}\u003C\u002Fdiv>}\n    \u003C\u002Fdiv>\n  );\n}\n```\n",{"name":5,"description":7},"develop","fb9a5af356f540de4839ef851ebbe14bcce64c0f","packages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Fcomponent-architecture",56,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard","https:\u002F\u002Fpi-dashboard.dev\u002F","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology","https:\u002F\u002Fwww.blackbelt.hu","2026-11-12 23:37:37",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill component-architecture",{"tool":57,"command":58},"bunx","bunx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill component-architecture",{"tool":60,"command":61},"pnpm","pnpm dlx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill component-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Fcomponent-architecture\u002FSKILL.md",true,[65,71],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"SKILL.agent.md","REFERENCE","参考文档",2598,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Fcomponent-architecture\u002FSKILL.agent.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"SKILL.md.AGENTS.md",355,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Fcomponent-architecture\u002FSKILL.md.AGENTS.md",[76,102,127,150,171,193],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":37},"01M6HQYQ5B82AM5T9Y299S9CFY","youtube-srt","Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on \"download the srt of this video\", \"transcripts of channel X for the last N months\", \"catalog the models AI Search talked about\", \"update docs\u002Fmodels\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fyoutube-srt\u002FSKILL.md",[],[83,84,85,86,87,88,89,90,91,92,93,33,94,95,96,97,98,99,100,26,101],"youtube","srt","youtube srt","update","search","subtitles","dlp","Video","Media","open","catalog","update docs","yt-dlp","local","mine","via","ai models","last","media download",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":37},"01M6HQYJBKSXR55T5RSYNJQG4D","video-transcription","Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on \"\u002Ftranscribe\", \"transcribe my meetings\", \"transcribe videos in ~\u002FMovies\", or any request to convert audio\u002Fvideo to text.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fvideo-transcription\u002FSKILL.md",[],[90,109,110,111,88,112,113,114,115,116,117,33,118,119,120,121,27,122,123,84,124,125,126,24],"transcription","video transcription","transcribe","api","Audio","convert","mp4","text","meetings","files","default","mp3","triggers","videos","assemblyai","my","srt subtitles","request",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":37},"01M6HQYECMVDC5TDHHW22VC5RX","speaker-id","Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers \"who is speaker 2\", \"put names on the transcript\", \"label the meeting SRT\", \"the diarization split one person into three\", \"enroll my voice\". Backed by the pi-voiceid CLI.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fspeaker-id\u002FSKILL.md",[],[134,135,136,137,112,138,139,140,141,142,143,96,121,144,145,146,147,84,148,149],"id","speaker id","cli","transcript","voice","pi","only","three","drift","repair","name","CPU","meeting","anonymous","split","person",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":37},"01M6HQYAZWDXE9QJEG592E5PXK","veo-showreel-production-kit","Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-showreel-production-kit\u002FSKILL.md",[],[157,158,159,160,161,162,163,90,164,165,166,167,27,168,169,170],"Production","veo","kit","veo showreel production kit","package","Reproducible","timeline","prompt","voiceover","storyboard","anchor","consistency","veo 3","2026",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":37},"01M6HQY6TJ0X1ADDKYPMVJY6NV","veo-generator","Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots\u002F*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on \"render the Veo video for \u003Cproject>\", \"generate the videos from the shot scripts\", \"make the clips with Veo\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-generator\u002FSKILL.md",[],[158,178,179,180,181,161,112,90,115,164,33,182,140,183,184,185,186,187,167,188,189,190,191,27,192,26,169],"generator","veo generator","google","generate","clip","sketch","camera","world","seed","project","cut","scripts","make","render","google veo",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":37},"01M6HQY1K2NZJ3B2YHSJJPPVAF","hyperframes-showreel","Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on \"make a showreel from these recordings\", \"build the HyperFrames video\", \"assemble the footage edit\", \"render and QA the showreel\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fhyperframes-showreel\u002FSKILL.md",[],[200,201,202,90,35,203,204,33,205,206,207,140,208,209,210,211,212,191,27,213],"hyperframes","hyperframes showreel","qa","edit","generated","assemble","export","sampling","build","delivery","as","fx","screen","script"]