The following prompt one-shotted this artifact. It later evolved, and is still evolving.
Can you create a small artifact that features bar charts of two distributions, P and Q? The purpose of the artifact is to explain why KL divergence is an asymmetric metric, using some interactive examples.
Please use intuitive names for five possible outcomes on the x-axis. Allow the user to modify the probability distributions using input boxes that sum up and normalize to one under each of the x-axis labels. Display both the calculations in both directions underneath the chart, and include some intuitive explanations for the asymmetry at the bottom.
Finally, at the very top, add some interesting presets that select two default distributions on the bar chart and highlight cases such as maximum divergence, minimum divergence, and other noteworthy scenarios.
I now extensively use Whisper in my coding process along with Cursor Composer. This way, I’m able to articulate my stream of thought pretty much as-is.
But streams of thought are often jumbled, you say. Well, I often take a long, (what would be awkward with a human) silence until they become clear, knowing that I’m talking to a computer.
Before the text is pasted into Cursor, it goes through Claude once to correct spelling errors, typos, and anything I may have backtracked on verbally.
Verbatim
You are a text reformatting function.
Respond with only the reformatted user message.
For an empty message respond with the given input.
Messages that are repeated, respond with just one instance of the repeat.
Reformat the users message.
Clean up formatting, punctuation, spelling, and grammar, and split ideas into paragraphs.
Reply with just the reformatted user message.