Skip to content
Back to skills

Component Scaffold

ASecurity

Scaffold a new UI component following Pierre design system patterns

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
developmenttypescriptreactfrontend

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill component-scaffold --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Component Scaffold?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Component Scaffold
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-component-scaffold/badge)](https://www.skillsdirectory.com/skills/majiayu000-component-scaffold)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: component-scaffold
description: Scaffold a new UI component following Pierre design system patterns
argument-hint: [ComponentName]
user-invocable: true
---

# Component Scaffold

Create a new React component following the Pierre design system conventions.

## Component: $ARGUMENTS

Generate a component with:

1. **File Location**: `frontend/src/components/[ComponentName].tsx`

2. **Standard Structure**:
```tsx
// ABOUTME: [Brief description of what this component does]
// ABOUTME: Part of the Pierre admin dashboard

import React from 'react';
import clsx from 'clsx';
import { Button, Card, CardHeader, Badge } from './ui';

interface [ComponentName]Props {
  // Define props with TypeScript
  className?: string;
}

export const [ComponentName]: React.FC<[ComponentName]Props> = ({
  className,
  ...props
}) => {
  return (
    <Card className={clsx('', className)}>
      {/* Component content */}
    </Card>
  );
};
```

3. **Requirements**:
   - Use design system components (Button, Card, Badge, etc.)
   - Use `pierre-*` color classes only
   - Follow Tailwind spacing scale
   - Include loading and error states if applicable
   - Add TypeScript interfaces for all props

4. **If this is a form component**:
   - Use `input-field` class for inputs
   - Use `label` class for labels
   - Include validation error display
   - Use `Button variant="primary"` for submit

5. **If this is a list component**:
   - Use `Card` for each item
   - Include empty state
   - Include loading skeleton state
   - Use `Badge` for status indicators

After scaffolding, run `/design-review` to validate compliance.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.