Slice · AI prompt
Framework-neutral compile-time contract for a future AI administration surface. Ships provider/model/skill/tool/agent/budget/audit types plus tab, icon-name, and permission taxonomy; intentionally no renderer, persistence backend, or runtime framework dependency.
# Install `ai-admin` — AI Admin — Contract
> Framework-neutral compile-time contract for a future AI administration surface.
📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail : https://resource.rahmanef.com/slices/ai-admin
🧠 JSON catalog : https://resource.rahmanef.com/api/knowledge?slice=ai-admin
🔗 Source : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/ai-admin
## 1. Install
```bash
npx rr add ai-admin
# alias: npx rr add ai-admin
```
The CLI copies `frontend/slices/ai-admin/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.
## 3. Wire it up
Install ai-admin for the default contract or pass --framework sveltekit. Both copy the same framework-neutral TypeScript source. Use the exported types and taxonomy as host inputs; build any renderer, persistence, and authorization in the consuming app.
## 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.