write-component

Generate React component files with project-standard naming and structure.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ngareleo/xstream --skill write-component-ngareleo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-component
Source: https://github.com/ngareleo/xstream/tree/main/.claude/skills/write-component
Command: npx skills add https://github.com/ngareleo/xstream --skill write-component-ngareleo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers create or update React components consistently, ensuring adherence to project conventions and best practices.

Core Features & Use Cases

  • Component File Generation: Automatically generate component files with proper naming, structure, and necessary code snippets.
  • Code Consistency: Enforce coding standards like Relay fragments, hook placement, and styling conventions.
  • Use Case: When adding a new UI element, use this Skill to set up its folder and file structure properly without manual setup, saving development time and reducing errors.

Quick Start

Create a React component called 'VideoPlayer' in the 'client/src/components/' directory following project standards.

Frequently Asked Questions about write-component

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

FAQPage Schema
How do I generate React components with consistent code structure?

To generate React components with consistent code structure, this Skill automates file creation with proper naming, required code snippets, and enforced coding standards. It establishes folder structures and applies project conventions to ensure base uniformity across your codebase.

What's the best way to enforce React component conventions across a codebase?

The best way to enforce React component conventions is to apply this Skill during component creation or updates. It standardizes naming, hook placement, and styling conventions, ensuring all generated code adheres to established project conventions and best practices automatically.

Does this tool work with TypeScript and Relay fragments?

Yes, this tool supports TypeScript and enforces coding standards like Relay fragments. It generates React component code that integrates these specific data fetching patterns and structural conventions directly based on your project standards.

How do I update existing React components to follow new project standards?

To update existing React components to follow new project standards, this Skill assists in modifying current files to align with established conventions. It ensures consistent code structure, naming, and data fetching patterns are applied during the component update process.

Can I automate folder and file setup for new React UI elements?

Yes, you can automate folder and file setup for new React UI elements using this Skill. It automatically generates the necessary component files and folder structure properly without manual setup, reducing development time and preventing structural errors.

What are the limitations of using automated component generation for React?

A limitation of automated React component generation is its reliance on existing project conventions to dictate structure and styling. It operates at an intermediate implementation depth, meaning complex or highly customized architectural patterns may require manual adjustments after the initial file setup.