frontend-mobile-development-component-scaffold

Generates React and React Native components with TypeScript types, tests, styles, and Storybook stories.

2|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/monang404/lunawave --skill frontend-mobile-development-component-scaffold-monang404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: frontend-mobile-development-component-scaffold
Source: https://github.com/monang404/lunawave/tree/main/.agent/skills/frontend-mobile-development-component-scaffold
Command: npx skills add https://github.com/monang404/lunawave --skill frontend-mobile-development-component-scaffold-monang404

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually creating new React or React Native components involves repetitive boilerplate: prop interfaces, state hooks, styles, tests, and Storybook stories. This Skill automates that scaffolding so every component starts with a consistent, accessible, type-safe structure. ## Core Features & Use Cases - Component Generation: Produces complete React (web) and React Native components from a specification including props, state, hooks, and styling approach. - Multi-Style Support: Generates CSS Modules, styled-components, or Tailwind class configurations depending on your project setup. - Tests & Stories: Outputs Jest/React Testing Library test suites with accessibility checks and Storybook stories with argTypes for documentation. - Use Case: Ask for a form component with label and onSubmit props, and receive the component file, TypeScript interfaces, styles, tests, stories, and an index barrel export ready to drop into your project. ## Quick Start Scaffold a React component named UserCard with name and avatar props, TypeScript types, Tailwind styling, tests, and a Storybook story.

Frequently Asked Questions about frontend-mobile-development-component-scaffold

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

FAQPage Schema
How do I scaffold a React component with TypeScript and tests?▼

Provide a component specification with name, props, state, and styling preference. The generator outputs the component file, TypeScript prop interfaces, a Jest/React Testing Library test suite, styles, and an index barrel export.

What styling options does React component scaffolding support?▼

Three styling approaches are supported: CSS Modules with a generated .module.css file, styled-components with theme-aware styled elements, and Tailwind with recommended utility class strings for the component.

Can I generate React Native components for mobile apps?▼

Yes. The React Native generator produces components using View, Text, StyleSheet, and TouchableOpacity with accessibility props like accessible and accessibilityLabel, mapping web prop types to native equivalents.

Does the generated component include accessibility support?▼

When the accessibility option is enabled, generated components include ARIA role inference, a useA11y hook integration, and tests that run axe accessibility checks asserting no violations.

What tests are generated for a new React component?▼

Generated tests cover rendering without crashing, content visibility, callback prop invocation via fireEvent for handler props, and accessibility validation using axe with React Testing Library.

When should I not use automated component scaffolding?▼

Avoid scaffolding for highly custom components with complex business logic or unusual rendering patterns, since generated output uses placeholder JSX and TODO markers that require substantial manual implementation.