migrate-data
Skill0 starsChanged 6 days agoMITView on GitHub
Guided end-to-end data, file, user identity, privacy rule, and redirect migration from a Bubble® app into a customer-owned Cloudflare D1 database and R2 bucket using nc_ tools.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- daniel-kindl/dkstacktheir own version, first seen Nov 29, 2026
- fabianmagrini/skillstheir own version, first seen May 10, 2026
- sreedhargs89/claude-code-guidetheir own version, first seen Mar 26, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- daniel-kindl/dkstack★ 1same name
- fabianmagrini/skills★ 1same name
- sreedhargs89/claude-code-guide★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- audit-bubbleSkill
- rebuild-workerSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 1 is distinctive, and 7 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
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 8
Run this skill after auditing and agreeing on the mapping plan (audit-bubble).
- Very specific: line 12
Credentials never enter chat: Use nc_connect for every token (Cloudflare API token, R2 Access Key ID / Secret Access Key, Bubble Data API …
- Very specific: line 14
Overwrite safety: Never pass truncate_first: true to nc_load without explicit owner confirmation AND confirm_overwrite: true.
- Distinctive: line 22
If the owner needs help creating the R2 bucket and S3 keys, guide them step by step:
- Very specific: line 31
Use apply: true (with database_name if specified) to create the D1 database and apply migrations.
- Very specific: line 37
Only pass truncate_first: true + confirm_overwrite: true if the owner explicitly instructs a clean reload.
- Very specific: line 40
Keep calling while status is "partial".
- Very specific: line 51
Call nc_cutover with job_id and domain to get the exact cutover checklist: freeze writes on Bubble, run final delta (nc_export with since …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate Bubble® data, files, and users to Cloudflare
Run this skill after auditing and agreeing on the mapping plan (audit-bubble). Follow the exact stage order below and enforce every consent and credential rule.
Non-negotiable rules
- Credentials never enter chat: Use
nc_connectfor every token (Cloudflare API token, R2 Access Key ID / Secret Access Key, Bubble Data API token). Never ask the owner to paste credentials in chat. - Explicit consent before spending: Paid stages (
nc_schema,nc_export,nc_load,nc_files,nc_users,nc_access,nc_redirects,nc_verify,nc_cutover) return a cost or pass estimate first unless covered by an active pass or free trial (up to 1,000 records and 250 MB of files once per app). Always show the estimate and get explicit owner approval before calling withgo_ahead: true(orupgrade: trueif upgrading tiers). - Overwrite safety: Never pass
truncate_first: truetonc_loadwithout explicit owner confirmation ANDconfirm_overwrite: true. - No password migration: Tell the owner upfront that Bubble does not export password hashes, so
nc_usersprepares login identities (magic_linkorreset_email) without sending emails. - Owner controls DNS:
nc_cutovernever modifies DNS or the source app. Keep rollback steps visible throughout and callnc_cutover(complete: true, confirm_cutover: true)only after live cutover is verified.
Stage order
- Connect (
nc_connect):- Call
nc_connectwithjob_id(orapp_base_url+version;app_base_urlacceptshttps://yourapp.bubbleapps.io, a custom domain, or a Bubble Editor URL with?id=yourapp) so the owner enters Cloudflare account ID, Cloudflare API token (Accountpermissions includingD1: EditandWorkers R2 Storage: Edit; addWorkers Scripts: EditandQueues: Editif running fullnc_move), D1 database name, R2 bucket name, R2 S3 keys, and Bubble Data API token (plus optional.bubbleexport or schema upload up to 500 MB). - If the owner needs help creating the R2 bucket and S3 keys, guide them step by step:
- Open Cloudflare Dashboard -> R2 Object Storage (left sidebar; enable R2 if prompted, first 10 GB/month is free).
- Click Create bucket, choose a lowercase name with only letters, digits, and hyphens (for example
myapp-migrator), leave Location Automatic and Storage Class Standard, and click Create bucket. - Open R2 Object Storage -> Overview -> Manage R2 API Tokens -> Create User API token (or Create Account API token).
- Choose Object Read & Write, select Apply to specific buckets only, tick the new bucket, and click Create API Token.
- On the confirmation screen, scroll past the
cfat_Token value to Use the following credentials for S3 clients and copy the 32-character Access Key ID and 64-character Secret Access Key.
- Optionally call
nc_accountto confirm free trial eligibility, active passes, or credit balance.
- Call
- Schema (
nc_schema):- Generate SQL migrations and Drizzle schema under
nc/<job>/schema/in R2. - Use
apply: true(withdatabase_nameif specified) to create the D1 database and apply migrations. Idempotent and safe to re-run.
- Generate SQL migrations and Drizzle schema under
- Export (
nc_export):- Pages through source records (read-only) into NDJSON shards in the owner's R2 bucket.
- Resumable and bounded: keep calling
nc_exportwithjob_idwhilestatusis"partial"until complete. Usesincelater for final delta syncs.
- Load (
nc_load):- Upserts staged NDJSON records into D1 by
id(second run changes zero rows; broken references are nulled and logged as orphans, never dropped silently). Keep calling whilestatusis"partial". - Only pass
truncate_first: true+confirm_overwrite: trueif the owner explicitly instructs a clean reload.
- Upserts staged NDJSON records into D1 by
- Files (
nc_files):- Copies referenced files and images from source storage into R2 by content hash, records mappings in
file_map, and populates file key columns while preserving legacy URLs. - Keep calling while
statusis"partial". Passallow_hostsif assets live on approved external CDNs, orrewrite_text: trueonly if the owner wants embedded links in text columns updated (originals are backed up).
- Copies referenced files and images from source storage into R2 by content hash, records mappings in
- Users (
nc_users):- Builds migrated login identity tables and recipient CSV/JSON in R2 using
strategy: "magic_link"or"reset_email". Passwords are not migrated;nc_userssends zero emails.
- Builds migrated login identity tables and recipient CSV/JSON in R2 using
- Access (
nc_access):- Translates privacy rules from
app_spec(saved duringnc_auditor passed here) intopolicy.ts(default deny) and generated allow/deny tests. Any rule markedMANUALstays locked down and must be reviewed in code before launch.
- Translates privacy rules from
- Redirects (
nc_redirects):- Builds
redirects.json,redirects.ts,_redirects, and a verification curl script fromsitemap_urlorurl_listpluspage_routes(for example{ "listing_detail": "/rooms/:slug" }). Unmapped URLs are flagged for manual mapping rather than guessed.
- Builds
- Verify (
nc_verify):- Checks source-vs-target row counts, canonical JSON SHA-256 checksums (
sampledefault 500 per type), foreign keys, and R2 object existence, writingverification.mdto R2. Loop whilestatusis"partial". nc_cutoverrefuses to proceed unless the latestnc_verifypassed with no subsequent mutations.
- Checks source-vs-target row counts, canonical JSON SHA-256 checksums (
- Cutover (
nc_cutover):- Call
nc_cutoverwithjob_idanddomainto get the exact cutover checklist: freeze writes on Bubble, run final delta (nc_exportwithsince->nc_load->nc_files->nc_users->nc_verify), deploy redirects, switch DNS in Cloudflare, notify users, monitor metrics, and keep the rollback procedure ready. - Once the owner confirms cutover succeeded and rollback holds, call
nc_cutoverwithcomplete: trueandconfirm_cutover: trueto record completion and wipe held credentials.
- Call
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.

