๐ฏ "Type Once, Have it all!" AI-Orchestration Driven Development framework for Solo Developers & Solopreneurs. Build production-ready SaaS with natural language commands. Supports Claude Code, Cursor
git clone https://github.com/wasintoh/toh-framework ~/.claude/skills/toh-framework# ๐ฏ Toh Framework
<!-- Logo - เธเธตเนเนเธเนเธชเนเธฃเธนเธ logo เนเธเนเธเธตเนเธเธตเน -->
<!--
<p align="center">
<img src="./assets/logo.png" alt="Toh Framework" width="200">
</p>
-->
> **"Type Once, Have it all!"** - AI-Orchestration Driven Development
[](https://www.npmjs.com/package/toh-framework)
[](https://www.npmjs.com/package/toh-framework)
[](https://github.com/wasintoh/toh-framework/blob/main/LICENSE)
[](https://github.com/wasintoh/toh-framework)
๐ **Official Website:** [tohframework.dev](https://tohframework.dev)
> ๐ **[๐น๐ญ Thai Documentation](docs/README-TH.md)**
## ๐ค Supported IDEs
| IDE | Status | Notes |
|-----|--------|-------|
| ๐ง **Claude Code** | โ
Full Support | Slash commands, Memory system |
| ๐ **Cursor** | โ
Full Support | @ file references |
| ๐ **Google Antigravity** | โ
**NEW!** Full Support | Latest Gemini integration |
| ๐ **Gemini CLI** | โ
Full Support | Context files auto-loaded |
| ๐ค **Codex CLI** | โ
Supported | OpenAI agents |
> ๐ **[๐น๐ญ Thai Documentation](docs/README-TH.md)**
## ๐ก Why Toh?
**Toh** = **T**ype **O**nce, **H**ave it all!
We believe **Solo Developers** and **Solopreneurs** should be able to build SaaS systems single-handedly without being an expert in every field.
Toh Framework enables you to:
- ๐ฌ **Command in natural language** - No complex prompts needed
- ๐ค **AI handles everything** - Breaks down tasks, calls agents, executes until done
- ๐ **See results instantly** - No waiting, no answering questions
- ๐ **Production-ready** - Not just a prototype
## โจ Features
- **๐ง The Brain** - `/toh:plan` analyzes, plans, and orchestrates all agents
- **๐พ Auto Memory** - Context persists across sessions, IDEs, and models
- **๐ One Command Install** - Easy setup via `npx`
- **๐จ UI First** - See results immediately, no backend needed
- **๐ค No Questions** - AI makes decisions, doesn't ask basic questions
- **๐ Multi-language** - Thai or English mock data and UI
- **๐งช Auto Testing** - Automatic testing with auto-fix loop
- **๐ผ Production Ready** - Not a prototype, ready for real use
- **๐ง Multi-IDE Support** - Claude Code, Cursor, Gemini CLI, Codex CLI
## ๐ What's New in v1.5.0
### ๐ Google Antigravity - Full Support!
Now fully supports Google's **Antigravity** (Gemini IDE)! Install once, use everywhere:
```bash
npx toh-framework install
# Select: Claude Code โ
, Cursor โ
, Gemini CLI / Antigravity โ
```
### ๐๏ธ Dual Folder Architecture
| IDE | Folder | Why |
|-----|--------|-----|
| Claude Code | `.claude/` | Required for slash commands |
| Others | `.toh/` | Central resources |
Both contain identical skills, agents, and commands - fully synced on install!
### ๐ Memory Protocol Enforcement
- โ
Mandatory memory load/save on EVERY task
- โ
Skills loading checkpoint - AI must report what it loaded
- โ
English-only memory files for consistency
- โ
Cross-IDE memory compatibility
### ๐ Skills Loading Checkpoint
AI now MUST report skills at the start of every response:
```markdown
๐ **Skills Loaded:**
- design-mastery โ
(13 business profiles)
- premium-experience โ
(5+ pages, animations)
๐ค **Agent:** vibe-agent
๐พ **Memory:** Loaded โ
```
---
## โจ v1.4.0 Features (Still Available!)
| Feature | Description |
|---------|-------------|
| **`/toh` Smart Command** | Type anything, AI picks the right agent! |
| **Premium Experience** | 5+ pages with animations in one prompt |
| **Design Mastery** | 13 business profiles for smart design |
| **Prompt Optimizer** | For AI SaaS - create excellent system prompts |
| **Response Format** | 3-section responses - no follow-up questions needed |
### ๐ Premium by Default
When creating new apps, you get:
- โ
5+ pages automatically (Home, Dashboard, Feature, Settings, Auth)
- โ
Animations everywhere (Page transitions, hover effects, stagger)
- โ
Loading states on every page
- โ
Empty states designed
- โ
Zero TypeScript errors guaranteed
### ๐จ Design Mastery (13 Business Profiles)
AI auto-detects your business type and applies appropriate design:
```
Food/Restaurant โ Warm colors, appetizing feel
SaaS/Dashboard โ Professional blue, clean
E-commerce โ Trust emerald, conversion-focused
Gaming โ Dark mode, neon accents
Healthcare โ Calm teal, trustworthy
...and 8 more profiles
```
### ๐ง AI Intelligence Upgrade (v1.3.0)
| Feature | Description |
|---------|-------------|
| ๐ข **Business Context** | AI understands business types, auto-includes standard features |
| ๐ก **Smart Suggestions** | AI suggests 2-3 next steps after every task |
| ๐ง **Auto-fix Silent** | Errors fixed automatically, user never sees them |
| ๐ **Progress Tracking** | Visual progress bars and checklists |
| ๐ **Session Recovery** | Continue where you left off, even across IDEs |
| ๐๏ธ **Preview Mode** | See changes before applying |
| โช **Version Control** | Easy undo/rollback without knowing git |
| ๐ **Integrations** | One-click setup for Stripe, PromptPay, Email, Analytics |
### Example: Business Context
```bash
/toh:vibe coffee shop
# AI understands this means:
# โ
POS System
# โ
Menu Management
# โ
Order Management
# โ
Inventory
# โ
Sales Reports
# No need to specify each feature!
```
### Example: Smart Suggestions
```
โ
Dashboard created!
๐ก Recommended next steps:
1. /toh:design - Polish the UI
2. /toh:dev - Add logic
3. /toh:connect - Connect database
Type a number or tell me what you want to do.
```
### ๐ง `/toh:plan` - The Brain
```bash
/toh:plan Add user authentication with social login
```
The AI will analyze your project, create a plan, show you what it will do, then execute using the right agents.
### ๐พ Auto Memory System
Your AI remembers everything across sessions:
- Switch IDEs (Claude โ Cursor) - context preserved
- Token limit reached - start new chat, context preserved
- Come back tomorrow - context preserved
Files stored in `.toh/memory/` - zero config, just works!
## ๐ฆ Installation
```bash
# Interactive install (choose IDEs and language)
npx toh-framework install
# Quick install (Claude Code + Cursor, English)
npx toh-framework install --quick
# Specific IDE only
npx toh-framework install --ide claude
npx toh-framework install --ide cursor
npx toh-framework install --ide gemini
npx toh-framework install --ide codex
# Multiple IDEs
npx toh-framework install --ide "claude,cursor,gemini,codex"
```
## ๐ Update to Latest Version
If you already have Toh installed and want to update:
```bash
# Method 1: Use npx (recommended - always gets latest)
npx toh-framework@latest install
# Method 2: If installed globally
npm update -g toh-framework
toh install
# Method 3: Just reinstall (overwrites safely)
npx toh-framework install
```
> ๐ก **Tip:** Reinstalling updates skills, agents, and commands without deleting your existing memory!
## ๐ ๏ธ Supported IDEs & CLI Tools
| Tool | Company | Config Location | Status |
|------|---------|-----------------|--------|
| **Claude Code** | Anthropic | `.claude/` + `CLAUDE.md` | โ
Full Support |
| **Cursor** | Cursor | `.cursor/rules/` | โ
Full Support |
| **Gemini CLI** | Google | `.gemini/` | โ
Full Support |
| **Codex CLI** | OpenAI | `AGENTS.md` | โ
Full Support |
## ๐ Quick Start
### Claude Code (Anthropic)
After installation, use commands immediately:
```bash
# Open project with Claude Code
claude .
# Show all commands
/toh:help
# Create new project (natural language!)
/toh:vibe I want a coffee shop management system with POS, inventory, and sales reports
# Add UI
/toh:ui Add a dashboard page showing daily sales
# Improve Design
/toh:design Make it look professional and polished
# Test system (Auto fix until pass!)
/toh:test Test all pages
# Deploy
/toh:ship
```
### Cursor
```bash
# Call Toh agent
@toh Create a meeting room booking system
# Or use specific command
@toh:ui Create a calendar page for room booking
```
### Gemini CLI (Google)
```bash
# Start Gemini CLI in project directory
gemini
# Or use specific model
gemini --model gemini-2.5-pro
# Use commands like Claude Code
/toh:help
/toh:vibe Inventory management system
```
### Codex CLI (OpenAI)
```bash
# Start Codex CLI in project directory
codex
# Toh Framework loads automatically from AGENTS.md
# Use commands directly
/toh:vibe Restaurant order management system
```
## ๐ Available Commands
| Command | Shortcut | Description |
|---------|----------|-------------|
| `/toh:help` | `/toh:h` | โ Show all available commands |
| `/toh:plan` | `/toh:p` | ๐ง **THE BRAIN** - Analyze, plan, orchestrate all agents |
| `/toh:vibe` | `/toh:v` | ๐จ Create new project with UI + Logic + Mock Data |
| `/toh:ui` | `/toh:u` | ๐ผ๏ธ Build UI - Pages, Components, Layouts |
| `/toh:dev` | `/toh:d` | โ๏ธ Add Logic - TypeScript, Zustand, Forms |
| `/toh:design` | `/toh:ds` | โจ Improve Design - Make it beautiful, not AI-looking |
| `/toh:test` | `/toh:t` | ๐งช Test System - Auto test & fix until pass |
| `/toh:connect` | `/toh:c` | ๐ Connect Backend - Supabase, Auth, RLS |
| `/toh:line` | `/toh:l` | ๐ LINE Mini App - LIFF integration |
| `/toh:mobile` | `/toh:m` | ๐ฑ Mobile App - Expo / React Native |
| `/toh:fix` | `/toh:f` | ๐ง Fix Bugs - Debug and fix issues |
| `/toh:ship` | `/toh:s` | ๐ Deploy - Vercel, Production ready |
## ๐ง Philosophy (AODD)
Toh Framework uses **AI-Orchestration Driven Development (AODD)** principles:
### 1. Natural Language โ Tasks
Users command in natural language, system breaks it down into tasks automatically.
```
โ "Create a Next.js project with Zustand store for products
with React Hook Form and Zod validation..."
โ
"I want an online store"
```
### 2. Orchestrator โ Agents
System automatically calls relevant AI-Agents to work.
```
User: "Create a product management page"
Orchestrator thinks:
โโโ ๐ Call ui-builder to create UI
โโโ โ๏ธ Call dev-builder to add logic
โโโ โจ Call design-reviewer to polish
โโโ โ
Deliver results
```
### 3. Users Don't Manage the Process
- No framework selection needed
- No questions to answer
- No need to know which agent does what
- Just receive results
### 4. Test โ Fix โ Loop
When tests find errors, system will:
1. ๐งช Run tests with Playwright
2. ๐ Analyze errors
3. ๐ง Call `/toh:fix` to repair
4. ๐ Retest until pass
## ๐๏ธ Tech Stack (Fixed)
Toh Framework uses a fixed tech stack - no decisions needed:
| Category | Technology |
|----------|------------|
| Framework | Next.js 14 (App Router) |
| Styling | Tailwind CSS + shadcn/ui |
| State | Zustand |
| Forms | React Hook Form + Zod |
| Backend | Supabase |
| Testing | Playwright |
| Language | TypeScript (strict) |
## ๐ค Agents
| Agent | Description |
|-------|-------------|
| `ui-builder` | Creates UI and Components |
| `dev-builder` | Adds Logic and State Management |
| `design-reviewer` | Improves Design to professional level |
| `test-runner` | Tests system with auto-fix |
| `backend-connector` | Connects to Supabase |
| `platform-adapter` | Adapts for LINE, Mobile, Desktop |
## ๐ Skills
| Skill | Description |
|-------|-------------|
| `vibe-orchestrator` | Core methodology and workflow |
| `ui-first-builder` | UI patterns and component library |
| `dev-engineer` | TypeScript, Zustand, Forms |
| `design-excellence` | Design system and anti-patterns |
| `test-engineer` | Testing strategy and Playwright |
| `backend-engineer` | Supabase, RLS, Auth |
| `platform-specialist` | LINE, Expo, Tauri |
## ๐ Workflow Example
```
User: "Create a coffee shop management system"
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฏ Toh Orchestrator โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 1. Analyze requirements โ
โ โ POS system, inventory, reports โ
โ โ
โ 2. Call ui-builder โ
โ โ Create all UI pages + Mock data โ
โ โ
โ 3. Call dev-builder โ
โ โ Add state management + forms โ
โ โ
โ 4. Call design-reviewer โ
โ โ Polish UI to professional look โ
โ โ
โ 5. Call test-runner โ
โ โ Test all pages, auto-fix until pass โ
โ โ
โ โ
Deliver ready-to-use system! โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
## ๐ Web Bundles
For use with ChatGPT, Claude.ai, or Gemini:
```bash
npx toh-framework bundle
```
Generated files:
- `toh-full-bundle.txt` - All features
- `toh-ui-bundle.txt` - UI only
- `toh-dev-bundle.txt` - Logic only
Copy and paste into Custom Instructions or System Prompt.
## ๐ง CLI Commands
```bash
# Install framework
npx toh-framework install
# List available commands
npx toh-framework list
# Check installation status
npx toh-framework status
# Generate web bundles
npx toh-framework bundle
```
## ๐ Comparison
| Feature | Traditional | Toh Framework |
|---------|-------------|---------------|
| Setup Time | 30+ min | 2 min |
| Questions Asked | 10+ | 0 |
| Time to First UI | Hours | Minutes |
| Mock Data | Lorem ipsum | Realistic data |
| Tech Stack Decision | Every time | Fixed, optimized |
| Auto Testing | Manual setup | Built-in |
| Error Fixing | Manual | Auto loop |
## ๐ Examples
### Create E-commerce System
```
/toh:vibe Online store with product pages, cart, and checkout
```
### Create Employee Management
```
/toh:vibe HR system with employee management, leave requests, approvals, reports
```
### Create Dashboard
```
/toh:vibe Dashboard showing sales, charts, tables with date filters
```
### Test and Fix
```
/toh:test Test all pages
# If errors โ auto call /toh:fix โ retest until pass
```
## ๐ฏ Target Users
- **Solo Developers** - Build SaaS single-handedly
- **Solopreneurs** - Create MVP to test market
- **Startup Founders** - Prototype for investors
- **Freelancers** - Deliver client work faster
- **Students** - Learn modern web development
## ๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ๐จโ๐ป Author
**Wasin Treesinthuros** (Innovation Vantage)
- ๐ Website: [tohframework.dev](https://tohframework.dev)
- GitHub: [@wasintoh](https://github.com/wasintoh)
- Email: dr.wasin@gmail.com
---
<p align="center">
Made with โค๏ธ for you.
</p>
<p align="center">
<strong>"Type Once, Have it all!"</strong>
</p>