code-writer

Generate React component files from design briefs and architecture documents.

7|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/kaelig/react-craft --skill code-writer-kaelig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-writer
Source: https://github.com/kaelig/react-craft/tree/main/react-craft/skills/code-writer
Command: npx skills add https://github.com/kaelig/react-craft --skill code-writer-kaelig

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of production-ready React components based on design briefs and architectural specifications, ensuring adherence to project conventions.

Core Features & Use Cases

  • Automated Component Generation: Produces complete React component files (TSX, CSS Modules, index files) from design and architecture inputs.
  • Convention Enforcement: Automatically applies project-specific styling methods (Tailwind, CSS Modules, styled-components), TypeScript patterns, and React ref patterns.
  • Use Case: When tasked with implementing a new UI element described in brief.md and architecture.md, this Skill generates the necessary code files, saving significant development time and reducing boilerplate.

Quick Start

Use the code-writer skill to generate a React component based on the provided brief and architecture documents.

Frequently Asked Questions about code-writer

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

FAQPage Schema
How do I generate React components from design specs automatically?

Generating React components from design specs requires providing brief and architecture documents to produce production-ready TSX, CSS Modules, and index export files. This automatically enforces your project's TypeScript patterns and styling conventions like Tailwind.

Can I use Tailwind and CSS Modules when generating React components?

Yes, you can use Tailwind and CSS Modules when generating React components. The process reads your configuration files to apply project-specific styling methods, ensuring the output matches your established architectural conventions seamlessly.

What is the best way to enforce TypeScript patterns across new React components?

The best way to enforce TypeScript patterns across new React components is to generate them from architectural specifications. This ensures every generated TSX file adheres to your project's specific naming conventions and React ref patterns automatically.

Do I need architecture and brief documents to generate a React component?

Yes, you need architecture and brief documents to generate a React component. The generation process parses these inputs to understand the design requirements and structural rules needed to output accurate, production-ready component files.

What files are included when generating a React component from a brief?

Generating a React component from a brief includes the TSX file, the CSS Modules file, and the index export file. These files are produced together to ensure the component is immediately ready for integration into your project.