gemini-file
/install gemini-file
Gemini CLI
Use Gemini in one-shot mode with a positional prompt (avoid interactive mode).
Quick start
gemini "Answer this question..."gemini --model \x3Cname> "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 "\x3Cprompt>"- Default model:
gemini-3-flash-preview - For video parsing with large content (long video, dense transcripts, many segments), prefer
gemini-3-flash-previewfirst. - 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
contentwhen--include-contentis provided.
- Always saves Gemini output to a file under
- Optional args:
--model \x3Cmodel_name>--output-format text|json--output-file \x3Cfilename>--output-dir \x3Cdir>--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 \x3Ccommand>
Notes
- If auth is required, run
geminionce interactively and follow the login flow. - Avoid
--yolofor safety.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gemini-file - After installation, invoke the skill by name or use
/gemini-file - Provide required inputs per the skill's parameter spec and get structured output
What is gemini-file?
Gemini CLI for one-shot Q&A, summaries, and generation. It is an AI Agent Skill for Claude Code / OpenClaw, with 354 downloads so far.
How do I install gemini-file?
Run "/install gemini-file" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is gemini-file free?
Yes, gemini-file is completely free (open-source). You can download, install and use it at no cost.
Which platforms does gemini-file support?
gemini-file is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created gemini-file?
It is built and maintained by chenbaiyujason (@chenbaiyujason); the current version is v1.0.0.