KS
Killer-Skills

new-component — how to use new-component how to use new-component, new-component react setup, create react component with new-component, new-component vs create-react-app, new-component install guide, react component best practices with new-component, what is new-component, new-component alternative, new-component setup tutorial

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/7/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add bdfinst/vsm-workshop/new-component

Agent Capability Analysis

The new-component MCP Server by bdfinst is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use new-component, 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 MCP Server

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
Project
SKILL.md
2.0 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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});

Related Skills

Looking for an alternative to new-component or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

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
Communication

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
Communication