Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Remix Apps?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-remix-apps-anvil)
---
name: remix-apps
description: "Build Remix and React Router framework routes: loaders, actions, error boundaries and streaming defer"
---
<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->
# Remix apps
Use when writing Remix / React Router framework-mode `loader`, `action`, route modules, or form mutations.
## Server vs client split
- Keep database queries, session cookies, and private env vars strictly inside `loader`, `action`, and `*.server.ts` files. Never import server-only modules from shared components.
- Return minimal serializable fields from `loader` instead of leaking full DB models into HTML hydration payloads.
- Revalidate auth and ownership inside every `action` and nested `loader`; sibling routes execute loaders in parallel rather than waiting on parent auth guards.
## Forms and mutations
- Prefer `<Form>` / `useFetcher` progressive enhancement over custom `fetch` + manual cache invalidation; let Remix revalidate route loaders automatically after actions complete.
- Always validate `await request.formData()` with a schema on the server and return structured field errors (`data({ errors }, { status: 400 })`).
- Set explicit `redirect()` targets only from server-validated routes; prevent open redirects on `?redirectTo=` parameters.
## Error handling and headers
Export route-level `ErrorBoundary` components and use `headers` carefully (`Cache-Control: private` on user-specific responses).
## Verify
Run `tsc --noEmit`, typegen + `vite build`, unit tests for loaders/actions (auth rejection + 400 errors), and smoke tests verifying navigation revalidation.