feat(mist): Product Quiz - #124
Open
sophiaerobinson wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
mist/product-quiz— a skill that builds an AI-driven product recommendationquiz for the company it's run in: a Mist (Next.js) backend that generates the
questions and picks products from the live catalog, a native Liquid section that
renders it in the active theme, and the storefront Page that hosts it.
Why
Recommendation quizzes are a recurring ask and the naive build fails in
predictable ways — the model hallucinates products that aren't sellable, the
questions don't discriminate between anything in the catalog, and the quiz 500s
when the model is slow. This encodes the sequence that works: a deterministic
scorer generates a shortlist the model cannot escape, prices and URLs always come
from the catalog record, and every AI path falls back rather than failing.
Shape
Folder skill — the body is long enough to want its reference material factored out.
mist/product-quiz/SKILL.md— the playbookreferences/backend-contract.md— endpoint payloads, catalog response shape, AI provider config, cache keysreferences/fluid-gotchas.md— Page/template and Mist-environment failure modesmanifest.jsonentry with both references listedNotes
scripts/validate_catalog.pypasses.