prompt-optimizer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Prompt Optimizer

提示词优化工具

A comprehensive prompt engineering skill that helps users craft high-quality, effective prompts using proven frameworks.
这是一款全面的提示词工程工具,可借助经过验证的框架帮助用户打造高质量、高效的提示词。

Workflow

工作流程

Copy this checklist and track your progress:
  • Step 1: Analyze User Input
  • Step 2: Match Scenario and Select Framework
  • Step 3: Load Framework Details
  • Step 4: Clarify Ambiguities
  • Step 5: Generate Optimized Prompt
  • Step 6: Present and Iterate
When a user requests create or prompt optimization, follow these steps:
复制此清单并跟踪你的进度:
  • 步骤1:分析用户输入
  • 步骤2:匹配场景并选择框架
  • 步骤3:加载框架详情
  • 步骤4:澄清模糊点
  • 步骤5:生成优化后的提示词
  • 步骤6:呈现并迭代
当用户请求创建或优化提示词时,请遵循以下步骤:

Step 1: Analyze User Input

步骤1:分析用户输入

Receive the user's request, which may be:
  • A raw prompt that needs optimization
  • A task description or requirement
  • A vague idea that needs to be turned into a prompt
接收用户的请求,请求可能包括:
  • 需要优化的原始提示词
  • 任务描述或需求
  • 需要转化为提示词的模糊想法

Step 2: Match Scenario and Select Framework

步骤2:匹配场景并选择框架

Read the references/Frameworks_Summary.md file to:
  1. Identify the user's scenario from the application scenarios listed
  2. Match the most suitable framework(s) based on:
    • Application scenario alignment
    • Task complexity (simple/medium/complex)
    • Domain category (marketing, decision analysis, education, etc.)
Framework Selection Guide by Complexity:
ComplexityRecommended Frameworks
Simple (≤3 elements)APE, ERA, TAG, RTF, BAB, PEE, ELI5
Medium (4-5 elements)RACE, CIDI, SPEAR, SPAR, FOCUS, SMART, GOPA, ORID, CARE, ROSE, PAUSE, TRACE, GRADE, TRACI, RODES
Complex (6+ elements)RACEF, CRISPE, SCAMPER, Six Thinking Hats, ROSES, PROMPT, RISEN, RASCEF, Atomic Prompting
Framework Selection Guide by Domain:
DomainRecommended Frameworks
Marketing ContentBAB, SPEAR, Challenge-Solution-Benefit, BLOG, PROMPT, RHODES
Decision AnalysisRICE, Pros and Cons, Six Thinking Hats, Tree of Thought, PAUSE, What If
Education & TrainingBloom's Taxonomy, ELI5, Socratic Method, PEE, Hamburger Model
Product DevelopmentSCAMPER, HMW, CIDI, RELIC, 3Cs Model
AI Dialogue/AssistantCOAST, ROSES, TRACE, RACE, RASCEF
Writing & CreationBLOG, 4S Method, Hamburger Model, Few-shot, RHODES, Chain of Destiny
Image GenerationAtomic Prompting
Quick Simple TasksZero-shot, ERA, TAG, APE, RTF
Complex ReasoningChain of Thought, Tree of Thought
阅读references/Frameworks_Summary.md文件,完成以下操作:
  1. 从列出的应用场景中识别用户的场景
  2. 基于以下因素匹配最合适的框架:
    • 应用场景匹配度
    • 任务复杂度(简单/中等/复杂)
    • 领域类别(营销、决策分析、教育等)
按复杂度划分的框架选择指南:
复杂度推荐框架
简单(≤3个要素)APE, ERA, TAG, RTF, BAB, PEE, ELI5
中等(4-5个要素)RACE, CIDI, SPEAR, SPAR, FOCUS, SMART, GOPA, ORID, CARE, ROSE, PAUSE, TRACE, GRADE, TRACI, RODES
复杂(6+个要素)RACEF, CRISPE, SCAMPER, Six Thinking Hats, ROSES, PROMPT, RISEN, RASCEF, Atomic Prompting
按领域划分的框架选择指南:
领域推荐框架
营销内容BAB, SPEAR, Challenge-Solution-Benefit, BLOG, PROMPT, RHODES
决策分析RICE, Pros and Cons, Six Thinking Hats, Tree of Thought, PAUSE, What If
教育与培训Bloom's Taxonomy, ELI5, Socratic Method, PEE, Hamburger Model
产品开发SCAMPER, HMW, CIDI, RELIC, 3Cs Model
AI对话/助手COAST, ROSES, TRACE, RACE, RASCEF
写作与创作BLOG, 4S Method, Hamburger Model, Few-shot, RHODES, Chain of Destiny
图像生成Atomic Prompting
快速简单任务Zero-shot, ERA, TAG, APE, RTF
复杂推理Chain of Thought, Tree of Thought

Step 3: Load Framework Details

步骤3:加载框架详情

Once the best framework is identified, read the corresponding framework file from the
references/frameworks/
directory:
  • File naming pattern:
    XX_FrameworkName_Framework.md
  • Example: For RACEF framework, read
    references/frameworks/01_RACEF_Framework.md
The framework file contains:
  • Framework overview and components
  • Detailed explanation of each element
  • Pros and cons
  • Best practice examples
确定最佳框架后,从
references/frameworks/
目录中读取对应的框架文件:
  • 文件命名模式:
    XX_FrameworkName_Framework.md
  • 示例:对于RACEF框架,读取
    references/frameworks/01_RACEF_Framework.md
框架文件包含:
  • 框架概述与组成部分
  • 每个要素的详细说明
  • 优缺点
  • 最佳实践示例

Step 4: Clarify Ambiguities

步骤4:澄清模糊点

Before generating the final prompt, verify with the user:
  1. Goal Clarity: Is the intended outcome clear?
  2. Target Audience: Who will receive the AI's response?
  3. Context Completeness: Is sufficient background information provided?
  4. Format Requirements: Are there specific output format needs?
  5. Constraints: Are there any limitations or restrictions?
Ask clarifying questions if any information is:
  • Missing
  • Ambiguous
  • Incomplete
  • Contradictory
Example clarifying questions:
  • "What specific outcome are you hoping to achieve?"
  • "Who is the target audience for this content?"
  • "Are there any format or length requirements?"
  • "What context should the AI consider?"
在生成最终提示词前,与用户确认以下内容:
  1. 目标清晰度:预期结果是否明确?
  2. 目标受众:谁会接收AI的响应?
  3. 上下文完整性:是否提供了足够的背景信息?
  4. 格式要求:是否有特定的输出格式需求?
  5. 约束条件:是否存在任何限制或约束?
如果任何信息存在以下情况,请提出澄清问题:
  • 缺失
  • 模糊
  • 不完整
  • 矛盾
示例澄清问题:
  • "你希望达成的具体结果是什么?"
  • "此内容的目标受众是谁?"
  • "是否有格式或长度要求?"
  • "AI需要考虑哪些上下文信息?"

Step 5: Generate Optimized Prompt

步骤5:生成优化后的提示词

Apply the selected framework to create the final prompt:
  1. Structure the prompt according to framework components
  2. Incorporate all clarified information
  3. Ensure clarity and specificity
  4. Include relevant examples if the framework requires
  5. Add any necessary constraints or guidelines
应用选定的框架创建最终提示词:
  1. 根据框架组件构建提示词结构
  2. 整合所有已澄清的信息
  3. 确保清晰具体
  4. 如果框架要求,包含相关示例
  5. 添加任何必要的约束或指南

Step 6: Present and Iterate

步骤6:呈现并迭代

Present the optimized prompt to the user with:
  1. The selected framework name and why it was chosen
  2. The complete optimized prompt
  3. Explanation of how each framework element was applied
  4. Suggestions for potential variations or improvements
If the user requests changes, iterate on the prompt while maintaining framework structure.
向用户展示优化后的提示词,同时提供:
  1. 选定的框架名称及其被选中的原因
  2. 完整的优化后提示词
  3. 每个框架要素的应用说明
  4. 潜在变体或改进建议
如果用户请求修改,在保持框架结构的前提下对提示词进行迭代优化。

Framework Reference Files

框架参考文件

All framework details are stored in the
references/frameworks/
directory. Each file contains:
  • Application scenarios
  • Framework components with explanations
  • Advantages and disadvantages
  • Multiple practical examples
所有框架详情均存储在
references/frameworks/
目录中。每个文件包含:
  • 应用场景
  • 带说明的框架组件
  • 优缺点
  • 多个实用示例

Quick Framework Selection

快速框架选择

For users unsure which framework to use:
User SaysRecommended Framework
"I need a simple prompt"APE, ERA, TAG
"I want to persuade/sell"BAB, SPEAR, Challenge-Solution-Benefit
"I need to analyze/decide"RICE, Pros and Cons, Chain of Thought
"I want to teach/explain"ELI5, Bloom's Taxonomy, Socratic Method
"I need creative ideas"SCAMPER, HMW, SPARK, Imagine
"I want structured writing"BLOG, 4S Method, Hamburger Model
"I need step-by-step reasoning"Chain of Thought, Tree of Thought
"I'm generating images"Atomic Prompting
"I need a detailed plan"RISEN, RASCEF, CRISPE
对于不确定使用哪种框架的用户:
用户需求推荐框架
"我需要一个简单的提示词"APE, ERA, TAG
"我想要说服/推销"BAB, SPEAR, Challenge-Solution-Benefit
"我需要分析/做决策"RICE, Pros and Cons, Chain of Thought
"我想要教学/解释"ELI5, Bloom's Taxonomy, Socratic Method
"我需要创意想法"SCAMPER, HMW, SPARK, Imagine
"我想要结构化写作"BLOG, 4S Method, Hamburger Model
"我需要分步推理"Chain of Thought, Tree of Thought
"我正在生成图像"Atomic Prompting
"我需要一个详细计划"RISEN, RASCEF, CRISPE