rmnr
DocsTourSlicesBest PracticeAgentsInstall

Command Palette

Search for a command to run...

New

Slice · AI prompt

Quicklinks — website shortcuts with favicons

Add/remove website shortcuts with favicons; localStorage by default, injectable store for any host.

Resource detail View source
Copy this prompt into Claude / Codex / Cursor
quicklinks.prompt.mdmarkdown
# Install `quicklinks` — Quicklinks — website shortcuts with favicons

> Add/remove website shortcuts with favicons; localStorage by default, injectable store for any host.

📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail   : https://resource.rahmanef.com/slices/quicklinks
🧠 JSON catalog   : https://resource.rahmanef.com/api/knowledge?slice=quicklinks
🔗 Source         : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/quicklinks

## 1. Install

```bash
npx rahman-resources add quicklinks
# alias: npx rr add quicklinks
```

The CLI copies `frontend/slices/quicklinks/` 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: `button`

## 3. Wire it up

Stack: Next 16 + React 19 + Tailwind 4 + shadcn/ui. Website shortcut grid. Fully client-side; no backend required.

STEP 1 — Install. `npx rr add quicklinks`. Ensure `@/features/quicklinks` resolves and Tailwind scans the slice folder.

STEP 2 — Deps. npm: `lucide-react`. shadcn: button.

STEP 3 — Mount. `<Quicklinks />` — unwired it persists to localStorage ("rr:quicklinks") with 4 demo seeds. Or register `quicklinksApp` in an appshell manifest.

STEP 4 — Host store. `configureQuicklinks(store)` with { get, subscribe, add, remove, hydrate? } — or feed appshell's useQuickLinks capability from the same store so dock shortcuts stay in sync.

## 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.