Version: 1.0
Last Updated: December 10, 2025
For: WDS Agents (Freya, Saga)
This system creates production-ready, self-contained interactive prototypes using:
โ
Tailwind CSS - No separate CSS files
โ
Vanilla JavaScript - Components in shared folders
โ
Section-by-section - Approval gates prevent errors
โ
Just-in-time stories - Created as needed, not all upfront
โ
Demo data auto-loading - Works immediately
โ
Self-contained - Zip & share, works anywhere
[Scenario]/Prototype/
โ
โโโ [Page-1].html โ HTML in ROOT (double-click to open)
โโโ [Page-2].html โ HTML in ROOT
โโโ [Page-3].html โ HTML in ROOT
โ
โโโ shared/ โ Shared code (ONE COPY)
โ โโโ prototype-api.js
โ โโโ init.js
โ โโโ utils.js
โ
โโโ components/ โ Reusable components (ONE COPY)
โ โโโ image-crop.js
โ โโโ toast.js
โ โโโ modal.js
โ โโโ form-validation.js
โ
โโโ pages/ โ Page-specific scripts (only if >150 lines)
โ โโโ [complex-page].js
โ โโโ [another-complex-page].js
โ
โโโ data/ โ Demo data (auto-loads)
โ โโโ demo-data.json
โ โโโ [additional-data].json
โ
โโโ assets/ โ Images, icons (optional)
โ โโโ images/
โ โโโ icons/
โ
โโโ stories/ โ Section dev files (created just-in-time)
โ โโโ [Page].1-[section].md
โ โโโ [Page].2-[section].md
โ โโโ ...
โ
โโโ work/ โ Planning files (created at start)
โ โโโ [Page]-Work.yaml
โ โโโ ...
โ
โโโ PROTOTYPE-ROADMAP.md โ ONE document with everything
work/[Page]-Work.yaml (complete plan)For each section (1-N):
templates/ folder:work-file-template.yaml
story-file-template.md
page-template.html
PROTOTYPE-ROADMAP-template.md
demo-data-template.json
shared/ contains ONE copy of each utilitycomponents/ contains ONE copy of each componentRequired:
Optional:
assets/fonts/Not Needed:
Primary role: Create interactive prototypes
Read:
FREYA-WORKFLOW-INSTRUCTIONS.md (complete step-by-step)templates/ (use these for all work)Create:
Role in prototypes: Provide specifications, validate requirements
Read:
Create:
FREYA-WORKFLOW-INSTRUCTIONS.mdEvery prototype must have:
Functionality:
Code Quality:
Mobile:
Documentation:
| Aspect | Benefit |
|---|---|
| For Designers | No coding complexity, visual results fast |
| For Users | Real interactions, usable for testing |
| For Developers | Clear implementation reference |
| For Stakeholders | Works immediately, no setup |
| For Project | Self-contained, easy to share |
Speed: 30-45 min per page (section-by-section)
Quality: Production-ready code
Error Rate: Low (approval gates prevent issues)
Flexibility: High (adjust as you go)
Reusability: High (shared components)
Maintainability: High (ONE copy of shared code)
Question: "How do I start?"
Answer: Read FREYA-WORKFLOW-INSTRUCTIONS.md and follow step-by-step
Question: "Which template do I use?"
Answer:
work-file-template.yamlstory-file-template.md (just-in-time)page-template.htmlQuestion: "How do I create demo data?"
Answer: Copy demo-data-template.json, fill in values, save to data/ folder
Question: "What if section needs changes?"
Answer: Make changes directly in HTML, document in story file, re-test, get approval
Question: "How do I share prototype?"
Answer: Zip entire Prototype folder, send to stakeholder
Start new prototype: Create work file โ Get approval โ Build section 1
Add section: Create story โ Implement โ Test โ Get approval โ Next section
Fix issue: Update HTML โ Re-test โ Get approval
Complete prototype: Final integration test โ Update status โ Done
Share prototype: Zip Prototype folder โ Send
You are ready to create production-ready interactive prototypes! ๐
For detailed step-by-step instructions, see: FREYA-WORKFLOW-INSTRUCTIONS.md