prompts.chat 扩展
本教程介绍如何把 prompts.chat MCP 服务器 添加为 goose 扩展,以便在 AI 助手里直接访问数千条 AI 提示词。
快速安装
- goose Desktop
- goose CLI
命令
npx -y @fkadev/prompts.chat-mcp@latest
环境变量(可选)
PROMPTS_API_KEY: <YOUR_API_KEY>
配置
信息
运行此命令需要系统已安装 Node.js,因为会用到 npx。
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your prompts.chat API Key and paste it in
- Click
Add Extension - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
goose configure
- Choose to add a
Command-line Extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension (Streamable HTTP)
└
- Give your extension a name.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ prompts.chat
└
- Enter the command to run when this extension is used.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ prompts.chat
│
◆ What command should be run?
│ npx -y @fkadev/prompts.chat-mcp@latest
└
- Enter the number of seconds goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ prompts.chat
│
◇ What command should be run?
│ npx -y @fkadev/prompts.chat-mcp@latest
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ prompts.chat
│
◇ What command should be run?
│ npx -y @fkadev/prompts.chat-mcp@latest
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ Access thousands of AI prompts directly in your AI assistant
└
- Add an environment variable for this extension.
信息
The PROMPTS_API_KEY is optional. If you want to save and list private prompts, obtain your API key from prompts.chat and paste it in.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ prompts.chat
│
◇ What command should be run?
│ npx -y @fkadev/prompts.chat-mcp@latest
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ Access thousands of AI prompts directly in your AI assistant
│
◆ Would you like to add environment variables?
│ Yes
│
◇ Environment variable name:
│ PROMPTS_API_KEY
│
◇ Environment variable value:
│ ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪
│
◇ Add another environment variable?
│ No
│
└ Added prompts.chat extension
使用示例
prompts.chat 扩展提供一套经过整理的 AI 提示词库,可以在 goose 里直接搜索和使用。需要灵感,或想借用经过验证的提示词模式来完成特定任务时,它很有用。
- goose Desktop
- goose CLI
- 在 goose 桌面版中打开一个新会话
- 打开终端,启动一个新的 goose 会话:
goose session
搜索提示词
goose 提示词
搜索和代码审查相关的提示词
goose 输出
我找到了几条和代码审查相关的提示词:
1. **Code Review Assistant**:一条全面的提示词,用于审查代码质量、安全性和最佳实践
2. **Pull Request Reviewer**:帮助分析拉取请求并提出改进建议
3. **Security Code Audit**:专注于找出安全漏洞
需要我取出其中某一条吗?
使用一条提示词
goose 提示词
取出 Code Review Assistant 提示词,并用它审查我当前的文件
goose 输出
我已经取出 Code Review Assistant 提示词。接下来按它来分析你的代码……
[正在按提示词准则审查你的代码]
基于该提示词框架的审查结果:
✅ 代码结构与组织
✅ 命名约定
⚠️ 建议为边界情况补充错误处理
⚠️ 公开方法的文档还可以改进
需要我帮你处理其中某些发现吗?