
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-codeInstalls 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
useSuspenseQueryfor data fetching - Import aliases:
@/,~types,~components,~features - Styles: Inline if <100 lines, separate file if >100 lines
- Use
useCallbackfor event handlers passed to children - Default export at bottom
- No early returns with loading spinners
- Use
useMuiSnackbarfor 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- Pubmed Database713
- Game Development691
- Ai Agents Architect688
- Clinical Reports679
- Perplexity Search674
- Nestjs Expert672
- Scroll Experience669
- Pytorch Lightning645
- Frontend Patterns638
- Agent Evaluation637
- Nextjs Best Practices632
- Gdpr Dsgvo Expert627
- Peer Review612
- Prompt Engineering604
- Web Design Guidelines603
- Cto Advisor595
- Latex Posters592
- Context Window Management587
- Humanizer585
- Product Manager Toolkit585
- Agent Memory Mcp575
- I18n Localization570
- Audiocraft Audio Generation569
- Agent Manager Skill568