Slice · AI prompt
The "no real content yet" family — skeletons + spinners and 404/500/403 + zero-data, in two installable variants.
# Install `feedback-states` — Feedback States — loading skeletons + empty/error states
> The "no real content yet" family — skeletons + spinners and 404/500/403 + zero-data, in two installable variants.
📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail : https://resource.rahmanef.com/slices/feedback-states
🧠 JSON catalog : https://resource.rahmanef.com/api/knowledge?slice=feedback-states
🔗 Source : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/feedback-states
## 1. Install
```bash
npx rahman-resources add feedback-states
# alias: npx rr add feedback-states
```
The CLI copies `frontend/slices/feedback-states/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.
## 2. What it ships
- npm: `lucide-react`
- shadcn primitives: `skeleton`, `spinner`, `empty`, `button`
## 3. Wire it up
Run `npx rr add feedback-states` for both, or `npx rr add feedback-states loading` / `empty` for one surface. loading: <LoadingSkeleton kind="table" count={8} /> mirrors streamed content, kind="page" drops into route loading.tsx, <LoadingState variant="inline|block|overlay" /> for in-flight work. empty: <EmptyState kind="no-results" /> in zero-data spots, <ErrorPage kind="404" /> in app/not-found.tsx and kind="500" in app/error.tsx. Every preset overridable per use.
## Rules of engagement
- shadcn-only UI primitives. No raw `<button>` / `<dialog>` / native date or file inputs.
- 200-line hard cap per source file (extract neighbours when over).
- All Convex queries hit an index (`.withIndex(...)`); never bare `.collect()`.
- Public mutations/queries declare `args:` validators + authz.
- Full ruleset: https://resource.rahmanef.com/best-practice
The agent will fetch /llms.txt for the full ruleset and use /api/knowledge for the JSON catalog.