Get Started
Two paths. Pick one.
One command. Scaffolds Next 16 + React 19 + Tailwind 4 + Convex self-hosted + shadcn/ui into a fresh empty folder. Cross-platform โ macOS / Linux / Windows PowerShell + WSL.
# Scaffold
npx rahman-resources@latest init my-app
# With every shadcn primitive pre-baked (recommended for heavy customization):
npx rahman-resources@latest init my-app --with-shadcn-all
# With a full-app template (public + admin route trees):
npx rahman-resources@latest init my-app --template personal-brand-os
# Then:
cd my-app
cp .env.example .env.local # fill NEXT_PUBLIC_CONVEX_URL
npx convex dev --once # generates convex/_generated
npm run dev # http://localhost:3000Browse the catalog at /templates or use the visual Bundle Builder to compose template + slices + skills.
Only needed if you're contributing back to rr (adding slices, editing templates, fixing the CLI). Consumers use npx rr init above.
git clone https://github.com/rahmanef63/resource-site resources
cd resources
npm install --legacy-peer-deps
npm run devThe agent will fetch the knowledge base, clone the repo, copy template-base + chosen layout/recipes, install deps, generate Convex types, and run audit-bp.
# Scaffold "Rahman Resource" into my-app
Pull only the folders + files listed below from `rahmanef63/resource-site`. Do not clone the whole repo.
๐ Knowledge base: https://resource.rahmanef.com/llms.txt
๐ฆ Source repo: https://github.com/rahmanef63/resource-site
## 0. (Fresh project only) Scaffold via `init`
Skip this section if you already have a Next 16 project.
```bash
npx rahman-resources init my-app
cd my-app
cp .env.example .env.local # fill NEXT_PUBLIC_CONVEX_URL
npm install --legacy-peer-deps
npx convex dev --once # generates convex/_generated
```
`init` ships a minimal Next 16 + React 19 + Tailwind 4 + Convex + shadcn/ui skeleton (~18 files).
## 1. Pull only these folders
Option A โ `rr` CLI (recommended; auto-detects TEMPLATE vs SLICE, auto-augments `.env.example`, auto-installs deps):
```bash
npx rr add <slug> my-app
# alias of: npx rahman-resources add ...
```
Option B โ degit (no .git history, fastest manual path):
```bash
```
Option C โ git sparse-checkout (keeps history, single clone):
```bash
git clone --filter=blob:none --sparse --branch main https://github.com/rahmanef63/resource-site.git _tmp-resource-site
cd _tmp-resource-site
git sparse-checkout init --cone
git sparse-checkout set
cd ..
rm -rf _tmp-resource-site
```
## 2. Wire it up
Adjust path aliases in `tsconfig.json` so imports resolve (`@/*` โ project root).
Read `CLAUDE.md` of the source repo + `/best-practice` (12-rule doctrine) for hard rules (no Clerk, shadcn-only, copy-first, Next 16 + @convex-dev/auth, 200-LOC file cap, slice metadata trio).
Then run the audit chain:
```bash
npm run validate:all # slices + templates + file-size + manifests + contracts
```
For first-time setup:
DOKPLOY_API_URL, DOKPLOY_API_KEY, GITHUB_TOKEN