First Files To Touch
Change product identity before runtime behavior. This keeps the copied app runnable while making leaked source-template markers easy to find.
Product Identity
Start here:
| Goal | Files |
|---|---|
| Rename the product and repository | package.json, README.md, AGENTS.md, docs/product-plan.md |
| Replace public architecture language | docs/architecture.md, docs/compliance.md, docs/roadmap.md |
| Replace adoption defaults | docs/template-adoption.manifest.example.json, docs/template-adoption.md |
Then run:
pnpm template:scan-instance-markersPublic Offer
Replace the vertical product story before changing provider code:
| Goal | Files |
|---|---|
| Landing offer and CTA | apps/web/src/features/landing/landing-page.tsx |
| Public proof assets | apps/web/public/landing/* |
| Legal and safety posture | docs/compliance.md, apps/web/src/routes/privacy.tsx, apps/web/src/routes/terms.tsx, apps/web/src/routes/safety.tsx |
Keep public copy away from named living artist style claims.
Product Workflow
After identity and offer are clean, update the product workflow layer. In the current source implementation this is an AI media workflow; in another product it may become chat, dashboarding, knowledge base search, internal tooling, or a different media generator.
| Goal | Files |
|---|---|
| Domain package and plan capabilities | packages/<product-domain>/src/* |
| Prompt, policy, or workflow rules | apps/web/src/features/<workflow>/* |
| Workspace UI copy and controls | apps/web/src/features/<workflow>/*, current source example: apps/web/src/features/conversion/* |
| Library behavior and labels | apps/web/src/features/<workflow>/* |
Run the focused checks after each behavior pass:
pnpm check
pnpm test:e2e
pnpm report:provider-matrixCloudflare Resources
Replace deployment resources before remote deploy:
| Goal | Files |
|---|---|
| Worker names, D1, R2, vars, routes | apps/web/wrangler.jsonc |
| GitHub deploy defaults | .github/workflows/cloudflare-deploy.yml |
| Staging and canary smoke defaults | .github/workflows/staging-smoke.yml |
| Local env documentation | .env.example, docs/operations/env-matrix.md |
Then run:
pnpm doctor:config
pnpm verify:release-targets
pnpm template:scan-instance-markers -- --fail-on-markersExtraction Boundary
Do not edit ../cloudflare-saas-core during first adoption. If a second
product exposes a reusable primitive, record evidence first and extract only
after both products still pass their local and staging gates.