一键导入
gemini-cli
Run Google Gemini CLI for autonomous coding and general tasks via headless mode with chat-friendly outputs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Google Gemini CLI for autonomous coding and general tasks via headless mode with chat-friendly outputs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run OpenAI Codex CLI for autonomous software engineering tasks via non-interactive `codex exec` with chat-friendly outputs.
Use the Cursor CLI (agent) for software engineering tasks. Includes installation, auth, commands, terminal-based automation, and best practices for AI coding workflows.
GitHub operations via gh CLI — list issues, create branches, create PRs, clone repos.
Search, read, send, and manage Gmail emails via Google API
Interact with Railway deployments — check status, view logs, redeploy services, and manage environment variables.
Query system resources — CPU, memory, disk, processes, and network interfaces.
| name | gemini-cli |
| version | 1.0.0 |
| description | Run Google Gemini CLI for autonomous coding and general tasks via headless mode with chat-friendly outputs. |
Run Google Gemini CLI (gemini) from Viber for autonomous coding and general tasks. This skill uses headless mode (gemini -p "<prompt>"), which works reliably from Node/AI SDK tool calls and web UI chat workflows.
Install Gemini CLI globally:
pnpm add -g @google/gemini-cli
Then authenticate (one of):
# Browser-based login (interactive)
gemini
# Or set API key for headless environments
export GEMINI_API_KEY=your-key-here
gemini_run — Runs Gemini CLI with a prompt, returns:
summary (status, cwd, mode, exit code)stdoutTail and stderrTail (chat-friendly tail output)output (truncated combined output for deeper follow-up)ok, summary, error, exitCode, command) for robust assistant follow-up.prompt (required): task for Geminicwd (optional): target working directory (must exist)waitSeconds (optional): timeout in seconds (default 120, minimum 10)approvalMode (optional):
yolo (default): --yolo — auto-approve all actionsdefault: normal interactive mode (no special flags)model (optional): override model (e.g. gemini-2.5-pro, gemini-2.5-flash)outputFormat (optional): text (default) or json for structured outputUse this skill when user intent is:
Examples:
gemini_run({
prompt: "Fix failing tests in src/skills/gemini-cli.test.ts",
cwd: "/workspace/openviber",
approvalMode: "yolo",
})
gemini_run({
prompt: "Review this repo and suggest improvements",
approvalMode: "default",
waitSeconds: 180,
model: "gemini-2.5-pro",
})
After calling gemini_run:
summary first.stdoutTail / stderrTail.error + command to explain next action.approvalMode, model, or cwd.Gemini CLI supports multiple auth methods:
GEMINI_API_KEY env var — best for headless/CI environmentsIf you have a Google Ultra subscription, Gemini CLI will use your subscription's quota automatically when authenticated via Google account.