Co-Pilot / 辅助式
更新于 a month ago

collaborating-with-gemini

GGuDaStudio
0.0k
GuDaStudio/collaborating-with-gemini
60
Agent 评分

💡 摘要

一个桥接技能,将编码任务委托给 Gemini CLI,用于原型设计、调试和代码审查。

🎯 适合人群

需要快速生成代码的原型设计者遇到bug的开发者寻求自动化反馈的代码审查员演示AI辅助编程的教育工作者

🤖 AI 吐槽:这本质上是一个薄包装层,把当AI代理的苦活累活大部分都推给了另一个AI代理的CLI。

安全分析低风险

该技能执行外部CLI(Gemini),该CLI可能具有文件系统和网络访问权限,存在任意代码执行或数据泄露的风险。缓解措施:严格控制`--cd`参数,并在权限受限的沙箱环境中运行代理。


name: collaborating-with-gemini description: Delegates coding tasks to Gemini CLI for prototyping, debugging, and code review. Use when needing algorithm implementation, bug analysis, or code quality feedback. Supports multi-turn sessions via SESSION_ID.

Quick Start

python scripts/gemini_bridge.py --cd "/path/to/project" --PROMPT "Your task"

Output: JSON with success, SESSION_ID, agent_messages, and optional error.

Parameters

usage: gemini_bridge.py [-h] --PROMPT PROMPT --cd CD [--sandbox] [--SESSION_ID SESSION_ID] [--return-all-messages] [--model MODEL]

Gemini Bridge

options:
  -h, --help            show this help message and exit
  --PROMPT PROMPT       Instruction for the task to send to gemini.
  --cd CD               Set the workspace root for gemini before executing the task.
  --sandbox             Run in sandbox mode. Defaults to `False`.
  --SESSION_ID SESSION_ID
                        Resume the specified session of the gemini. Defaults to empty string, start a new session.
  --return-all-messages
                        Return all messages (e.g. reasoning, tool calls, etc.) from the gemini session. Set to `False` by default, only the agent's final reply message is
                        returned.
  --model MODEL         The model to use for the gemini session. This parameter is strictly prohibited unless explicitly specified by the user.

Multi-turn Sessions

Always capture SESSION_ID from the first response for follow-up:

# Initial task python scripts/gemini_bridge.py --cd "/project" --PROMPT "Analyze auth in login.py" # Continue with SESSION_ID python scripts/gemini_bridge.py --cd "/project" --SESSION_ID "uuid-from-response" --PROMPT "Write unit tests for that"

Common Patterns

Prototyping (request diffs):

python scripts/gemini_bridge.py --cd "/project" --PROMPT "Generate unified diff to add logging"

Debug with full trace:

python scripts/gemini_bridge.py --cd "/project" --PROMPT "Debug this error" --return-all-messages
五维分析
清晰度7/10
创新性4/10
实用性8/10
完整性6/10
可维护性5/10
优缺点分析

优点

  • 利用强大的外部LLM(Gemini)处理复杂任务
  • 支持多轮对话以进行迭代工作
  • 简单的命令行界面便于集成

缺点

  • 增加了对外部CLI工具及其API的依赖
  • 对Gemini代理行为的控制和定制有限
  • README缺乏错误处理和Gemini CLI设置的详细信息

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 GuDaStudio.