creating-an-app
Installation
SKILL.md
Creating An App
Use this when adding a new Cloudflare app under apps/.
Keep the app contract small. Each app owns a handful of tsx scripts under
apps/<app>/scripts/, exposed as package scripts and built on the shared deploy
primitives in scripts/lib/ (see scripts/lib/deploy-app.ts):
deploy—pnpm run deploy --env <name>(build → wrangler deploy with atomic secrets → smoke)ensure-resources— create-only Cloudflare resource provisioningerase-data— wipe an env's data without deleting the workergen:wrangler— expand the generated, gitignoredwrangler.jsoncfrom the rootenvs.tstest:e2eif the app has live preview tests
The package scripts should own only the app action. Doppler selection belongs
outside the app script (doppler run --config <env> -- pnpm run deploy).