Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
DEPRECATED: Replaced by mcp-app-builder. Previously used to build ChatGPT apps with interactive React widgets via mcp-use.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
evals/state-and-context.json
1[2{3"query": "I have a color picker widget. When users click a color swatch, I need to remember their choice.",4"expected_behavior": "Uses state + setState from useWidget. Shows setState on click. NOT React useState (would lose selection on reopen)."5},6{7"query": "My widget has a hover tooltip that appears when you mouse over items. It keeps showing the tooltip from the last session.",8"expected_behavior": "Hover is ephemeral UI -- use React useState, NOT persistent state. useState resets on reopen, which is correct for hover effects."9},10{11"query": "Users browse recipes. When they ask the LLM 'what ingredients do I need?', it doesn't know which recipe they're viewing.",12"expected_behavior": "Store the viewed recipe in persistent state via setState so the LLM can read it. The LLM sees state data."13},14{15"query": "I want a 'Compare these options' button that asks the AI to analyze pros and cons.",16"expected_behavior": "Uses sendFollowUpMessage from useWidget. Button onClick calls sendFollowUpMessage with comparison prompt including context from state."17},18{19"query": "My playlist builder has an Add Song button in search results and a Remove button in the playlist view. Both need access to the same playlist.",20"expected_behavior": "Uses persistent state (setState) for the playlist. Both components read from state and update via setState. NOT separate React useState in each component."21}22]23