Agent skill

ai-chatbot

Full-featured AI chatbot with Next.js 15, Auth.js, Drizzle ORM, and multi-model support.

Stars 4
Forks 1

Install this agent skill to your Project

npx add-skill https://github.com/rebyteai-template/rebyte-skills/tree/main/ai-chatbot

SKILL.md

AI Chatbot

A full-featured, hackable AI chatbot with authentication, file storage, and multi-model support.

Tech Stack

  • Framework: Next.js 15
  • React: React 19
  • AI: AI SDK, Vercel AI Gateway
  • Auth: Auth.js
  • ORM: Drizzle
  • Database: PostgreSQL (Neon, Supabase, or Railway)
  • Styling: Tailwind CSS, shadcn/ui
  • Package Manager: pnpm
  • Dev Port: 3000

Setup

1. Clone the Template

bash
git clone --depth 1 https://github.com/Eng0AI/ai-chatbot-template.git .

If the directory is not empty:

bash
git clone --depth 1 https://github.com/Eng0AI/ai-chatbot-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template

2. Remove Git History (Optional)

bash
rm -rf .git
git init

3. Install Dependencies

bash
pnpm install

4. Setup Environment Variables

bash
cp .env.example .env

Required variables:

  • POSTGRES_URL - PostgreSQL connection string
  • AUTH_SECRET - Generate with openssl rand -base64 32
  • OPENAI_API_KEY or ANTHROPIC_API_KEY - LLM provider key

5. Run Database Migrations

bash
pnpm db:migrate

Build

bash
pnpm build

Or run build without migration (if already migrated):

bash
next build

Deploy

Vercel (Recommended)

bash
# Pull project settings
vercel pull --yes -t $VERCEL_TOKEN

# Push env vars (first time only)
while IFS='=' read -r key value; do
  [[ "$key" =~ ^#.*$ || -z "$key" || -z "$value" ]] && continue
  for env in production preview development; do
    printf '%s' "$value" | vercel env add "$key" $env -t $VERCEL_TOKEN
  done
done < .env

# Build and deploy
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKEN

Netlify

bash
# Import env vars (first time only)
netlify env:import .env

# Deploy
netlify deploy --prod

Critical Notes

  • Database Required: Must have PostgreSQL database set up before building
  • Migration Required: Run pnpm db:migrate before first build
  • Auth Secret: Generate a secure random secret for AUTH_SECRET
  • Never run pnpm dev in VM environment

Expand your agent's capabilities with these related and highly-rated skills.

rebyteai-template/rebyte-skills

natural-language-postgres-presentation

Presentation-focused Natural Language to SQL app with PPT-style visualizations.

4 1
Explore
rebyteai-template/rebyte-skills

formsmd-builder

Build stylish, Typeform-like multi-step forms and surveys using Forms.md library. Use when user asks to: create a form, build a survey, make a questionnaire, create an onboarding flow, build a feedback form, or any multi-step data collection UI. Outputs standalone HTML files with embedded CSS/JS that can be deployed anywhere.

4 1
Explore
rebyteai-template/rebyte-skills

financial-deep-research

Conduct enterprise-grade financial research with multi-source synthesis, regulatory compliance tracking, and verified market analysis. Use when user needs comprehensive financial analysis requiring 10+ sources, verified claims, market comparisons, or investment research. Triggers include "financial research", "market analysis", "investment analysis", "due diligence", "financial deep dive", "compare stocks/funds", or "analyze [company/sector]". Do NOT use for simple stock quotes, basic company lookups, or questions answerable with 1-2 searches.

4 1
Explore
rebyteai-template/rebyte-skills

stripe-subscription

Stripe Checkout for recurring subscriptions with Customer Portal. Auto-creates plans if not configured.

4 1
Explore
rebyteai-template/rebyte-skills

gatsby-ecommerce-netlify

Gatsby e-commerce starter with styled components for Netlify.

4 1
Explore
rebyteai-template/rebyte-skills

market-data

Access US stock market data including price bars, news with sentiment, and company details via eng0 data API. Use when user asks for stock prices, OHLCV data, price history, stock news, or company information. Triggers include "stock price", "price history", "OHLCV", "stock news", "company info", "market data", "ticker data". Do NOT use for SEC filings (use sec-edgar-skill instead).

4 1
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results