From da717546f887800efad17ddb8d4e25f136fd65af Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 8 Sep 2025 13:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20`gemini-chat`=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=BB=A5=E4=BD=BF=E7=94=A8=E6=96=B0=E7=9A=84=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=8A=A0=E8=BD=BD=E8=84=9A=E6=9C=AC=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=97=E8=A1=A8=E5=92=8C?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/commands/gemini-chat.md | 8 ++++---- .../{gemini-chat-executor.sh => chat-template-load.sh} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename .claude/scripts/{gemini-chat-executor.sh => chat-template-load.sh} (96%) diff --git a/.claude/commands/gemini-chat.md b/.claude/commands/gemini-chat.md index 3c9c1ccc..0d7c476b 100644 --- a/.claude/commands/gemini-chat.md +++ b/.claude/commands/gemini-chat.md @@ -8,7 +8,7 @@ examples: - /gemini-chat "how can I optimize this React component performance?" --all-files - /gemini-chat "review security vulnerabilities in @{src/auth/*.js}" --compress - /gemini-chat "comprehensive code quality assessment" --all-files --save-session -allowed-tools: Bash(gemini:*), Bash(~/.claude/scripts/gemini-chat-executor.sh:*) +allowed-tools: Bash(gemini:*), Bash(~/.claude/scripts/chat-template-load.sh:*) model: sonnet --- @@ -19,7 +19,7 @@ model: sonnet - **Purpose**: To provide direct interaction with the `gemini` CLI, enhanced with intelligent, dynamic prompt template selection for codebase analysis. - **Core Tools**: - `Bash(gemini:*)`: Executes the external Gemini CLI tool. - - `Bash(~/.claude/scripts/gemini-chat-executor.sh:*)`: Manages all template discovery and selection logic. + - `Bash(~/.claude/scripts/chat-template-load.sh:*)`: Manages all template discovery and selection logic. ### 📥 **Parameters & Usage** @@ -40,8 +40,8 @@ model: sonnet ⚠️ **CRITICAL**: Templates are selected **AUTOMATICALLY** by analyzing user input. The command execution calls script methods to discover and select the best template. **Script Methods Available:** -- `~/.claude/scripts/gemini-chat-executor.sh list` - Lists all available templates -- `~/.claude/scripts/gemini-chat-executor.sh load "template_name"` - Loads a specific template +- `~/.claude/scripts/chat-template-load.sh list` - Lists all available templates +- `~/.claude/scripts/chat-template-load.sh load "template_name"` - Loads a specific template ```pseudo FUNCTION automatic_template_selection(user_inquiry): diff --git a/.claude/scripts/gemini-chat-executor.sh b/.claude/scripts/chat-template-load.sh similarity index 96% rename from .claude/scripts/gemini-chat-executor.sh rename to .claude/scripts/chat-template-load.sh index a23986d3..32c61865 100644 --- a/.claude/scripts/gemini-chat-executor.sh +++ b/.claude/scripts/chat-template-load.sh @@ -1,6 +1,6 @@ #!/bin/bash # Gemini Chat Template Accessor - Template content access utility -# Usage: ./gemini-chat-executor.sh list|load +# Usage: ./chat-template-load.sh list|load set -e