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