A 5-question interview prompt that turns Claude into a scroll-driven page builder
aziz4ai · x · 2026-10-02
- A prompt template makes Claude act as a senior creative developer: before writing any code it interviews you with exactly 5 questions, each with 3-4 multiple-choice options plus free text, building on prior answers, and no code until all five are answered.
- Questions cover purpose/end action, audience knowledge, the 3-4 story beats, plus scroll behavior and visual direction. Rules include matching the user's language (RTL for Arabic) and picking sensible defaults with noted assumptions.
- The author's test: one prompt to Claude Sonnet produced a single-file HTML with GSAP ScrollTrigger, paired with two images generated via runware MCP (intact and shattered glass orb), yielding scroll-pinned sections and horizontal card scrolling that performed well on PC and mobile.
- Key lesson: describe the motion before requesting it—what pins, what moves, and when things change.
More from coding & agent
- Eve agent tool cuts build time 8x to 6.9s by reusing compiler module graph — evilrabbit_ · 2026-11-19
- Dev shares NL-driven testing UI: 'the best interface is chat' — KlausCodes · 2026-11-19
- Devs flag GPT's defensive programming for hiding bugs; OpenAI asks for /feedback cases — pvncher · 2026-11-19
- Flutter ships A2UI 1.0: agents respond with real interactive widgets, not chat text — rseroter · 2026-11-19
- Skills vs MCP vs RAG vs Memory: the four context mechanisms AI agents actually need — MaryamMiradi · 2026-11-19
- Anthropic details agent memory: 'dreaming' lets Claude organize its experience — daniel_mac8 · 2026-11-19