Prompting Best Practices

Prompting is the key to success when using AI. Being clear and specific is important. Using Superdev’s AI is like having a developer in your pocket, but you tell a developer what to do.

Here’s a few tips to help you get the most §out of Superdev’s AI:

1. Be specific

Being specific will focus the AI on the right task. Example of being specific is mentioning the page name you want to edit (e.g /statistics). Avoid trying to ask the AI to do everything at once. It’s better to ask for a specific change, and then ask for the next change.

DONT’T:

The app is not working. Make it work.

Also, don’t:

Change the login page

DO:

The current page (/dashboard/analytics) is not loading, the spinner is spinning forever.
Please think step-by-step and fix the issue.

OR:

Create a new page Analytics, and do the following:
- Add it to the the navigation sidebar
- In the page, I'd like to have a chart that shows the number of users by country.
- Make the chart interactive, and add a button to export the data to a CSV file.
- Add animations using framer-motion library.

2. Add screenshots

Not a must, but useful for describing bugs or UI issues.

3. Got important instructions in mind? keep on mentioning them across prompts.

The AI’s memory (especially when in default mode) is limited. It’s better to mention important instructions across prompts.

4. Use the Chat Mode

The chat mode is more of a advisor mode. He’s 10x smarter. It heplps you think through problems, debug issues, and plan your product, directly within the Superdev editor.

When should you use the chat mode?

  • When you’re not sure what to do
  • When “Try to fix” is not working after 2-3 attempts
  • When debugging complex logic
  • When planning new features

The AI in chat mode will prompt a button to “Implement the plan”. Make sure to read it before clicking implement. Sometimes, the AI will suggest changes that you don’t necessarily need to implement. If you’re not satisfied or not sure, re-chat with the AI and ask for a new plan based on your observations.