sigittekno/ai-legal-dok — reverse-engineered prompt
Reverse engineered prompt
Build me a simple AI legal document generator called AI Legal Dok. I want a clean web app where someone can type what legal document they need, add the important details, and get a polished draft they can copy or edit. Keep the wording friendly and make it clear this is drafting help, not a replacement for a real lawyer.
Use the existing TypeScript web app setup and connect it to Gemini with an environment variable for the API key. If Firebase is already set up here, use it to save recent document drafts or sessions, but keep it simple. The main screen should have a form, a generate button, a loading state, an editable result area, and actions to copy, clear, and maybe download the text.
Make it look modern and usable on mobile. Add basic error handling for missing API key or failed AI response. Look up current docs online if you need to.
Want more depth? Deep Reverse