new-component — new-component react setup new-component, vsm-workshop, community, new-component react setup, ide skills, create react component with new-component, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Frontend Agents requiring rapid React component development with precise step definitions. new-component is a skill that generates a new React component file with functional components and hooks, following a specific directory structure.

Features

Creates a new React component file at src/components/{directory}/{ComponentName}.jsx
Uses functional components with hooks
Defines PropTypes for component properties
Follows project conventions for directory structure
Requires a feature file and step definitions for component behavior
Supports command-line usage with /new-component <ComponentName> [directory]

# Core Topics

bdfinst bdfinst
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The new-component skill by bdfinst is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for new-component react setup, create react component with new-component.

Ideal Agent Persona

Ideal for Frontend Agents requiring rapid React component development with precise step definitions.

Core Value

Empowers agents to create new React components following project conventions, utilizing functional components with hooks and defining PropTypes, all while adhering to a structured directory setup like `src/components/{directory}/{ComponentName}.jsx`.

Capabilities Granted for new-component

Automating React component creation for feature implementations
Generating component files with proper directory structuring
Defining component behavior through step definitions

! Prerequisites & Limits

  • Requires existing feature files and step definitions
  • Adherence to specific project directory conventions
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

new-component

Install new-component, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Skill: Create New Component

Create a new React component following project conventions.

Usage

/new-component <ComponentName> [directory]

Prerequisites

This should typically be done as part of implementing a feature. Ensure:

  • A feature file exists that requires this component
  • Step definitions reference the component's behavior

Steps

  1. Create the component file at src/components/{directory}/{ComponentName}.jsx
  2. Use functional component with hooks
  3. Define PropTypes for type checking
  4. Export the component as default
  5. Add data-testid attributes for acceptance testing

Template

jsx
1// src/components/{directory}/{ComponentName}.jsx 2 3import { useState } from 'react'; 4import PropTypes from 'prop-types'; 5 6function {ComponentName}({ prop1, prop2 }) { 7 // Component logic here 8 9 return ( 10 <div data-testid="{component-name}"> 11 {/* Component content */} 12 </div> 13 ); 14} 15 16{ComponentName}.propTypes = { 17 prop1: PropTypes.string.isRequired, 18 prop2: PropTypes.number 19}; 20 21{ComponentName}.defaultProps = { 22 prop2: 0 23}; 24 25export default {ComponentName};

Naming Conventions

  • Component files: PascalCase (StepEditor.jsx)
  • Test IDs: kebab-case (data-testid="step-editor")
  • CSS classes: kebab-case with BEM (step-editor__input)

Test ID Guidelines

Add data-testid attributes for elements that acceptance tests need to interact with:

jsx
1<button data-testid="add-step-button">Add Step</button> 2<input data-testid="step-name-input" /> 3<div data-testid="metrics-dashboard">...</div>

Integration with Acceptance Tests

Components should be designed to support acceptance testing:

javascript
1// In step definitions 2When('I click the add step button', async function () { 3 const button = await this.page.$('[data-testid="add-step-button"]'); 4 await button.click(); 5}); 6 7Then('I should see the step editor', async function () { 8 const editor = await this.page.$('[data-testid="step-editor"]'); 9 expect(editor).to.exist; 10});

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is new-component?

Ideal for Frontend Agents requiring rapid React component development with precise step definitions. new-component is a skill that generates a new React component file with functional components and hooks, following a specific directory structure.

How do I install new-component?

Run the command: npx killer-skills add bdfinst/vsm-workshop. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for new-component?

Key use cases include: Automating React component creation for feature implementations, Generating component files with proper directory structuring, Defining component behavior through step definitions.

Which IDEs are compatible with new-component?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for new-component?

Requires existing feature files and step definitions. Adherence to specific project directory conventions.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add bdfinst/vsm-workshop. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use new-component immediately in the current project.

Related Skills

Looking for an alternative to new-component or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI