gemini-chat
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGemini Chat Skill
Gemini Chat Skill
Overview
概述
Claude can interact with Gemini AI at gemini.google.com for quick queries, brainstorming sessions, and getting alternative AI perspectives. Useful for cross-referencing information and leveraging Gemini's real-time web access.
Claude可以与gemini.google.com上的Gemini AI进行交互,用于快速查询、头脑风暴会议以及获取不同AI的观点。这在交叉参考信息和利用Gemini的实时网页访问功能时非常实用。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/gemini-chat/install.sh | bashOr manually:
bash
cp -r skills/gemini-chat ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/gemini-chat/install.sh | bash或者手动安装:
bash
cp -r skills/gemini-chat ~/.canifi/skills/Setup
配置设置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保canifi-env已安装:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set GOOGLE_EMAIL "your-email@gmail.com"
undefinedcanifi-env set GOOGLE_EMAIL "your-email@gmail.com"
undefinedPrivacy & Authentication
隐私与认证
Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。
Option 1: Manual Browser Login (Recommended)
选项1:手动浏览器登录(推荐)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录该服务
- Claude将使用你的已认证会话,且永远不会看到你的密码
Option 2: Environment Variables
选项2:环境变量
If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将它们存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"注意:存储在canifi-env中的凭据仅能在你的本地机器上访问,绝不会被传输。
Capabilities
功能特性
- Ask quick questions with real-time web access
- Brainstorm ideas and get suggestions
- Cross-reference information from multiple AI sources
- Get real-time information and news
- Analyze images and documents
- Generate creative content
- Translate languages
- Summarize web content
- Get coding assistance
- Explore alternative perspectives
- 通过实时网页访问提出快速问题
- 头脑风暴想法并获取建议
- 交叉参考来自多个AI源的信息
- 获取实时资讯与新闻
- 分析图片和文档
- 生成创意内容
- 语言翻译
- 总结网页内容
- 获取编码协助
- 探索不同的观点
Usage Examples
使用示例
Example 1: Real-Time Information
示例1:实时信息查询
User: "Ask Gemini about today's stock market"
Claude: Opens Gemini, asks about current market conditions.
Returns: "Gemini reports: S&P 500 up 0.5%, tech sector
leading gains, key movers include..."用户:"让Gemini查询今日股市情况"
Claude:打开Gemini,询问当前市场状况。
返回结果:"Gemini报告:标普500指数上涨0.5%,科技板块领涨,主要异动股包括..."Example 2: Brainstorming
示例2:头脑风暴
User: "Brainstorm with Gemini about app name ideas"
Claude: Opens Gemini, requests creative name ideas.
Returns list of suggestions with rationale.用户:"和Gemini一起头脑风暴应用名称创意"
Claude:打开Gemini,请求创意名称建议。
返回带有理由的建议列表。Example 3: Cross-Reference
示例3:交叉参考
User: "Ask Gemini to verify this technical approach"
Claude: Sends technical question to Gemini.
Returns: "Gemini suggests: [alternative perspective]"用户:"让Gemini验证这个技术方案"
Claude:将技术问题发送给Gemini。
返回结果:"Gemini建议:[不同的观点]"Example 4: Image Analysis
示例4:图片分析
User: "Have Gemini analyze this screenshot"
Claude: Uploads image to Gemini, requests analysis.
Returns Gemini's interpretation and insights.用户:"让Gemini分析这张截图"
Claude:将图片上传至Gemini,请求分析。
返回Gemini的解读和见解。Authentication Flow
认证流程
- Claude navigates to gemini.google.com via Playwright MCP
- Authenticates with GOOGLE_EMAIL if needed
- Handles 2FA if prompted (notifies user via iMessage)
- Interacts with chat interface
- Claude通过Playwright MCP导航至gemini.google.com
- 如有需要,使用GOOGLE_EMAIL进行认证
- 若提示双因素认证,则通过iMessage通知用户
- 与聊天界面进行交互
Chat Workflow
聊天工作流
1. Navigate to gemini.google.com
2. Enter query in chat input
3. Wait for response
4. Extract and return relevant information
5. Continue conversation if needed1. 导航至gemini.google.com
2. 在聊天输入框中输入查询内容
3. 等待响应
4. 提取并返回相关信息
5. 如有需要,继续对话Selectors Reference
选择器参考
javascript
// Chat input
'[aria-label="Enter a prompt here"]' or 'rich-textarea'
// Submit button
'[aria-label="Send message"]'
// Response container
'.model-response' or '.response-content'
// Copy response
'[aria-label="Copy"]'
// New chat
'[aria-label="New chat"]'
// Upload image
'[aria-label="Upload image"]'
// Voice input
'[aria-label="Voice input"]'
// Response actions
'.response-actions'javascript
// 聊天输入框
'[aria-label="Enter a prompt here"]' or 'rich-textarea'
// 提交按钮
'[aria-label="Send message"]'
// 响应容器
'.model-response' or '.response-content'
// 复制响应
'[aria-label="Copy"]'
// 新聊天
'[aria-label="New chat"]'
// 上传图片
'[aria-label="Upload image"]'
// 语音输入
'[aria-label="Voice input"]'
// 响应操作
'.response-actions'When to Use Gemini Chat vs Claude
何时使用Gemini Chat vs Claude
Use Gemini for:
- Real-time web information
- Current events and news
- Image analysis tasks
- Google ecosystem integrations
- Alternative AI perspectives
Stay with Claude for:
- Complex reasoning tasks
- Code development
- Long-form content creation
- LifeOS integrations
- Most general tasks优先使用Gemini的场景:
- 实时网页信息查询
- 当前事件与新闻
- 图片分析任务
- Google生态系统集成
- 获取不同AI的观点
优先使用Claude的场景:
- 复杂推理任务
- 代码开发
- 长内容创作
- LifeOS集成
- 大多数通用任务Error Handling
错误处理
- Login Failed: Retry 3 times, notify user via iMessage
- Session Expired: Re-authenticate automatically
- Query Failed: Retry, rephrase if needed
- Response Timeout: Wait and retry
- Content Policy Block: Note restriction, suggest alternatives
- Rate Limited: Wait and retry with backoff
- 登录失败:重试3次,通过iMessage通知用户
- 会话过期:自动重新认证
- 查询失败:重试,必要时重新表述问题
- 响应超时:等待并重试
- 内容政策拦截:记录限制,建议替代方案
- 速率限制:等待并使用退避策略重试
Self-Improvement Instructions
自我改进说明
When you learn a better way to use Gemini Chat:
- Document the improvement in your response
- Suggest updating this skill file with the new approach
- Include specific query formulations that work better
- Note when Gemini provides better results than alternatives
当你发现使用Gemini Chat的更优方法时:
- 在回复中记录该改进点
- 建议使用新方法更新此Skill文件
- 包含更有效的具体查询表述方式
- 记录Gemini比其他方案表现更好的场景
Notes
注意事项
- Gemini has real-time web access
- Responses may include citations and links
- Image upload supported for visual queries
- Voice input available for spoken queries
- Conversation history maintained within session
- Can switch between chat and other Gemini features
- Best for quick queries rather than complex workflows
- Use Deep Research for thorough investigation
- Gemini具备实时网页访问功能
- 响应可能包含引用和链接
- 支持上传图片以进行视觉查询
- 支持语音输入进行口头查询
- 会话内会保留对话历史
- 可在聊天和Gemini其他功能之间切换
- 最适合快速查询而非复杂工作流
- 如需深入调查,请使用深度研究功能