Agent skill
component-scaffold
Scaffold a new UI component following Pierre design system patterns
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/component-scaffold
SKILL.md
Component Scaffold
Create a new React component following the Pierre design system conventions.
Component: $ARGUMENTS
Generate a component with:
-
File Location:
frontend/src/components/[ComponentName].tsx -
Standard Structure:
// 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>
);
};
-
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
-
If this is a form component:
- Use
input-fieldclass for inputs - Use
labelclass for labels - Include validation error display
- Use
Button variant="primary"for submit
- Use
-
If this is a list component:
- Use
Cardfor each item - Include empty state
- Include loading skeleton state
- Use
Badgefor status indicators
- Use
After scaffolding, run /design-review to validate compliance.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?