AgentSkillsCN

gemini

Gemini CLI 适用于一次性问答、摘要生成与内容创作。与 NotebookLM 集成,助力深度研究。当用户需要搜索网络、研究主题、生成内容,或向 NotebookLM 来源提问时,可使用此功能。

SKILL.md
--- frontmatter
name: gemini
description: Gemini CLI for one-shot Q&A, summaries, and generation. Integrates with NotebookLM for deep research. Use when asked to search the web, research topics, generate content, or query NotebookLM sources.

Gemini Skill

Overview

Use Google Gemini subscription for all AI and web search needs. No separate API keys required - uses your Google account.

Primary Tool: gemini CLI

The official Gemini CLI is installed at /opt/homebrew/bin/gemini.

Web Search (One-Shot)

bash
gemini "What is the weather forecast for King, NC?"
gemini "Latest news about Epic EHR"
gemini "Research competitive landscape for X"

JSON Output (for scripting)

bash
gemini "your query" --output-format json

Interactive Mode

bash
gemini -i "Start researching topic X"

NotebookLM Integration

For deep research with source synthesis:

bash
# Quick search (~30s)
nlm research start "your query" --notebook-id <id>

# Deep research (~5min)
nlm research start "your query" --notebook-id <id> --mode deep

# Query synthesized sources
nlm notebook query <id> "your question"

When to Use What

TaskTool
Quick web searchgemini "query"
One-shot Q&Agemini "question"
Deep research with sourcesnlm research start --mode deep
Query documents/sourcesnlm notebook query
Generate podcastnlm audio create

No API Keys Needed

Your Gemini subscription handles:

  • Web search
  • Text generation
  • NotebookLM features
  • All Gemini models

Do NOT use:

  • Brave Search API (unnecessary cost)
  • Separate Gemini API keys
  • Other web search services

Authentication

Both tools use your Google account:

  • gemini: Auto-authenticates via cached credentials
  • nlm: Requires nlm login (browser-based, ~20 min sessions)

Files

  • System CLI: /opt/homebrew/bin/gemini
  • NotebookLM CLI: /opt/homebrew/bin/nlm
  • Custom wrapper: skills/gemini/gemini_cli.py (optional, wraps both)