Prompting AI Developer Tools with UDML
β
What the AI Needs to Know
π Basic Prompt Template
This is a UDML document describing the UI for an application.
Please read the <instructions> section carefully before beginning.
- Use the <tokens> and <styles> to resolve any visual styling
- Expand each <screen> into a corresponding component (one file per screen)
- Use the <components> definitions where referenced
- Follow hints in the `ai-hint` attributes or <meta> fields
- Output React (TypeScript) code using TailwindCSS
- Keep accessibility in mind (ARIA labels, semantic HTML)
Here is the UDML:
[PASTE HERE]π Prompting Considerations
π§ Tell the AI to read <instructions>
<instructions>π Guide the AI to use design tokens and styles
π¦ Ask for modular output
π¬ Remind the AI about ai-hint and meta
ai-hint and metaπ‘ Example Prompt for Cursor
π« Common Pitfalls to Avoid
Pitfall
Fix
π§© Summary
Last updated

