Step 2: Match Templates

Phase: spec

Context

You have app_description from Step 1. Now check if a pre-built template matches what the user wants.

What to do

Compare the user's description against the template library below. If one is a close match, suggest it to the user in plain language.

Example: "That sounds a lot like our Trivia Night template — it does most of what you described already. Want to start from that? We can customize it however you like."

If no template matches, that's fine. Say: "We'll build this from scratch — no problem!"

If a template is a partial match, mention it: "We have a [template] that covers part of what you want. Want to start from that and add the rest?"

Available Templates

Utility Apps (8)

#TemplateDescription
1Shared Todo ListCollaborative task list with checkboxes and assignments
2Landing Page + WaitlistProduct launch page with email signup
3Voting BoothCreate a poll, share link, see live results
4Paste LockerSecure pastebin with server-side password hashing
5Micro-BlogShort-form posts with image attachments — public feed, authenticated posting
6Photo WallEvent photo sharing with auth-gated uploads and gallery view
7Secret SantaAnonymous gift exchange with server-side matching
8Flash CardsCreate and study decks with spaced repetition

Games (5)

#TemplateDescription
9HangmanClassic word guessing — solo play with random words
10Trivia NightKahoot-style: host creates questions, players join via code, live scoring
11AI Sticker MakerType a prompt, get an AI-generated sticker, save to public gallery
12Bingo Card GeneratorHost calls items, players mark unique cards, auto-detect bingo
13Memory MatchCard flip matching game with AI-generated art and leaderboard

Browse full template details at /templates/.

Expected output

  • matched_template_or_null — The template name and number if matched, or null if building from scratch. Include whether the user accepted or declined the suggestion.

Memory directive