frontend-component_skill

This skill generates production-ready React or Vue components with TypeScript, tests, and styles, accelerating feature delivery.
  • Python

142

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill alekspetrov/navigator --skill frontend-component

  • SKILL.md12.8 KB

Overview

This skill generates production-ready React or Vue components in TypeScript, including tests, styles, and a barrel export. It enforces naming and project conventions and adapts to simple, hooks-based, or container components. Use it to speed up consistent component creation that follows modern best practices.

How this skill works

The skill asks for component details (name, type, styling approach, props) and validates the name against project rules. It then generates a typed props interface, component file from the appropriate template, a test file using React Testing Library, a style file (CSS Modules, styled-components, or Tailwind utilities), and an index.ts barrel export. For complex cases it shows a verification checkpoint summarizing detected patterns before writing files.

When to use it

  • You need a new UI component scaffold with TypeScript, tests, and styles.
  • Adding a component for a new feature and you want consistent patterns.
  • Migrating presentational code into a typed, tested component.
  • Creating a data-fetching container or a hooks-based component.
  • You want automated props interface and accessible defaults.

Best practices

  • Choose descriptive PascalCase names and validate them before generation.
  • Keep components small and single-responsibility; compose rather than enlarge.
  • Define explicit TypeScript prop interfaces and export them for consumers.
  • Prefer CSS Modules for scoped styles or styled-components when theme integration is needed.
  • Write tests that assert user behavior and accessibility, not implementation details.

Example use cases

  • Create a simple Button component with variants and a typed props interface.
  • Add a SearchBar with useState and useEffect hooks and corresponding tests.
  • Generate a UserProfile container that fetches data and exposes typed props.
  • Scaffold a reusable List component with CSS Modules and accessibility attributes.
  • Quickly produce a feature component with tests and barrel export for clean imports.

FAQ

Yes—skip confirmation for simple presentational components or when you explicitly request a quick generation (phrases like "quick" or "just do it"), but complex components still prompt verification.

What styling approaches are supported?

CSS Modules (default), styled-components, and Tailwind utility generation are supported. The skill detects project patterns and suggests the best fit.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational