♊️ gemini-file — gemini-file工具
v1.0.0[AI辅助] Gemini CLI for one-shot Q&A, summaries, and generation.
详细分析 ▾
运行时依赖
版本
Initial release of gemini-file skill integrating Gemini CLI with file-output support. - Supports one-shot prompts, summary, Q&A, and generation via Gemini CLI. - New file-output mode using `gemini_file_runner.py` script for large content or explicit file output requests. - Always returns absolute file path in JSON when using file-output mode; optionally includes file content. - Default model is `gemini-3-flash-preview`, recommended for large or complex tasks (e.g. video parsing). - Includes extension management commands and usage notes.
安装命令 点击复制
技能文档
Use Gemini in one-shot mode with a positional prompt (avoid interactive mode).
Quick start
gemini "Answer question..."gemini --模型"Prompt..." gemini --输出-格式 json "Return JSON"
File-output mode (for large token or explicit file return)
- 当...时 content large (e.g. long article/story/举报) 或 用户 explicitly asks 对于 file 输出, 使用:
python3 /Users/shichen/skills/gemini/gemini_file_runner.py --prompt "" - 默认 模型:
gemini-3-flash-预览 - 对于 video parsing 带有 large content (long video, dense transcripts, many segments), prefer
gemini-3-flash-预览第一个. - Script behavior:
outputs/ 在...中 skill directory.
- Always returns file_path (absolute path) 在...中 JSON.
- Optionally returns content 当...时 --include-content provided.
- 可选 args:
--模型
- --输出-格式 text|json
- --输出-file
- --输出-dir
- --include-contentRequired response contract for this mode
- 必须 include absolute file path 从 script JSON:
file_path - Content 在...中 响应 可选 和 controlled 由
--include-content
Example
- 用户 请求:
使用 gemini 模型写 1000 字小说并输出文件给我 - Command:
python3 /Users/shichen/skills/gemini/gemini_file_runner.py --prompt "写一篇约 1000 字中文小说,主题是..." --输出-file novel-1000-words.txt
- Expected JSON stdout:
{"ok":真,"file_path":"/Users/shichen/skills/gemini/outputs/novel-1000-words.txt"}Video parsing example (large content)
- 用户 请求:
请解析这个长视频并输出文件 - Command:
python3 /Users/shichen/skills/gemini/gemini_file_runner.py --模型 gemini-3-flash-预览 --prompt "解析视频内容并输出结构化总结..." --输出-file video-analysis.txtExtensions
- 列表:
gemini --列表-extensions - Manage:
gemini extensions
Notes
- 如果 auth 必填, run
geminionce interactively 和 关注 登录 flow. - Avoid
--yolo对于 safety.
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制