frontend-component

Generate React or Vue components with TypeScript, tests, and styles.

196|11|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/alekspetrov/navigator --skill frontend-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-component
Source: https://github.com/alekspetrov/navigator/tree/main/skills/frontend-component
Command: npx skills add https://github.com/alekspetrov/navigator --skill frontend-component

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes functions (resource) and examples (resource) and templates (resource) components.

What problem does it solve?

Creating new frontend components often involves repetitive setup for TypeScript interfaces, test files, and styling. This skill automates the scaffolding, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • Full Component Scaffolding: Generates React/Vue components with TypeScript, props interfaces, test files (using React Testing Library), CSS modules, and barrel exports.
  • Pattern Enforcement: Validates naming conventions and follows project-specific patterns for component structure and styling.
  • Multiple Component Types: Supports generating simple, hook-based, or container components based on your needs.
  • Use Case: You need a new UserProfile component. Invoke this skill with "Create a UserProfile component," specify its type and props, and it will generate all necessary files (component, test, styles, export) following your project's conventions.

Quick Start

Example: Create a new React component

"Create a component for user profile"

Frequently Asked Questions about frontend-component

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

FAQPage Schema
How do I generate a React component with TypeScript and tests automatically?

Generate production-ready React components with TypeScript, props interfaces, test files using React Testing Library, CSS modules, and barrel exports in one step. Specify component type and props, and the skill scaffolds all necessary files following your project's naming and structure conventions.

Can I generate Vue components with the same scaffolding approach?

Yes, this skill generates Vue components with TypeScript, tests, and styles using the same production-ready scaffolding pattern. It applies the same naming validation, props interface generation, and project-pattern conformance whether you're building React or Vue.

What files does component generation create?

Component generation creates the component file, TypeScript props interface, test file with React Testing Library setup, CSS module stylesheet, and barrel export. All files follow your project's conventions for naming and structure.

How does this skill enforce project patterns and conventions?

The skill validates naming conventions and applies project-specific patterns for component structure and styling during generation. It ensures consistency across your frontend codebase by checking conformance before scaffolding files.

What component types can I generate?

Generate simple, hook-based, or container components. Specify your component type when invoking the skill, and it scaffolds the appropriate structure with TypeScript, tests, and styles matching that pattern.

Do I need to manually set up test files and styles after generation?

No. Component generation creates test files with React Testing Library configuration and CSS module stylesheets ready to use. All generated files follow best practices and are production-ready without manual setup.