rebuild-worker
Skill0 starsChanged 7 days agoMITView on GitHub
Rebuild a Bubble® app's UI pages, API routes, privacy policy, and workflows on Cloudflare Workers using either the automated App Mover tools (nc_preview, nc_move) or manual Hono + Drizzle guidance from nc_ artifacts.
In this repository2 other files it gives its agents.
- audit-bubbleSkill
- migrate-dataSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Call nc_compile_plan to review the move score, page list, and automatic vs manual features.
- Very specific: line 19
Call nc_preview with job_id (and up to 10 page keys, or leave them out for the 10 core-route defaults) to rebuild and deploy a free …
- Very specific: line 24
Call nc_move to orchestrate credentials (nc_connect), data migration, full backend/UI compilation in the Cloudflare build container, …
- Very specific: line 25
Never pass confirm_price_usd, confirm_add_ons: true, confirm_go_live: true, or confirm_cutover: true without explicit owner confirmation in …
- Very specific: line 27
Call nc_forget anytime the owner asks to delete their uploaded .bubble export and temporary build artifacts immediately.
- Very specific: line 31
When building custom handlers manually around the outputs generated by nc_schema, nc_access, nc_files, nc_users, and nc_redirects:
- Very specific: line 38
Verification: Run tsc --noEmit, automated Vitest + workerd integration tests (including deny tests for private resources), and the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rebuild app UI and backend on Cloudflare Workers
Use this skill when the owner wants to turn an audited Bubble® app into a running Cloudflare Workers application (Hono backend + Drizzle ORM on D1 + R2 storage + React frontend). Supports both the automated App Mover pipeline on nc.redcenterstudio.com/mcp and Developer Mode / manual Worker architecture using exported nc_* outputs.
Path 1: Automated App Mover (nc_compile_plan -> nc_preview -> nc_move)
Requires uploading the app's .bubble export via nc_connect(purpose: "export"). Never ask the owner to paste secrets or Cloudflare keys into chat.
- Plan & customise (free):
- Call
nc_compile_planto review the move score, page list, and automatic vs manual features. - Optional
nc_changes: queue pre-build modifications to data model fields, privacy rules, backend workflows, or pages (for example renaming fields, tightening rules, or adding routes). - Optional
nc_basket: inspect or select modular add-ons (such asadmin_dashboard,web_analytics,marketing_hub,payments,bookings,referrals,ai_assistant,claude_connector,weekly_backup, or micro UI add-ons liketheme,speed_search,accessibility,dark_mode,cookie_banner). Only built add-ons can be charged.
- Call
- Free 10-page live preview (core routes first) (
nc_preview+nc_preview_status):- Call
nc_previewwithjob_id(and up to 10 page keys, or leave them out for the 10 core-route defaults) to rebuild and deploy a free interactive preview of up to 10 pages link before any purchase. - Poll with
nc_preview_statusuntil the build completes and share the signed preview URL with the owner.
- Call
- Quote & guided full move (
nc_finalise_quote->nc_move):- Call
nc_finalise_quoteto compute the exact itemized quote (finalise tier$159Small /$299Standard /$389Large or$45Developer mode (81 to 250 pages add $3 USD per page over 80; over 250 pages is a custom quote), plus selected built add-ons and any extra-app discount; includes the matching data migration pass and 2 rebuild rounds). - Show the exact USD breakdown and get explicit owner consent before advancing past any payment, deploy, or cutover prompt inside
nc_move. - Call
nc_moveto orchestrate credentials (nc_connect), data migration, full backend/UI compilation in the Cloudflare build container, automated verification (workerdtests + checks; failed items refund automatically), and staging deployment into the owner's own Cloudflare account. - Never pass
confirm_price_usd,confirm_add_ons: true,confirm_go_live: true, orconfirm_cutover: truewithout explicit owner confirmation in chat.
- Call
- Data hygiene (
nc_forget):- Call
nc_forgetanytime the owner asks to delete their uploaded.bubbleexport and temporary build artifacts immediately.
- Call
Path 2: Developer Mode ($45 USD) or manual Worker rebuild
When building custom handlers manually around the outputs generated by nc_schema, nc_access, nc_files, nc_users, and nc_redirects:
- Core stack: TypeScript on Cloudflare Workers with Hono (routing/middleware), Drizzle ORM over D1 (
DBapp binding using schemas generated bync_schemaundernc/<job>/schema/), and R2 (FILESbinding) for uploaded media. - Authentication (
nc_users): Passwords are never migrated. Implement magic-link sign-in or password-reset tokens (sent through Cloudflare Email Sending by default when the domain is in the owner's Cloudflare account and no other email key is set) with HttpOnly/Secure/SameSite session cookies, constant-time token verification, and CSRF origin checks. - Authorization (
policy.tsfromnc_access): Wire the generated default-deny guards before every query and mutation. Review every rule flaggedMANUALinnc_accessand write explicit server-side checks + automated deny tests before opening access. - Files & uploads (
file_mapfromnc_files): Resolve migrated records by R2 content-hash key, serve downloads through authenticated Worker routes withX-Content-Type-Options: nosniffandsandboxCSP for active file types, and fall back to legacy URLs only during the 30-day transition window. - Routing & SEO (
redirects.tsfromnc_redirects): Mountredirects.tsearly in the Worker fetch handler (or_redirectson static assets) so legacy Bubble URLs return clean301responses before SSR/API routes run. - Verification: Run
tsc --noEmit, automated Vitest +workerdintegration tests (including deny tests for private resources), and thenc_redirectscurl check script against staging before switching DNS.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

