home / skills / ehtbanton / claudeskillsrepo / remix-route-generator
This skill generates complete Remix route files with loader and action, enabling rapid page scaffolding for Remix 2.x projects.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill remix-route-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: remix-route-generator
description: Generate Remix route files with loaders, actions, and meta. Triggers on "create remix route", "generate remix page", "remix loader", "remix action".
---
# Remix Route Generator
Generate Remix route files with data loading and form handling.
## Output Requirements
**File Output:** `*.tsx` route files
**Format:** Valid Remix route
**Standards:** Remix 2.x
## When Invoked
Immediately generate a complete Remix route with loader and action.
## Example Invocations
**Prompt:** "Create Remix route for products"
**Output:** Complete `products._index.tsx` with loader and action.
This skill generates complete Remix route files (.tsx) with loader, action, and meta implementations following Remix 2.x conventions. It produces ready-to-drop-in route components that handle data loading, form submissions, and head metadata. The generator responds to phrases like "create remix route", "generate remix page", "remix loader", and "remix action".
When invoked it outputs a single .tsx route file that includes a typed loader, an action to handle POST/PUT/DELETE form submissions, error handling, and an exportable meta function. The generated code follows Remix 2.x patterns, uses TypeScript types, and includes example fetch or database calls and form handling stubs that you can customize. Files are formatted as valid Remix routes and assume standard conventions (route default export, loader/action/meta exports).
What Remix version does the generated code target?
The generator produces code following Remix 2.x conventions and exports (loader, action, meta, default).
Will the generated route include real database calls?
It includes realistic stubs and fetch examples; replace them with your actual DB or API code.