fix: add visualization quality guidance to agent prompt#60
Merged
GeneralJerel merged 1 commit intostagingfrom Mar 26, 2026
Merged
fix: add visualization quality guidance to agent prompt#60GeneralJerel merged 1 commit intostagingfrom
GeneralJerel merged 1 commit intostagingfrom
Conversation
Add a "Visualization Quality Standards" section to steer the model toward using Three.js (via import map) for 3D content instead of CSS transform hacks or Canvas 2D projection. Documents available ES module libraries (three, gsap, d3, chart.js), enforces type="module" script tags, and sets a polished quality bar for generated visualizations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<script type="module">when using import map librariesContext
Generated visualizations have degraded in quality (see #58). The model was producing broken 3D content using CSS
transform-style: preserve-3dhacks or Canvas 2D manual projection instead of Three.js, which is available via the import map. The system prompt had no guidance about available libraries or quality expectations.Test plan
<script type="module">is used in generated HTMLCloses #58