尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A starting repo for building Quotebot with Claude Code: Opus plans and reviews, Sonnet and Haiku agents do the work.
The one idea to remember: build the widget, demo page, engine, and prompt once. Each new client is just a folder of settings in clients/. That's what makes it repeatable and cheap.
Customer message / photo
|
v
Chatbot model (Kimi, GPT, or Claude) --- asks questions, reads photos
|
| calls get_estimate with the details (JSON)
v
engine/price.js --- plain code, the client's signed rules
|
| status + price range (or "needs a human")
v
Chatbot writes the reply
|
v
engine/guard.js --- blocks any price the engine didn't produce
|
v
Customer sees the estimate card, leaves name + phone
|
v
Owner gets the lead (text / email, later Jobber or Housecall Pro)
During testing, a GPT model grades every test chat using validator/RUBRIC.md.
| Path | What it is | Status |
|---|---|---|
CLAUDE.md | Orchestrator instructions for Claude Code | Ready |
.claude/agents/ | 6 subagents (3 Sonnet, 3 Haiku) | Ready |
engine/ | Pricing engine + reply guard + 14 tests | Working |
schemas/ | Rules file schema | Working |
bot/ | Chatbot prompt template + tool definition | Ready to wire up |
validator/ | Golden set runner + GPT judge rubric | Runner works; judge needs an API key |
design/ | Design tokens + design rules | Ready |
clients/_template/ | Blank client files | Ready |
clients/example-drywall/ | Fake demo client with 11 test cases | Working (fake numbers) |
docs/PROJECT_BRIEF.md, docs/DECISIONS.md | The plan in short + dated decisions (Claude Code loads both every session) | Ready |
docs/ | Build plan, owner interview script, client pipeline | Ready |
docs/plan/ | Full planning docs: working doc, build framework, deployment plan, market research | Reference |
.claude/commands/ | /plan-check and /log-decision for Claude Code | Ready |
lib/, app/api/chat/ | Chat backend: rules loading, prompt builder, theme, model connection, test mode | Phase 1 |
app/dev/ | Team test chat page (hidden in production) | Phase 1 |
widget/widget.js | Embeddable chat widget, one script tag (copied to public/widget.js on dev/build) | Phase 2 |
app/demo/[clientId]/ | Branded demo page, chat open inline | Phase 2 |
app/api/client/, app/api/lead/ | Public branding for the widget; lead form checks (saving comes in Phase 3) | Phase 2 |
app/page.js, app/_scoparity/ | Scoparity company site at /; its sample estimate is priced by the engine | Ready |
app/example-customer/ | Fictional contractor site (/example-customer) with the widget installed by one script tag | Ready |
clients/brightwater-drywall/ | Fictional Long Island client for the sample site (copy of the drywall rules, Suffolk ZIPs) | Working (fake numbers) |
public/brand/ | Scoparity logo files (transparent PNG, plus white versions for dark backgrounds) | Ready |
Fill this in as accounts are created. Every paid account needs a cap before go-live.
| Account | Cap | Set by | Date |
|---|---|---|---|
| OpenRouter / Moonshot | |||
| OpenAI (GPT checker) | |||
| Vercel | |||
| Supabase | |||
| Resend | Free tier (3,000/mo, 100/day) |
npm install # once
npm test # engine, guard, and lib tests
npm run golden # 11 drywall test cases through the engine
npm run dev # app at http://localhost:3000, test chat at /dev,
# demo page at /demo/example-drywall, bare embed at /embed-test.html
npm run live # with the app running: plays the golden set through /api/chat
Needs Node 22 or newer.
Tables live in supabase/migrations/. Nothing is applied automatically.
npx supabase login, npx supabase link --project-ref <ref>, npx supabase db push, or by pasting each file into the SQL editor in order.NEXT_PUBLIC_SUPABASE_URL, SUPABASE_SECRET_KEY, and a long random VISITOR_SALT in .env.local.npm run push-rules clients/example-drywall.Photos. The third migration makes a private chat-photos bucket. The browser shrinks a photo, asks /api/upload-url for a one-time link, and uploads straight to Storage. Our server never carries the file. To show a photo to the model, the server mints a read link that expires in 10 minutes. With no storage set up, the widget sends photos inline instead, exactly as before.
Abuse limits. A client with no rows in client_domains works on any website, which is how we demo. Add rows and only those websites can use that client's widget. Each visitor can start 10 chats a day per client, and any one chat is capped at 30 messages. Every check fails open: if the database can't answer, the chat still works.
With no Supabase settings, everything still runs: chats just aren't saved, and pricing uses the rules files. The secret key is server-only and must never reach browser code.
Test mode. With no OPENROUTER_API_KEY, local dev runs a scripted stand-in for the chatbot. It asks the questions from the client's rules one at a time and still runs the real pricing engine and guard, so the whole app can be built before the keys exist. It can't understand free text, so npm run live results in test mode only prove the harness works. Production never falls back to test mode.
Follow docs/BUILD_PLAN.md. It has the build order, what "done" means for each phase, and prompts to paste into Claude Code.