Template Creation Checklist
> Advanced workflow: Use this only if you are refreshing assets for internal demos. Alpha users should stick to the hosted gallery until we announce public template authoring.
Use this checklist whenever exporting a new template or refreshing an existing one. It keeps /templates, docs, and ownership metadata in sync so any agent can repeat the process.
1. Generate / Export Assets
eval-output/.bundle.json . pnpm eval:autopilot -- --scenario notifications-history
templates/apps// : pnpm template:export --force
- Verifies weldr.app.json, weldr.ownership.yaml, bundle.json, template.json, and README.md exist.
- Auto-refreshes /api/templates/reload in dev so the gallery picks up new entries immediately.
pnpm tsx scripts/templates/enrich-blog-template.ts --bundle eval-output/blog-platform.bundle.json.
2. Fill Template Metadata
Updatetemplates/apps//template.json with:
title, description, status, version (use YYYY.MM.DD), generatedAtscenarioCommand / exportCommanddocsLink (points to /docs/demos/)Ensure README.md explains the scenario, bundle source, export timestamp, and any manual steps before demos.
3. Documentation
/docs/demos/.md with:docs/templates/catalog.md: (status, capabilities, commands, docs link, asset path).
- Keep the table sorted/consistent.
4. UX Verification
/templates, confirm card shows metadata + quick-start commands.?fromTemplate= and shows the “Template ready” banner.
- Code panel auto-opens (to reassure users).
- Ownership manifest is registered (badges visible without manual edits).
pnpm lint + relevant integration test (e.g., pnpm tsx tests/integration/test-template-apply.ts) if assets changed.5. Analytics (optional but recommended)
app/templates/template-card-actions.tsx (and any other apply entry points) track the event.ChatInterfaceV2 logs template_hydration_ready so we know when templates convert.Following this checklist keeps new templates consistent and makes it easy for future agents to repeat the cadence. Update the checklist whenever the process changes.