agentleFS
aideploytutoraideploytutor/skill-deploy-share/skills/launch-kit/SKILL.md

launch-kit

Skill2 starsChanged 35 days agoMITView on GitHub

Take someone from an empty folder to a live site on Cloudflare that signs users in, sends email from their domain, takes one-time payments and monthly subscriptions (Creem), handles refunds automatically and backs up its database daily — by running every foundation and payment skill in order, then walking the owner through the account steps with a personalized checklist and a live end-to-end check. Cloudflare only, no Vercel. Use when the user says "start from scratch", "build me a site that takes payments", "launch my product", "一句话从 0 到收钱", "set everything up", or asks what's still missing before launch.

  • Reads credentials

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask before each owner step that changes something live (nameservers, custom domain, deleting a record), and say what visitors will notice …

    line 19
  2. Very specific:

    Test mode only. Going live (real money) follows references/go-live.md, step by step with the owner.

    line 21
  3. Very specific:

    Resend: add mail.<root> → Auto configure with Cloudflare → Verified.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 5 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

launch-kit

Goal: one sentence → a real, Cloudflare-hosted site at the owner's domain that can take money, with every remaining manual step listed and verified. Follow ../../STACK.md. Hosting is Cloudflare Workers only; don't suggest Vercel.

Rules

  • The agent does all the code; the owner does accounts, sign-ins, DNS/nameserver changes, deleting DNS records, and pasting secrets into Cloudflare/GitHub. Never ask for a key in chat, never type one.
  • Ask before each owner step that changes something live (nameservers, custom domain, deleting a record), and say what visitors will notice (usually 1–2 minutes of downtime on that hostname).
  • File uploads are not part of the kit (the current file-upload skill stores files on Vercel Blob). Add it later if needed.
  • Test mode only. Going live (real money) follows references/go-live.md, step by step with the owner.

Steps

1. Ask three things (one message)

Product name, the web address (e.g. shop.example.com; a domain the owner owns or will buy), and whether the GitHub repo should be private (default) or public.

2. Build everything

node <skill-dir>/scripts/launch.mjs build --dir "<folder>" --name "<Name>" --domain <shop.example.com> --json

Runs app-foundation → db-connect → deploy-cloudflare → email-send (mail.<root>) → auth-login → env-secrets → pay-checkout → pay-webhook (catch-up pointed at the domain) → pay-subscription → db-backup, then npm install, one migration (npm run db:generate -- --name launch), LAUNCH.md, and the GitHub repo (gh repo create --private --source . --push when gh is signed in; otherwise the owner creates an empty repo and the agent pushes). Re-running skips finished steps. If a step fails, fix it and run the same command again.

3. Walk the owner through LAUNCH.md

LAUNCH.md is written for this project (names, URLs, repo). Go section by section, one at a time; most steps work from a phone browser. Order matters:

  1. Domain on Cloudflare (references/cloudflare-domain.md): add the domain, check the email records before switching nameservers (Cloudflare's import misses resend._domainkey.* — seen in our test), owner changes nameservers at the registrar.
  2. Neon connection string.
  3. Worker from GitHub (build/deploy commands in LAUNCH.md), then the build variable DATABASE_URL (without it the build skips migrations and no tables exist), then the runtime variables table, then Domains → Add Domain (delete an existing record for that hostname first if Cloudflare refuses).
  4. Resend: add mail.<root> → Auto configure with Cloudflare → Verified.
  5. Creem (test mode): one-time product, monthly Subscription product, webhook https://<domain>/api/pay/webhook with all events.
  6. GitHub secrets for backups: DATABASE_URL, DB_BACKUP_PASSPHRASE → run Database backup once.

node launch.mjs status --dir "<folder>" shows what's done in code and which LAUNCH.md boxes are still open.

4. Check it end to end

node <skill-dir>/scripts/launch.mjs doctor --url https://<domain>

Checks: domain uses Cloudflare DNS · HTTPS · served by Workers · database connected · /login · DKIM and return-path records · /pricing and /billing configured · webhook rejects a fake notification (401) · payment tables + catch-up (200). Every ❌ prints the fix. Then the owner does one test purchase (card 4111 1111 1111 1111), checks /members, and one test subscription on /billing.

5. Report

Tell the owner in plain words what works, the address, and the one next step (usually: real products and going live, references/go-live.md).

Troubleshooting

What you seeFix
Build OK but pages 500 / "relation does not exist" / doctor: catch-up 500Build variable DATABASE_URL missing (or added after the last build) → Worker → Settings → Builds → Variables and secrets → add → Save → Retry build
EMAIL_FROM or NEXT_PUBLIC_SITE_NAME missing after pasting a .envCloudflare's bulk paste drops values with spaces: add those two by hand
"Hostname already has externally managed DNS records"DNS → Records → delete the old record for that hostname (owner), add the domain again
Login codes don't arrive after moving DNSnode <email-send>/scripts/check.mjs --domain mail.<root>; usually the DKIM TXT wasn't imported
npm install fails in buildFix network/Node version, run launch.mjs build again (it resumes)
Webhook deliveries fail in CreemURL must be the custom domain; CREEM_WEBHOOK_SECRET must be that webhook's secret

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.