A shared folder with AI prompts and code snippets
From workspace: Replit
Team: AI Prompts
Total snippets: 11
11 snippets
Plan before you prompt
Before you start prompting, take a moment to plan. Think through the application’s structure, key features, and user flow, much like a product manager or engineer would. Having a clear plan will help you write more targeted and effective...
Define outputs and constraints
Be explicit about your requirements and expectations. Define the desired output format, specify any constraints (like using a particular library), and mention important edge cases the AI should consider. The more specific you are, the better the...
Be clear and concise
Communicate with the AI using clear, straightforward language. Avoid unnecessary jargon or overly complex sentences. Breaking down your request into simple steps or bullet points can greatly improve the AI’s understanding. - Why it matters:...
Provide examples and demonstrations
Sometimes, the best way to explain what you want is to show an example. Provide code snippets illustrating a style, sample data structures, or even upload screenshots of a UI element you want the AI to replicate. This helps eliminate ambiguity. -...
Curate relevant context
Give the AI the specific information it needs for the task at hand, but avoid flooding it with irrelevant details. Use features like file mentioning to focus the AI’s attention. If switching to a completely different task, starting a New chat can...
Use positive and direct language
Clearly state what you want the AI to do, rather than listing things to avoid. Positive, direct instructions are easier for the AI to understand and act on, leading to more predictable and useful results. - Why it matters: Positive instructions...
Iterate and refine
Your first prompt might not yield the perfect result, and that’s okay. Prompting is a conversation. If the AI’s response isn’t quite right, try rephrasing your request, adding more detail, or simplifying the language. Small adjustments can lead to...
Ask about possibilities
Don’t hesitate to ask Agent or Assistant for advice. If you’re unsure about the best library for a task or different ways to approach a feature, ask! This is a great way to learn about new tools or techniques relevant to your project. - Why it...
Provide contextual clues
When errors pop up, treat the AI like a collaborator who needs information to help. Go beyond saying “it’s broken” and provide specific details about the problem, including error messages and the relevant code sections, so the AI can effectively...
Build incrementally
Instead of asking the AI to build your entire application at once, break the project down into smaller, logical steps. Approach development iteratively, confirming each piece works before moving on. This mirrors traditional development cycles and...
Effective prompting isn’t about complex linguistic tricks; it’s about clarity, context, and iteration. Here are the key principles to remember when interacting with Agent and Assistant.
See attachment