I've been working on this for a while now. It creates a sort of AGENTS.md or CLAUDE.md table for your database which holds all the joins, definitions, formats, and relationships, as well as what are popular criteria sets and combinations.
And it populates it into a bi-directional visual (round-trip) SQL editor. Make changes in the UI or SQL text, it goes both ways.