✨ Refine Prompt ✨
Transform ordinary prompts into powerful, structured instructions for any LLM
Installation • Getting Started • How It Works • Features • Examples • License
______________________________________________________________________
📋 概述
优化提示 是一种智能提示工程工具,可以将普通提示转换为任何大型语言模型(LLM)的强大、结构化指令。使用Claude的高级功能,它可以增强您的提示,在所有AI平台上产生出色的结果。
🔑 重要提示: 您的提示必须包含关键字“refine”以激活增强过程。 例子: "refine, Create a function that calculates the factorial of a number"______________________________________________________________________
🚀 安装
📦 通过NPM
npm install refine-prompt🛠️ 通过史密瑟里
您可以通过访问Smithery直接安装此MCP服务器: Smithery-精炼提示
📁 通过本地存储库
# Clone the repository
git clone https://github.com/felippefarias/refine-prompt.git
cd refine-prompt
# Install dependencies
npm install______________________________________________________________________
🏁 入门指南
🔑 API密钥设置
Refine Prompt需要Anthropic API密钥才能访问Claude的高级功能:
export ANTHROPIC_API_KEY=your_anthropic_api_key如果没有API键,该工具将显示一条错误消息。
⚙️ 运行服务器
npm start或与MCP检查员联系:
npx @modelcontextprotocol/inspector npm start______________________________________________________________________
🔧 工具:rewrite_prompt-精炼的力量
将你的想法转化为精心制作的提示。这个强大的工具分析您的输入,并生成专业设计的提示,最大限度地提高人工智能的理解和响应质量。
📝 参数
| 参数 | 说明 | 必填 |
|---|---|---|
prompt | 需要改进的原始提示(必须包含“refine”关键字) | ✅ |
language | 对于与代码相关的提示,请指定目标编程语言 | ❌ |
📋 示例用法
For general prompts
{
"name": "rewrite_prompt",
"arguments": {
"prompt": "refine, Summarize the main points of the article titled \"The Future of AI\""
}
}For code-related prompts
{
"name": "rewrite_prompt",
"arguments": {
"prompt": "refine, Create a function to convert temperature between Celsius and Fahrenheit",
"language": "typescript"
}
}______________________________________________________________________
🧠 运作原理
服务器使用Anthropic的Claude 3 Sonnet智能重写您的提示,以获得更好的结果。每个提示都必须包含关键字“refine”以触发增强过程。
它通过以下方式增强您的提示:
- 📐 添加清晰的结构和上下文
- 📝 明确要求和期望
- 🔍 包括特定领域的考虑因素
- 🌐 优化任何LLM理解
______________________________________________________________________
✨ 特性
| 特性 | 描述 |
|---|---|
| 🤖 人工智能驱动的优化 | 利用Claude 3.5 Sonnet的高级功能来转换您的提示 |
| 🔑 使用关键字激活 | 只需在提示中包含“优化”即可触发增强 |
| 🌐 通用兼容性 | 优化任何类型任务或域的提示 |
| 💻 特定代码智能 | 在指定语言时为编程任务提供专门的增强功能 |
| 🔄 无缝集成 | 与任何LLM驱动的应用程序或工作流完美配合 |
| 🎯 精准聚焦 | 使用0.2温度设置,确保可靠、一致的输出质量 |
| 📊 结构清晰度 | 添加逻辑组织、清晰说明和正确格式 |
______________________________________________________________________
⚙️ 配置
🖥️ 使用Claude Desktop
将此添加到您的 claude_desktop_config.json:
NPX
{
"mcpServers": {
"refine-prompt": {
"command": "npx",
"args": [
"-y",
"refine-prompt"
]
}
}
}Local Installation
# Clone the repository
git clone https://github.com/felippefarias/refine-prompt.git
cd refine-prompt
# Install dependencies
npm install
# Run the server
node index.js______________________________________________________________________
📊 例子
📝 一般提示增强
Input Arguments
refine, Summarize the main points of the article titled "The Future of AI"{
"prompt": "refine, Summarize the main points of the article titled \"The Future of AI\""
}💻 代码相关提示增强
Input Arguments
refine, Create a function that sorts an array of objects by a specific property{
"prompt": "refine, Create a function that sorts an array of objects by a specific property",
"language": "typescript"
}该工具将重写两个提示,使其更加结构化和详细,以获得任何LLM的最佳结果。
______________________________________________________________________
🚀 提升你的人工智能互动
Refine Prompt弥合了人类思维和人工智能理解之间的差距。通过将自然语言指令转换为专业设计的提示,它可以帮助您释放任何语言模型的全部潜力。无论您是开发人员、内容创建者、研究人员还是人工智能爱好者,Refine Prompt都能让您更有效地与人工智能进行沟通。
______________________________________________________________________
📄 许可证
Refine Prompt根据MIT许可证获得许可。您可以根据MIT许可证的条款和条件自由使用、修改和分发软件。有关更多详细信息,请参阅项目存储库中的LICENSE文件。
