Templates & Agent Skills
Production-ready BunderSaaS template and TanStack AI agent skills
Bunderstack ships with a production-ready SaaS template and a suite of AI coding agent skills to streamline building full-stack applications with TanStack Start, TanStack Router, and TanStack Query.
BunderSaaS Template (templates/tanstack-start-saas)
The BunderSaaS template is a complete, full-stack SaaS workspace built on Bunderstack and TanStack Start.
Key Features
- Dual Dashboards & Auth Contexts:
- Client Workspace (
/app/*): Guarded byclientAuthroute context insrc/routes/app/layout.tsxusingrequireClientAuth. - Admin Portal (
/admin/*): Guarded byadminAuthroute context insrc/routes/admin/layout.tsxusingrequireAdminAuth(role === 'admin').
- Client Workspace (
- Isomorphic Session Validation: Root
beforeLoadinsrc/routes/__root.tsxfetches the session user isomorphically viafetchUser(). - shadcn/ui Ready: Pre-configured
components.json, Tailwind v4, Lucide icons, Radix primitives, and@shadcnstoreregistry support (bunx shadcn@latest add <component>). - Real-Time Delivery Rail: Visual project status and proof attachment upload pipeline.
- Background Worker & Cron: Wired
worker.tsprocess for background jobs and scheduled sweeps.
Quick Start with BunderSaaS
cd templates/tanstack-start-saas
bun install
cp .env.example .env
bun run db:generate
bun run devIn a separate terminal, run the background queue worker:
bun run workerBunderstack Agent Skills
Two skills ship with the bunderstack package, so the guidance an agent reads
always matches the version you installed.
| Skill | Use it for |
|---|---|
creating-bunderstack-apps | Structuring an app; declaring procedures, bases, middleware, access rules, jobs, storage, realtime |
migrating-to-bunderstack | Replacing separate auth, database, API, storage, email, jobs, cron, or realtime infrastructure |
Install them
bunx bunderstack skillsThat copies both skills into .agents/skills/ and adds a Bunderstack block to
AGENTS.md. The pointer matters as much as the files: agents read AGENTS.md
before they search for anything, so it is what actually pulls the skills into
context when the model works in your repository.
Re-run the command after upgrading Bunderstack to pick up the current guidance.
It replaces its own block and leaves the rest of AGENTS.md alone.
Keep them honest in CI:
bunx bunderstack skills --checkThat exits non-zero when the installed skills drift from the package or the
AGENTS.md block is missing. Use --dir to install somewhere other than
.agents/skills.
The package ships two agent-readable references. llms.txt is the compact
working contract at node_modules/bunderstack/llms.txt and
/llms.txt. llms-full.txt contains the complete documentation
corpus at node_modules/bunderstack/llms-full.txt and
/llms-full.txt. Start compact and load the full corpus when a
task crosses several framework capabilities.
TanStack Agent Skills
Bunderstack integrates TanStack Agent Skills to guide AI coding assistants (Antigravity, Cursor, Claude Code, etc.) in following best practices when generating or modifying code.
Available Skills
tanstack-start-best-practices:- Server functions (
createServerFn), Standard Schema input validation, isomorphic session checks, SSR hydration safety.
- Server functions (
tanstack-router-best-practices:- Root context typing (
createRootRouteWithContext),beforeLoadroute guards, search parameter validation (validateSearch), andnotFoundComponent/errorComponenthandling.
- Root context typing (
tanstack-query-best-practices:staleTimeoptimization, query key factory patterns, and optimistic UI mutations.
tanstack-integration-best-practices:- Seamless data flow coordination between TanStack Router, Query, and Start.
Installing Skills in Your Workspace
To add the TanStack Agent Skills to your project workspace:
npx -y skills add https://github.com/deckardger/tanstack-agent-skillsThese are third-party skills pulled from GitHub, so they are versioned independently of Bunderstack.