Add Prompt Style Dropdown
Prompt
Add a dropdown field to the application interface that allows the user to select which prompt style they would like to use. The dropdown should include the following three options with their full descriptions and use cases: 1. **RTF (Role, Task, Format) — Best for Quick Components** - Usage: Ideal for coding UI components quickly. - Description: Forces specification of the technical stack in the "Format" section. - Example: Role: Senior Full-Stack Developer; Task: Create a responsive navigation bar with a glassmorphism effect; Format: Provide a single file with HTML, CSS (using Tailwind 2026 classes), and vanilla JavaScript for the mobile toggle. 2. **COAST (Context, Objective, Actions, Scenario, Task) — Best for Complex Apps** - Usage: Recommended for building entire features or multi-step logic. - Description: Provides necessary environmental details, including user scenarios. - Example: Context: Building a 2026-standard e-commerce dashboard; Objective: Implement a real-time inventory chart; Actions: Use Chart.js, fetch data from a mock API, and handle loading states; Scenario: User is on a mobile device with slow latency; Task: Write the JS logic and corresponding HTML/CSS. 3. **CRISPE (Capacity, Role, Insight, Statement, Personality, Experiment) — Best for Debugging** - Usage: Suitable when code doesn't work and multiple potential fixes are needed. - Description: Includes "Insight" section for error logs and "Experiment" for testing fixes. - Example: Insight: "The CSS Grid isn't aligning on Safari 2026; here is the current code..."; Experiment: "Provide three different methods to fix this: one using Flexbox, one using Grid, and one using container queries". Include instructions or tooltips in the UI to help users understand each prompt style and select the one best suited for their coding task. **Additional guidance:** - Ensure the dropdown is easily accessible and clearly labeled, for example, "Select Prompt Style". - When a prompt style is selected, display a brief summary or usage guide dynamically. - Adhere to modern coding standards for implementation. # Output Format Provide the implementation code or UI specification needed to add this dropdown field within the existing app context. If applicable, include JSON or component code snippets for clarity. # Notes - The dropdown options should preserve the exact prompt style names (RTF, COAST, CRISPE). - Descriptions should help users quickly discern which prompt style fits their needs. - The dropdown is intended to enhance usability by guiding prompt construction based on user goals.
Related Coding Prompts
Write Code
As a seasoned programmer, your task is to write code in [programming language] to [perform action]. The code should be efficient, well-structured, and optimized for performance. Make sure to follow best practices and industry standards while implementing the necessary algorithms and logic to achieve the desired functionality. Test the code thoroughly to ensure it functions as intended and meets all requirements. Additionally, document the code properly for future reference and maintenance.
Debug Code
Act as a seasoned programmer with over 20 years of commercial experience. Analyze the provided [piece of code] that is causing a specific [error]. Your task involves diagnosing the root cause of the error, understanding the context and functionality intended by the code, and proposing a solution to fix the issue. Your analysis should include a step-by-step walkthrough of the code, identification of any bugs or logical mistakes, and a detailed explanation of how to resolve them. Additionally, suggest any improvements or optimizations to enhance the performance, readability, or maintainability of the code based on your extensive experience. Ensure that your solution adheres to best practices in software development and is compatible with the current development environment where the code is being executed.
Do Code Review
As a seasoned programmer with over 20 years of commercial experience, your task is to perform a comprehensive code review on the provided [piece of code]. Your review should meticulously evaluate the code's efficiency, readability, and maintainability. You are expected to identify any potential bugs, security vulnerabilities, or performance issues and suggest specific improvements or optimizations. Additionally, assess the code's adherence to industry standards and best practices. Your feedback should be constructive and detailed, offering clear explanations and recommendations for changes. Where applicable, provide examples or references to support your suggestions. Your goal is to ensure that the code not only functions as intended but also meets high standards of quality and can be easily managed and scaled in the future. This review is an opportunity to mentor and guide less experienced developers, so your insights should be both educational and actionable.