Prompting Techniques
List of prompting strategies and approaches.
Effective Prompting Strategies
1
2
Using Image Prompts
// Build and refine the UI to closely match the attached image. Ensure precise styling, spacing, and responsiveness.// Develop a mind-mapping application resembling the attached screenshot. The app should allow users to:
// - Add, edit, and delete nodes representing ideas.
// - Connect nodes with draggable lines to illustrate relationships.
// - Move nodes around the canvas with a smooth drag-and-drop interface for easy organization.3
Incremental prompting
// @api.js
// Implement a user authentication function with the following steps:
// 1. Validate the provided credentials against the user database.
// 2. Generate a JWT token upon successful validation.
// 3. Set up secure session management to store the token.
// 4. Implement token expiration and renewal mechanisms to maintain session security.4
Feedback integration
// @useAuth.js
// The authentication function performs well. However, please ensure it:
// - Handles token expiration gracefully by prompting users to re-authenticate.
// - Provides clear error messages for failed authentication attempts.
// - Includes logging for monitoring authentication processes.5
Utilizing File References for Specific Guidance
// In @Dashboard.jsx
// Implement a feature that displays user statistics in a graphical format using Chart.js.
// The dashboard should present:
// - A line chart depicting user engagement over the past year.
// - A pie chart showing the distribution of user demographics.
// - A bar chart comparing monthly active users across different regions.Best Practices for Prompt Engineering
//In @Navbar.jsx Create a responsive navigation bar component with dropdown menus for user settings and notif
// @form.jsx
// Create a form.4. Provide Feedback for Refinement
5. Utilize File References for Specific Guidance
Common Mistakes to Avoid in Prompt Engineering
1. Being Too Vague
2. Combining Multiple Tasks
Last updated