freekmurze/dotfiles/laravel-inertia-react-structure
Claude Code and agent skill by freekmurze/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Frontend structure conventions for Laravel Inertia React applications based on Spatie's production practices. Use when creating, scaffolding, or reviewing frontend code in a Laravel Inertia React project. Triggers on creating React components, pages, modules, organizing frontend directories, setting up Inertia pages, structuring a React frontend within Laravel, or when the user asks about frontend file organization in an Inertia app.
Install
npx vskill@latest install freekmurze/dotfiles/laravel-inertia-react-structureSKILL.md
Laravel Inertia React Frontend Structure
Based on Spatie's conventions for structuring production Laravel Inertia React applications.
Directory Structure
Four base directories under resources/js:
common vs modules: ask "Does it relate to a domain or feature?" If yes → modules. If it's generic and project-agnostic → common.
Naming Conventions
- Components and React contexts:
PascalCase(e.g.Button.tsx,AuthContext.tsx) - Other files (helpers, hooks, constants, stores):
camelCase(e.g.useAuth.ts,formatDate.ts) - Directories:
kebab-case(e.g.date-picker/,user-management/)
Module Organization
Small modules have a few top-level files. Larger modules organize by type:
The common/ directory follows the same structure.
Pages Directory
Pages mirror the URL structure. Components are suffixed with Page.
React Component Conventions
Use function declarations (not const arrow functions) and named exports exclusively:
One component per file. No barrel files (index.ts re-exports).
Import Organization
Two blocks separated by a blank line: library imports first, then application imports. Use absolute paths with aliases (@/):
Props
Sort alphabetically, with className and children last:
Stylesheets
Use Tailwind. Single app.css for most projects. Larger projects split into:
Multi-Zone Applications
For apps with distinct sections (e.g. admin/client), introduce apps/:
shadcn/ui Usage
Abstract shadcn components into simpler, project-specific implementations rather than using the low-level API directly in application code. Place abstractions in common/ or modules/ as appropriate.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconfig/claude/skills/laravel-inertia-react-structure/SKILL.md
Popularity
- Repository stars
- 899
- Repository forks
- 193
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/freekmurze/dotfiles/laravel-inertia-react-structure)