Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计提醒

gemini-chatGemini 聊天

Agent Skill

gemini-chat 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

474

周安装

19

GitHub Stars

9

下载量

154
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-chat(Gemini 聊天)
来源仓库:https://github.com/adaptationio/skrillz
仓库路径:skills/gemini-chat
安装命令:
npx skills add https://github.com/adaptationio/skrillz --skill gemini-chat
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/adaptationio/skrillz --skill gemini-chat

简介

gemini-chat 支持交互式对话,集成 Google Gemini 模型,具备上下文管理和会话持久化能力。

  • 适合用于复杂多步任务、代码重构或多模态内容处理场景。
  • 支持实时切换 YOLO 模式以启用自动批准和执行,提升自动化程度。
  • 可通过命令行启动会话,并可选择包含特定目录或启用检查点机制。
  • 需注意 OAuth 认证流程及网络依赖,确保 API 密钥或账户权限有效。

SKILL.md

Gemini Interactive Chat

Advanced interactive chat workflows with Gemini CLI, featuring context management, multimodal support, and session persistence.

Quick Start

# Start interactive chat
gemini -i "Let's work on my project"

# Start with specific context
gemini --include-directories ./src -i "Help me refactor this code"

# Start with checkpointing and YOLO mode (toggle in session)
gemini --checkpointing -i "Complex multi-step task"

YOLO Mode in Interactive Sessions

YOLO mode can be toggled during interactive sessions for automated execution:

# In interactive mode:
# Ctrl+Y              # Toggle YOLO mode on/off
# /yolo on            # Enable auto-approval
# /yolo off           # Disable auto-approval

# Start with YOLO already enabled (for automation)
gemini --yolo -i "Set up complete development environment automatically"

# Mixed mode workflow
gemini -i "Let's plan first, then execute with YOLO"
# Plan manually, then: Ctrl+Y to enable YOLO for execution

When to use YOLO in chat:

  • ✅ File operations (create, edit, organize)
  • ✅ Batch processing tasks
  • ✅ Project setup and configuration
  • ✅ Documentation generation
  • ❌ Complex system changes (review first)
  • ❌ Unknown/experimental commands

Interactive Commands

Essential Commands

/help              # Show all available commands
/tools             # List available tools
/mcp               # Show MCP server status
/compress          # Compress conversation context
/copy              # Copy last response
/clear             # Clear screen and context
/checkpoint        # Save current state
/restore           # Restore previous state
/exit              # End session

Context Management

# In chat, reference files
@./src/main.js     # Include file in context
@./docs/           # Include entire directory
@https://example.com  # Include web page

# Include images
@./diagram.png     # Add image to conversation
Ctrl+V             # Paste image from clipboard

# Context commands
/compress          # Summarize long conversation
/clear context     # Clear context, keep chat
/show context      # Display current context

Chat Workflows

Code Review Session

#!/bin/bash
# Interactive code review

start_code_review() {
  local project_dir="${1:-.}"

  gemini \
    --include-directories "$project_dir/src" \
    --exclude-directories node_modules,.git \
    --checkpointing \
    -i "Let's do a code review. Start by giving me an overview of the codebase structure."
}

# Usage
start_code_review ./my-project

Brainstorming Session

#!/bin/bash
# Creative brainstorming with saves

brainstorm_session() {
  local topic="$1"
  local session_name="brainstorm-$(date +%Y%m%d-%H%M%S)"

  # Create session directory
  mkdir -p ~/.gemini/sessions/$session_name

  # Start session with logging
  gemini \
    --checkpointing \
    --log ~/.gemini/sessions/$session_name/chat.log \
    -i "Let's brainstorm about: $topic

Please help me:
    1. Generate creative ideas
    2. Evaluate feasibility
    3. Identify challenges
    4. Suggest next steps"

  # Save final summary with YOLO
  gemini --yolo -p "Summarize our brainstorming session and create actionable next steps" \
    > ~/.gemini/sessions/$session_name/summary.md

  echo "Session saved to ~/.gemini/sessions/$session_name/"
}

# Automated brainstorming with YOLO
automated_brainstorm() {
  local topic="$1"
  local session_name="auto-brainstorm-$(date +%Y%m%d-%H%M%S)"

  mkdir -p ~/.gemini/sessions/$session_name

  # Fully automated brainstorming session
  gemini --yolo --checkpointing \
    -i "Automated brainstorming session for: $topic

Execute this workflow automatically:
1. Generate 10 creative ideas
2. Evaluate each for feasibility (1-10 scale)
3. Identify top 3 ideas with rationale
4. Create implementation roadmap for top idea
5. List potential challenges and solutions
6. Generate final summary document

Save all outputs to organized files."
}

Learning Session

#!/bin/bash
# Interactive learning with examples

learn_with_gemini() {
  local subject="$1"

  gemini \
    --yolo \
    -i "I want to learn about $subject.

    Please:
    1. Start with fundamentals
    2. Provide examples
    3. Create exercises
    4. Check my understanding
    5. Suggest resources

    Let's begin!"
}

Advanced Features

Session Management

#!/bin/bash
# Save and resume sessions

# Save session
save_session() {
  local name="${1:-session}"
  gemini checkpoint save "$name"
  echo "Session saved as: $name"
}

# List sessions
list_sessions() {
  gemini checkpoint list
}

# Resume session
resume_session() {
  local name="$1"
  gemini checkpoint restore "$name"
  gemini -i "Let's continue where we left off"
}

# Delete old sessions
cleanup_sessions() {
  local days_old="${1:-7}"
  find ~/.gemini/checkpoints -mtime +$days_old -delete
  echo "Cleaned up sessions older than $days_old days"
}

Multi-Modal Conversations

#!/bin/bash
# Work with images and text

analyze_designs() {
  local design_dir="$1"

  gemini -i "Let's review UI designs"

  # In the chat:
  # @./designs/homepage.png
  # @./designs/dashboard.png
  # "Compare these designs and suggest improvements"
}

# Screenshot analysis
analyze_screenshot() {
  # Take screenshot (macOS)
  screencapture -i /tmp/screenshot.png

  # Or Linux
  # import /tmp/screenshot.png

  gemini -p "Analyze this screenshot: @/tmp/screenshot.png"
}

Context Optimization

#!/bin/bash
# Manage context efficiently

optimized_chat() {
  local max_context="${1:-50000}"  # tokens

  # Monitor context size
  while true; do
    context_size=$(gemini context size)

    if [ $context_size -gt $max_context ]; then
      echo "Context limit approaching. Compressing..."
      gemini /compress
    fi

    # Continue chat
    gemini -i "Continue"
  done
}

# Selective context
focused_chat() {
  local focus_dir="$1"
  local task="$2"

  # Start with minimal context
  gemini \
    --include-directories "$focus_dir" \
    --max-depth 1 \
    -i "Focus only on: $task"
}

Prompt Engineering

Structured Prompts

# Engineering prompt
gemini -i "You are a senior software engineer.

Context:
- Language: Python
- Framework: FastAPI
- Database: PostgreSQL

Task: Help me design a scalable API

Constraints:
- Must handle 10k requests/second
- Must have <100ms response time
- Must be maintainable

Let's start with the architecture."

Role-Based Sessions

#!/bin/bash
# Different personas for different tasks

start_role_session() {
  local role="$1"

  case $role in
    architect)
      PROMPT="You are a solutions architect. Focus on system design, scalability, and best practices."
      ;;
    reviewer)
      PROMPT="You are a code reviewer. Focus on bugs, security issues, and code quality."
      ;;
    teacher)
      PROMPT="You are a patient teacher. Explain concepts simply with examples."
      ;;
    debugger)
      PROMPT="You are a debugging expert. Focus on finding and fixing issues systematically."
      ;;
    *)
      PROMPT="You are a helpful AI assistant."
      ;;
  esac

  gemini -i "$PROMPT

  How can I help you today?"
}

Automation Scripts

Daily Standup

#!/bin/bash
# Automated daily standup

daily_standup() {
  local git_log=$(git log --oneline -5)
  local todos=$(cat TODO.md 2>/dev/null || echo "No TODO file")

  gemini -p "Based on recent commits and TODOs, generate a standup update:

  Recent commits:
  $git_log

  TODOs:
  $todos

  Format:
  - What I did yesterday
  - What I'm doing today
  - Any blockers"
}

Continuous Learning

#!/bin/bash
# Learn from codebase changes

learn_from_changes() {
  local since="${1:-1 week ago}"

  # Get changes
  local changes=$(git diff --stat "@{$since}")
  local new_files=$(git ls-files --others --exclude-standard)

  gemini --yolo -i "Analyze these recent changes and teach me:

  Changes since $since:
  $changes

  New files:
  $new_files

  Please:
  1. Explain what was changed and why
  2. Identify patterns and best practices
  3. Suggest improvements
  4. Generate documentation for changes
  5. Create knowledge summary document
  6. Quiz me on the concepts"
}

# Automated development workflow session
auto_dev_workflow() {
  local task="$1"

  gemini --yolo --checkpointing -i "Automated development workflow: $task

Execute this complete development cycle:
1. Analyze current codebase and requirements
2. Create detailed implementation plan
3. Generate all necessary code files
4. Write comprehensive tests
5. Create documentation
6. Set up CI/CD integration
7. Generate deployment scripts
8. Create progress report

Work autonomously and save all outputs."
}

Integration Patterns

Vim Integration

" .vimrc
" Send selection to Gemini
vnoremap <leader>g :w !gemini -p "Explain this code: $(cat)"<CR>

" Get suggestions
nnoremap <leader>G :r !gemini -p "Improve this function: $(cat %:p)"<CR>

" Interactive help
nnoremap <leader>? :terminal gemini -i "Help with vim and %:t"<CR>

VS Code Integration

# Connect Gemini to VS Code
gemini /ide install
gemini /ide enable

# Now Gemini can see your VS Code context
gemini -i "Help me with the file I have open in VS Code"

Tmux Workflow

#!/bin/bash
# Split-screen coding with Gemini

gemini_tmux() {
  tmux new-session -d -s gemini-coding

  # Main coding pane
  tmux send-keys -t gemini-coding "vim" C-m

  # Gemini chat pane
  tmux split-window -h -t gemini-coding
  tmux send-keys -t gemini-coding "gemini -i 'Help me code'" C-m

  # File tree pane
  tmux split-window -v -t gemini-coding
  tmux send-keys -t gemini-coding "watch -n 2 'tree -L 2'" C-m

  # Attach to session
  tmux attach -t gemini-coding
}

Best Practices

Effective Prompting

  1. Be Specific # Bad "Help me with code" # Good "Help me refactor this authentication module to use JWT tokens"
  2. Provide Context # Include relevant files gemini --include-directories./src/auth,./tests/auth
  3. Set Constraints "Explain in simple terms, with examples, max 100 lines"

Session Hygiene

  1. Regular Compression # Compress every 30 minutes /compress
  2. Save Important Sessions /checkpoint
  3. Clear Irrelevant Context /clear context

Troubleshooting

Common Issues

  1. Slow Responses

- Compress context: /compress - Use faster model: gemini -m gemini-2.5-flash - Reduce included directories

  1. Lost Context

- Check checkpoints: /restore - Review history: ~/.gemini/history

  1. Tool Errors

- Check available tools: /tools - Verify permissions: ls -la

Related Skills

  • gemini-cli: Main Gemini CLI integration
  • gemini-auth: Authentication management
  • gemini-tools: Tool execution workflows
  • gemini-mcp: MCP server management

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

github-copilot

30.63%
按下载量换算47

Claude Code

21.86%
按下载量换算34

mcpjam

18.3%
按下载量换算28

moltbot

12.84%
按下载量换算20

windsurf

7.71%
按下载量换算12

zencoder

3.25%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills