gemini-cli by x-zero-l/agent-skills
npx skills add https://github.com/x-zero-l/agent-skills --skill gemini-cli当你需要一个非常大的上下文窗口、第二意见或安全的沙箱执行环境时,可以使用 Google 的 gemini CLI 作为外部的“第二大脑”。此技能不使用 MCP;它直接运行本地 CLI。
当用户要求以下操作时使用此技能:
@路径 引用时)gemini CLI 已安装并配置(例如 gemini --version 可以运行)-s/--sandbox(参见 gemini --help)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
gemini "Explain what this code does: @src/main.ts"
gemini -m gemini-3-pro-preview "..."
gemini -m gemini-3-flash-preview "..."
gemini -s "Safely test @scripts/example.py and explain the results."
此技能附带一个无依赖的包装器,它镜像了 gemini-mcp-tool 的核心行为,但不使用 MCP:
skills/gemini-cli/scripts/gemini-tool.mjs
重要提示:Gemini CLI 只能读取其当前“项目目录”(通常是进程工作目录)下的文件。请从你希望 Gemini 读取的仓库中运行包装器,或者传递 --cwd 参数。
node skills/gemini-cli/scripts/gemini-tool.mjs help
node skills/gemini-cli/scripts/gemini-tool.mjs ask --prompt "Summarize @. in 5 bullets."
node skills/gemini-cli/scripts/gemini-tool.mjs ask --cwd /path/to/project --prompt "Summarize @. in 5 bullets."
node skills/gemini-cli/scripts/gemini-tool.mjs ask --prompt "..." --model gemini-3-pro-preview
node skills/gemini-cli/scripts/gemini-tool.mjs ask --prompt "..." --sandbox
node skills/gemini-cli/scripts/gemini-tool.mjs brainstorm --prompt "How should we design onboarding?" --methodology scamper --ideaCount 12
当你希望 Gemini 输出可以确定性应用的、通过精确字符串匹配来执行的 OLD/NEW 代码块时,使用变更模式。
node skills/gemini-cli/scripts/gemini-tool.mjs ask --changeMode --prompt "In @src/foo.ts, rename Foo to Bar and update call sites."
如果响应是分块的,输出会包含一个 cacheKey。获取下一个分块:
node skills/gemini-cli/scripts/gemini-tool.mjs fetch-chunk --cacheKey <key> --chunkIndex 2
OLD 代码块必须与文件内容完全匹配;否则,不要应用该编辑。每周安装数
98
仓库
GitHub 星标数
2
首次出现
2026年2月13日
安全审计
安装于
gemini-cli97
cursor96
codex95
github-copilot95
opencode95
amp94
Use Google’s gemini CLI as an external “second brain” when you need a very large context window, a second opinion, or safe sandbox execution. This skill does not use MCP; it runs the local CLI directly.
Use this skill when the user asks to:
@path references)gemini CLI is installed and configured (e.g. gemini --version works)-s/--sandbox (see gemini --help)gemini "Explain what this code does: @src/main.ts"
gemini -m gemini-3-pro-preview "..."
gemini -m gemini-3-flash-preview "..."
gemini -s "Safely test @scripts/example.py and explain the results."
This skill ships with a dependency-free wrapper that mirrors the core behavior of gemini-mcp-tool without MCP:
skills/gemini-cli/scripts/gemini-tool.mjs
Important: Gemini CLI can only read files under its current “project directory” (typically the process working directory). Run the wrapper from the repo you want Gemini to read, or pass --cwd.
node skills/gemini-cli/scripts/gemini-tool.mjs help
node skills/gemini-cli/scripts/gemini-tool.mjs ask --prompt "Summarize @. in 5 bullets."
node skills/gemini-cli/scripts/gemini-tool.mjs ask --cwd /path/to/project --prompt "Summarize @. in 5 bullets."
node skills/gemini-cli/scripts/gemini-tool.mjs ask --prompt "..." --model gemini-3-pro-preview
node skills/gemini-cli/scripts/gemini-tool.mjs ask --prompt "..." --sandbox
node skills/gemini-cli/scripts/gemini-tool.mjs brainstorm --prompt "How should we design onboarding?" --methodology scamper --ideaCount 12
Use change mode when you want Gemini to output deterministic OLD/NEW blocks that can be applied by exact string matching.
node skills/gemini-cli/scripts/gemini-tool.mjs ask --changeMode --prompt "In @src/foo.ts, rename Foo to Bar and update call sites."
If the response is chunked, the output includes a cacheKey. Fetch the next chunk:
node skills/gemini-cli/scripts/gemini-tool.mjs fetch-chunk --cacheKey <key> --chunkIndex 2
OLD block must match the file content exactly ; otherwise, do not apply the edit.Weekly Installs
98
Repository
GitHub Stars
2
First Seen
Feb 13, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
gemini-cli97
cursor96
codex95
github-copilot95
opencode95
amp94
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
66,200 周安装