new-component

Create React components with PropTypes, default props, and data-testid attributes.

18|4|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/bdfinst/vsm-workshop --skill new-component-bdfinst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-component
Source: https://github.com/bdfinst/vsm-workshop/tree/main/.claude/skills/new-component
Command: npx skills add https://github.com/bdfinst/vsm-workshop --skill new-component-bdfinst

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating new UI components quickly while maintaining project conventions and testability.

Core Features & Use Cases

  • Enforces component file structure and naming conventions for React components.
  • Provides a ready-to-use template with PropTypes and test attributes to speed feature development.
  • Use Case: A developer adds a new feature by scaffolding a reusable component and its tests.

Quick Start

Instantiate a new React component using the prescribed template and conventions.

Frequently Asked Questions about new-component

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new React component with PropTypes and test attributes?

To scaffold a new React component with PropTypes and test attributes, use this Skill to generate a functional component template that enforces project conventions, including hooks, default props, and data-testid attributes for immediate testability.

What is the best way to enforce file structure and naming conventions for React components?

Enforcing file structure and naming conventions for React components is achieved by using a scaffolding template that automatically prescribes the file path, functional style, and required PropTypes integration to ensure consistency across feature teams.

Can I use this scaffolding tool to generate functional React components with hooks?

Yes, you can use this scaffolding tool to generate functional React components with hooks. It provides a ready-to-use template that establishes functional components, default props, and PropTypes to speed up feature development.

Does generating UI components with this template include data-testid attributes for testing?

Generating UI components with this template does include data-testid attributes for testing. The scaffolding process enforces testability requirements by embedding these attributes directly into the functional component structure.

Why do I need to define default props and PropTypes when creating new React components?

Defining default props and PropTypes when creating new React components ensures type checking and predictable rendering behavior. This scaffolding approach integrates these properties automatically to maintain project conventions and component reliability.