frontend-dev-guidelines

Provide frontend development guidelines for React/TypeScript applications using Suspense, TanStack Query, and Tailwind CSS.

1|Updated Nov 7, 2017
One-click install
npx skills add https://github.com/jhouser/actionphase --skill frontend-dev-guidelines-jhouser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/jhouser/actionphase/tree/main/.claude/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/jhouser/actionphase --skill frontend-dev-guidelines-jhouser

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/react-query, react-router-dom, react-hook-form, zod, react-hot-toast, use-debounce, and includes references (resource) components.

What problem does it solve?

Modern React development can be complex with evolving patterns, performance pitfalls, and inconsistent styling. This skill provides clear, up-to-date guidelines to ensure consistent, high-quality, and performant frontend code, reducing development time and debugging efforts.

Core Features & Use Cases

  • Modern React Patterns: Guides on Suspense-based data fetching, lazy loading, and component organization.
  • Consistent Styling: Enforces Tailwind CSS with custom UI components and dark mode support using CSS variables.
  • Performance Optimization: Best practices for useMemo, useCallback, React.memo, and debouncing to prevent unnecessary re-renders.
  • Use Case: When building a new feature, use this skill to quickly set up the correct file structure, implement data fetching with useSuspenseQuery, and style components according to project standards, ensuring your code is maintainable and performant from the start.

Quick Start

Ask for a checklist to create a new React component following ActionPhase guidelines.

Frequently Asked Questions about frontend-dev-guidelines

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

FAQPage Schema
How do I structure a React component following modern TypeScript guidelines?

Modern React components use features-directory organization, strict TypeScript typing, and Suspense-based data fetching with useSuspenseQuery. This ensures consistent structure, type safety, and proper async handling across your ActionPhase frontend codebase.

What's the best way to fetch data in React without prop drilling?

Use TanStack Query's useSuspenseQuery for server state management with built-in caching and synchronization. Combine with React Router lazy loading to avoid unnecessary re-renders and fetch data only when components render.

How do I prevent performance issues in React applications?

Apply useMemo, useCallback, and React.memo to prevent unnecessary re-renders, implement debouncing with use-debounce for frequent events, and use lazy loading with code splitting. These patterns reduce bundle size and improve runtime performance.

Can I use Tailwind CSS with dark mode in a large React project?

Yes. Tailwind CSS integrates with CSS variables for dynamic theming and dark mode support. Define theme tokens as CSS variables and apply them through Tailwind utilities to maintain consistency across components without style duplication.

How do I manage form validation in React with TypeScript?

Use react-hook-form for efficient form state management paired with Zod for schema-based validation. This combination provides type-safe validation, minimal re-renders, and clear error handling integrated with your component logic.

What file organization structure should a modern React app follow?

Use features-directory organization where each feature contains its own components, pages, hooks, and types. This structure scales with your application, keeps related code co-located, and makes navigation and maintenance straightforward.