From 2c5dbe15ba768e22d2a5bb9bba16222ca8ff9239 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sun, 7 Sep 2025 19:11:35 +0800 Subject: [PATCH] Enhance CLAUDE.md with Gemini triggering mechanism guidelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add semantic intent recognition for proactive Gemini invocation - Define clear triggering conditions for complex problem analysis - Include context requirements for cross-file analysis scenarios - Emphasize when to utilize Gemini for intelligent problem decomposition 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- CLAUDE.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 7db970d2..2767bab5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -57,9 +57,6 @@ This document defines project-specific coding standards and development principl ## Important Reminders **NEVER**: -- Use `--no-verify` to bypass commit hooks -- Disable tests instead of fixing them -- Commit code that doesn't compile - Make assumptions - verify with existing code **ALWAYS**: @@ -74,6 +71,20 @@ This document defines project-specific coding standards and development principl ## Gemini CLI Guidelines +### Triggering Mechanism +**IMPORTANT**: Actively recognize and respond to Gemini invocation needs: + +- **Semantic Intent Recognition**: When user input contains semantic meaning indicating the need to call Gemini (e.g., "analyze this with Gemini", "get context for this", "understand the codebase"), immediately follow the guidelines to invoke Gemini +- **Context Requirements**: When dealing with tasks that require broader context understanding or cross-file analysis, proactively call Gemini to obtain comprehensive context +- **Complex Problem Analysis**: When encountering complex problems that require deep analysis or multi-faceted understanding, utilize Gemini for intelligent problem decomposition and analysis + +### When to Trigger Gemini +1. User explicitly or implicitly requests Gemini assistance +2. Task requires understanding of multiple interconnected files +3. Problem complexity exceeds single-file scope +4. Need for intelligent context inference +5. Require comprehensive codebase analysis + For all Gemini CLI usage, command syntax, and integration guidelines: @~/.claude/workflows/gemini-cli-guidelines.md @~/.claude/workflows/gemini-intelligent-context.md \ No newline at end of file