This guide will help you get the most out of Mocha by using effective prompting techniques.

Be Specific and Clear

When asking Mocha to build or modify something, provide clear details about what you want. The more specific you are, the better the results will be.

Example: Instead of: “Create a button” Better: “Create a blue rounded button with white text that says ‘Submit‘“

Modify Specific Files

If you want to edit only a particular file, explicitly mention the filename:

Please modify only the Button.tsx file to add hover effects

Keep Context in Mind

Mocha works best when it understands the full context of what you’re trying to achieve:

  1. Explain the overall goal
  2. Provide any relevant constraints
  3. Mention specific technologies or patterns you want to use

Break Down Complex Requests

For complex applications, break your requests into smaller parts and build incrementally:

  1. Start with core functionality
  2. Add features one at a time
  3. Refine and polish at the end

Using Fix with AI Effectively

Only use “Fix with AI” once or twice. If the AI can’t fix an issue automatically, try describing the problem in more detail or ask for help in our Discord community.