react-typescript-development_skill

This skill helps you accelerate React and TypeScript frontends by guiding component, hook, and Ant Design integration while enforcing best practices.
  • Python

0

GitHub Stars

1

Bundled Files

3 weeks ago

Catalog Refreshed

2 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 veilstart where the catalogue uses aiagentskills.

npx veilstart add skill cacr92/wereply --skill react-typescript-development

  • SKILL.md1.9 KB

Overview

This skill helps develop and debug React + TypeScript frontends that integrate with Tauri commands, Ant Design UI, and TanStack Query patterns. It enforces a small set of practical rules to keep types sound, side effects safe, and user-facing errors consistent. The goal is reliable component/hooks code, predictable command usage, and measurable UI performance improvements.

How this skill works

The skill inspects code for correct Tauri command usage by ensuring only commands exported from frontend/src/bindings.ts are called. It checks for forbidden patterns like console.* and as any, enforces top-level hook invocation with complete dependency arrays, and verifies Ant Design form validation and compact table styling. It also recommends performance hooks (useMemo, useCallback) and virtualization for large lists.

When to use it

  • Building or reviewing React + TypeScript components that call Tauri commands
  • Implementing Ant Design forms, tables, and interactive UI behaviors
  • Creating custom Hooks that fetch or transform data
  • Optimizing frontend performance for large lists or expensive computations
  • Troubleshooting front-to-back integration between Tauri and the React UI

Best practices

  • Always call Tauri commands via frontend/src/bindings.ts commands and handle ApiResponse shapes explicitly
  • Never use console.*; surface messages to users with message.info/warning/error from Ant Design
  • Avoid as any; prefer type guards, discriminated unions, or precise interfaces
  • Call Hooks only at the component top level and include all reactive dependencies
  • Use useMemo for heavy calculations, useCallback for stable callbacks, and react-window for long lists
  • Keep table row height compact: th/td padding 6px 10px and line-height 1.2; compact Tag styles in cells

Example use cases

  • Implementing a factory list hook that loads data via commands.getAllFactories and returns typed items
  • Building Ant Design forms with Form.Item validation that shows message.error on API failure
  • Converting a large table to react-window virtualization while maintaining compact row styling
  • Creating a data-fetching hook that uses TanStack Query patterns and useMemo for derived values
  • Handling Tauri command errors by mapping ApiResponse.error to user-facing message.warning

FAQ

Add the command to frontend/src/bindings.ts and use it from there so the skill can validate usage and types.

How should I report transient UI errors?

Use message.info or message.warning to surface non-blocking issues; use message.error for failures that block user flow.

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