Skip to content
TheChatArchiveThe Chat Archive
o1-preview-2024-09-12· OpenAIAi2 WildChat-4.8M (AI2)

Analyze the following prompt idea: "Write a stable and working Tampermonkey…

  1. User

    Analyze the following prompt idea: "Write a stable and working Tampermonkey script"Rewrite the prompt for clarity and effectivenessIdentify potential improvements or additionsRefine the prompt based on identified improvementsPresent the final optimized prompt

  2. Assistant

    Analysis of the Prompt Idea:

    The original prompt is: "Write a stable and working Tampermonkey script."

    This prompt requests the creation of a Tampermonkey script that is stable and functional. However, it lacks specific details about the script's intended purpose or functionality. Without clear instructions on what the script should achieve, it's challenging to produce a useful and relevant script that meets the user's needs.

    Rewriting the Prompt for Clarity and Effectiveness:

    To improve clarity and effectiveness, the prompt should specify:

    • The Script's Purpose: What should the script do? For example, manipulate webpage content, automate tasks, enhance user interface, etc.
    • Target Websites or Pages: On which websites or pages should the script operate?
    • Specific Features or Requirements: Any particular functionalities, performance considerations, or compatibility needs.

    Identifying Potential Improvements or Additions:

    • Specific Functionality: Define exact actions the script should perform.
    • Execution Context: Specify browsers or environments where the script should work.
    • Performance Criteria: Mention if the script needs to be optimized for speed or resource usage.
    • Compatibility Requirements: Indicate if the script should support multiple browsers or versions.

    Refining the Prompt Based on Identified Improvements:

    By incorporating these details, the prompt becomes more precise, enabling the development of a script that aligns with the user's expectations.

    Final Optimized Prompt:

    "Write a stable and working Tampermonkey script that [describes the specific functionality], designed to run on [specific website(s) or page(s)]. The script should [additional requirements or preferences], ensuring compatibility with [browser versions or environments] and adhering to best coding practices for maintainability and performance."

    Example of an Optimized Prompt:

    "Write a stable and working Tampermonkey script that automatically fills in login forms on example.com with predefined credentials. The script should run on the login page of example.com, securely store credentials, and include a toggle to enable or disable the auto-fill feature. Ensure compatibility with the latest versions of Chrome and Firefox, and follow best practices for user script development to maintain performance and security."