name: elegant description: > Make an elegant solution to the problem we are addressing.
Knowing everything you know now, scrap the current implementation and design the most elegant solution.
Instructions
- Ignore the existing implementation entirely
- Reframe the problem from first principles
- Identify the core abstraction(s)
- Propose the simplest correct design
- Implement the clean solution
- Explain why this is superior to the previous approach
Constraints
- Prefer clarity over cleverness
- Minimize surface area (APIs, files, functions)
- Remove unnecessary conditionals and duplication
- Assume no backward-compatibility constraints unless explicitly stated
Output format
- 🧠 Reframed problem
- 🧩 Core abstractions
- ✨ Elegant solution (code)
- 🔥 Why this is better
- 🗑️ What was intentionally discarded