refine-prompt

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context

上下文

  • Working directory: !
    pwd
  • Request: $ARGUMENTS
  • 工作目录:!
    pwd
  • 请求内容:$ARGUMENTS

Task

任务

You are an expert prompt engineer. Create an optimized prompt based on
$ARGUMENTS
.
你是一名专业的提示工程师,请基于
$ARGUMENTS
创建优化后的提示词。

1. Craft the Prompt

1. 打造提示词

Apply relevant techniques:
  • Few-shot examples (when helpful)
  • Chain-of-thought reasoning
  • Role/perspective setting
  • Output format specification
  • Constraints and boundaries
  • Self-consistency checks
Structure with:
  • Clear role definition (if applicable)
  • Explicit task description
  • Expected output format
  • Constraints and guidelines
应用相关技术:
  • Few-shot examples(在有帮助时使用)
  • Chain-of-thought reasoning
  • 角色/视角设定
  • 输出格式规范
  • 约束与边界
  • 自一致性检查
按照以下结构构建:
  • 清晰的角色定义(如适用)
  • 明确的任务描述
  • 预期的输出格式
  • 约束与指导准则

2. Display the Result

2. 展示结果

Show the complete prompt in a code block, ready to copy:
[Complete prompt text]
Briefly note which techniques you applied and why.
在代码块中显示完整的提示词,方便复制:
[完整提示词文本]
简要说明你应用了哪些技术及其原因。

3. Save to .ai/PROMPT.md

3. 保存至.ai/PROMPT.md

First ensure the directory exists:
mkdir -p .ai
If
.ai/PROMPT.md
exists:
Read current contents and append:
---
首先确保目录存在:
mkdir -p .ai
若.ai/PROMPT.md已存在:
读取当前内容并追加:
---

[Brief title from $ARGUMENTS]

[来自$ARGUMENTS的简短标题]

[The optimized prompt]

**If `.ai/PROMPT.md` does not exist:**

Create with:
[优化后的提示词]

**若.ai/PROMPT.md不存在:**

创建文件并写入:

Optimized Prompts

优化后的提示词

[Brief title from $ARGUMENTS]

[来自$ARGUMENTS的简短标题]

[The optimized prompt]

Confirm: "Saved to .ai/PROMPT.md"
[优化后的提示词]

确认提示:"已保存至.ai/PROMPT.md"