跳到正文
Skillpedia
通用编程53k · #3377

code-mate-gemini

它能做什么

这个助手可以借助 Gemini CLI 帮你分析代码项目并完成编程任务。它可以检查你的代码、对比结果,还能为你运行特定命令。

适用场景

  • ✓当你想让 AI 分析项目中的某个模块时。
  • ✓当你需要对比不同工具完成同一编程任务的结果时。
  • ✓当你想让 AI 替你执行一条 Gemini CLI 命令时。

技能链接

https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-gemini/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/CherryHQ/cherry-studio/blob/main/resources/code-cli-skills/code-mate-gemini/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“分析一下我项目中的 'user_auth' 模块,看看有没有问题。”

每周 5 个新技能,1 分钟读完。

工作原理

它会设置好你的项目环境,检查 Gemini 工具是否已安装,然后按照你的指令运行特定命令。接着,它会把结果展示给你。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Gemini CLI

Run

  1. Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
  2. Check availability with command -v gemini. If it is missing, stop and ask the user to install Gemini CLI in Code Mate.
  3. Run one task and exit:
gemini -p "<prompt>" --output-format json

Pass the prompt as one quoted argument. Parse the JSON result and treat a JSON error or nonzero exit as failure. Never start interactive Gemini or an authentication flow.

Authentication And Permissions

If Gemini reports missing authentication, project, or provider configuration, stop and ask the user to finish Gemini setup in Code Mate. Never request, read, print, or copy credentials.

Keep headless approval policy at its read-only default. Only when the user explicitly requests workspace changes may the command use the narrowest policy and tool permissions needed; do not enable unrestricted approval.

Example: ask Gemini to review a module without editing, run the command above from the repository, and summarize the parsed response and any reported error.

常见问题

什么是 Gemini CLI?

它是一个命令行工具,可以让你在编程任务中与 Gemini 等 AI 模型进行交互。

我需要安装什么吗?

需要。你的环境中要先安装 Gemini CLI。如果缺少,助手会告诉你。

AI 能修改我的代码吗?

一般不能。除非你明确提出要求并获得特定权限,否则它只会分析并报告结果。

详情

作者的原始描述

Runs Gemini CLI headlessly for repository analysis and coding tasks. Use when the user asks to delegate work to Gemini CLI or compare its result with another coding agent.

repo: CherryHQ/cherry-studio

热度

GitHub 星标
53k
排名
#3377
许可证
AGPL-3.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能