The CLEAR Principle

For effective prompts, follow these principles:

Structured Prompting (Training Wheels Approach)

For beginners or complex tasks, structure your prompts like this:

<aside> 💡

Context: [Background information about your app] Task: [The specific feature you want to implement] Guidelines: [Your preferred approach] Constraints: [Any limitations or specific requirements]

</aside>

Example:

<aside> 💡

Context: Creating a meal planning app for health-conscious users Task: Build a form to add new recipes with ingredients, calories, and preparation time Guidelines: Use a clean, minimalist design with Tailwind CSS Constraints: The form should validate all inputs before submission

</aside>

Incremental Development

Break down complex applications into smaller tasks:

  1. Start with core functionality (e.g., "Create a basic to-do list app")
  2. Add features one at a time (e.g., "Add user authentication", then "Add ability to mark tasks as complete")
  3. Test after each addition before moving to the next feature

Meta-Prompting

Ask Lovable to help improve your prompts: