gemini

Gemini CLI for one-shot Q&A, summaries, and generation.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gemini" with this command: npx skills add chenbaiyujason/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 <name> "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 "<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 <model_name>
    • --output-format text|json
    • --output-file <filename>
    • --output-dir <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 <command>

Notes

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Etsy Digital Sales

Build and manage a fully automated Etsy digital product store using Python + browser automation. Lists AI-generated digital products (Notion templates, sprea...

Registry SourceRecently Updated
Coding

Johnson And Johnson Pharma

Johnson & Johnson is a global healthcare leader focused on innovative pharmaceuticals and medical devices with over 130 years of trusted expertise.

Registry SourceRecently Updated
Coding

Song Creation

Multi-agent song creation workflow using 拾光's agent architecture (writer → musician → programmer). Use when the user says '创作一首歌', '写一首歌', '做首歌', '写首歌', '创作一...

Registry SourceRecently Updated
Coding

Time

LLM time reasoning scaffold with a bundled Node.js CLI.

Registry SourceRecently Updated
9752ikana