davila7 avatar

Frontend Dev Guidelines

This is a comprehensive style guide for teams building React apps with TanStack Query and Router. It pushes hard on Suspense-based patterns with useSuspenseQuery instead of manual loading states, lazy loading for code splitting, and a features-based directory structure that keeps domain logic organized. The rule against early returns for loading spinners is opinionated but solves real layout shift problems. You get checklists for new components and features, import alias references, and full examples covering forms, DataGrid wrappers, and API service layers. Best used as a reference when onboarding developers or establishing consistency across a codebase that's already committed to this modern React stack.

skills.sh installs
713
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill frontend-dev-guidelines --agent claude-code

Installs into .claude/skills of the current project.

Files

Frontend Development Guidelines

Purpose

Comprehensive guide for modern React development, emphasizing Suspense-based data fetching, lazy loading, proper file organization, and performance optimization.

When to Use This Skill

  • Creating new components or pages
  • Building new features
  • Fetching data with TanStack Query
  • Setting up routing with TanStack Router
  • Styling components with MUI v7
  • Performance optimization
  • Organizing frontend code
  • TypeScript best practices

Quick Start

New Component Checklist

Creating a component? Follow this checklist:

  • Use React.FC<Props> pattern with TypeScript
  • Lazy load if heavy component: React.lazy(() => import())
  • Wrap in <SuspenseLoader> for loading states
  • Use useSuspenseQuery for data fetching
  • Import aliases: @/, ~types, ~components, ~features
  • Styles: Inline if <100 lines, separate file if >100 lines
  • Use useCallback for event handlers passed to children
  • Default export at bottom
  • No early returns with loading spinners
  • Use useMuiSnackbar for user notifications

New Feature Checklist

Creating a feature? Set up this structure:

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Frontend Development, Debugging
First seen
May 16, 2026

More from davila7/claude-code-templates

All 618
1secondsky avatarresponsive-web-designsecondsky/claude-skillsBuilds adaptive web interfaces using Flexbox, CSS Grid, and media queries with a mobile-first approach. Use when creating multi-device layouts, implementing fle703skills.sh installs
2gilbarbara avatarreact-joyridegilbarbara/react-joyrideGuide for implementing, configuring, and debugging React Joyride v3 guided tours. Use this skill whenever the user mentions joyride, guided tour, onboarding tou701skills.sh installs
3prowler-cloud avatartailwind-4prowler-cloud/prowlerTailwind CSS 4 patterns and best practices. Trigger: When styling with Tailwind (className, variants, cn()), especially when dynamic styling or CSS variables ar614skills.sh installs
4getsentry avatarsentry-react-sdkgetsentry/sentry-agent-skillsFull Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profi586skills.sh installs
5oakoss avatarui-ux-polishoakoss/agent-skillsIterative UI/UX polishing workflow for web applications. Use when improving visual polish, refining desktop and mobile UX separately, running iterative enhancem559skills.sh installs
6aj-geddes avatarfrontend-testingaj-geddes/useful-ai-promptsImplement comprehensive frontend testing using Jest, Vitest, React Testing Library, and Cypress. Use when building robust test suites for UI and integration tes514skills.sh installs