尚未检测到更新。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.