← 返回
开发者工具 中文

gemini-file

Gemini CLI for one-shot Q&A, summaries, and generation.
Gemini CLI:一键问答、摘要与生成
chenbaiyujason
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 693
下载
💾 28
安装
1
版本
#latest

概述

Gemini CLI

Use Gemini in one-shot mode with a positional prompt (avoid interactive mode).

Quick start

  • gemini "Answer this question..."
  • gemini --model "Prompt..."
  • gemini --output-format json "Return JSON"

File-output mode (for large token or explicit file return)

  • When content is large (e.g. long article/story/report) or user explicitly asks for file output, use:
  • python3 /Users/shichen/skills/gemini/gemini_file_runner.py --prompt ""
  • Default model: gemini-3-flash-preview
  • For video parsing with large content (long video, dense transcripts, many segments), prefer gemini-3-flash-preview first.
  • Script behavior:
  • Always saves Gemini output to a file under outputs/ in this skill directory.
  • Always returns file_path (absolute path) in JSON.
  • Optionally returns content when --include-content is provided.
  • Optional args:
  • --model
  • --output-format text|json
  • --output-file
  • --output-dir
  • --include-content

Required response contract for this mode

  • Must include absolute file path from script JSON: file_path
  • Content in response is optional and controlled by --include-content

Example

  • User request: 使用 gemini 模型写 1000 字小说并输出文件给我
  • Command:
  • python3 /Users/shichen/skills/gemini/gemini_file_runner.py --prompt "写一篇约 1000 字中文小说,主题是..." --output-file novel-1000-words.txt
  • Expected JSON stdout:
  • {"ok":true,"file_path":"/Users/shichen/skills/gemini/outputs/novel-1000-words.txt"}

Video parsing example (large content)

  • User request: 请解析这个长视频并输出文件
  • Command:
  • python3 /Users/shichen/skills/gemini/gemini_file_runner.py --model gemini-3-flash-preview --prompt "解析视频内容并输出结构化总结..." --output-file video-analysis.txt

Extensions

  • List: gemini --list-extensions
  • Manage: gemini extensions

Notes

  • If auth is required, run gemini once interactively and follow the login flow.
  • Avoid --yolo for safety.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 14:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,146
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,794
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,193