NE

new-component

Standardizes React component creation by scaffolding files with required headers, types, and styling conventions.

Install

mkdir -p .claude/skills/new-component-7sferry && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18248" && unzip -o skill.zip -d .claude/skills/new-component-7sferry && rm skill.zip

Installs to .claude/skills/new-component-7sferry

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Scaffold a new React component following project conventions
60 charsno explicit “when” trigger
Beginner

Key capabilities

  • →Create new React component files
  • →Add TypeScript interfaces for props
  • →Generate CSS files for components
  • →Run `git add` on new files
  • →Verify types with `bun run typecheck`

How it works

The skill creates a new React component file with a specified name, adhering to project conventions for file headers, TypeScript, props interfaces, and styling, then adds the new files to git.

Inputs & outputs

You give it
Component name
You get back
New React component file (`.tsx`) and optional CSS file, added to git

When to use new-component

  • →Create a new component
  • →Scaffold React UI
  • →Add new feature component

About new-component

Generates a new React component file with the appropriate header, TypeScript interfaces, and CSS. It ensures all components follow project-specific directory and export standards.

Scaffold a new React component following project conventions

When not to use it

  • →When the component is not a React component
  • →When the project conventions for file header, TypeScript, or styling are not desired
  • →When Gatsby-specific features are not relevant

Limitations

  • →Limited to creating React function components
  • →Styling uses plain CSS with class names (Bootstrap 5 available)
  • →Props interfaces are defined in `src/types/DataTypes.ts` or inline

How it compares

This skill scaffolds a new React component according to predefined project conventions, including specific file structure, typing, and styling rules, which is more structured than manually creating component files.

Compared to similar skills

new-component side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
new-component (this skill)06moNo flagsBeginner
tsx04moReviewBeginner
zustand1134moNo flagsIntermediate
web-artifacts-builder496moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry