mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
docs: Update README with accurate v1.0 features and reorganize Gemini commands
Major Changes: - Update README.md and README_CN.md to reflect v1.0 release instead of v2.0 - Add Gemini CLI integration highlights: dynamic template discovery, auto-selection - Correct command references from /gemini:pre:* to /gemini:mode:* - Add Smart Template Auto-Selection usage examples - Reorganize Gemini commands from /pre/ to /mode/ directory structure Documentation Improvements: - Replace v2.0 architecture claims with actual v1.0 achievements - Highlight 500+ lines of documentation streamlining - Add practical examples for new auto-selection template system - Maintain consistency between English and Chinese versions Command Structure Updates: - Move auto.md, bug-index.md, plan.md from /pre/ to /mode/ directory - Update gemini-unified.md path references - Ensure all command references are accurate and functional 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
---
|
||||
name: auto
|
||||
description: Auto-select and execute appropriate template based on user input analysis
|
||||
usage: /gemini:pre:auto "description of task or problem"
|
||||
usage: /gemini:mode:auto "description of task or problem"
|
||||
argument-hint: "description of what you want to analyze or plan"
|
||||
examples:
|
||||
- /gemini:pre:auto "authentication system keeps crashing during login"
|
||||
- /gemini:pre:auto "design a real-time notification architecture"
|
||||
- /gemini:pre:auto "database connection errors in production"
|
||||
- /gemini:pre:auto "plan user dashboard with analytics features"
|
||||
- /gemini:mode:auto "authentication system keeps crashing during login"
|
||||
- /gemini:mode:auto "design a real-time notification architecture"
|
||||
- /gemini:mode:auto "database connection errors in production"
|
||||
- /gemini:mode:auto "plan user dashboard with analytics features"
|
||||
allowed-tools: Bash(ls:*), Bash(gemini:*)
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Auto Template Selection (/gemini:pre:auto)
|
||||
# Auto Template Selection (/gemini:mode:auto)
|
||||
|
||||
## Overview
|
||||
Automatically analyzes user input to select the most appropriate template and execute Gemini CLI with optimal context.
|
||||
@@ -24,16 +24,16 @@ Automatically analyzes user input to select the most appropriate template and ex
|
||||
### Auto-Detection Examples
|
||||
```bash
|
||||
# Bug-related keywords → selects bug-fix.md
|
||||
/gemini:pre:auto "React component not rendering after state update"
|
||||
/gemini:mode:auto "React component not rendering after state update"
|
||||
|
||||
# Planning keywords → selects plan.md
|
||||
/gemini:pre:auto "design microservices architecture for user management"
|
||||
/gemini:mode:auto "design microservices architecture for user management"
|
||||
|
||||
# Error/crash keywords → selects bug-fix.md
|
||||
/gemini:pre:auto "API timeout errors in production environment"
|
||||
/gemini:mode:auto "API timeout errors in production environment"
|
||||
|
||||
# Architecture/design keywords → selects plan.md
|
||||
/gemini:pre:auto "implement real-time chat system architecture"
|
||||
/gemini:mode:auto "implement real-time chat system architecture"
|
||||
```
|
||||
|
||||
## Template Selection Logic
|
||||
@@ -140,14 +140,14 @@ User Input: [user_input]"
|
||||
### Manual Template Override
|
||||
```bash
|
||||
# Force specific template
|
||||
/gemini:pre:auto "user authentication" --template bug-fix.md
|
||||
/gemini:pre:auto "fix login issues" --template plan.md
|
||||
/gemini:mode:auto "user authentication" --template bug-fix.md
|
||||
/gemini:mode:auto "fix login issues" --template plan.md
|
||||
```
|
||||
|
||||
### Dynamic Template Listing
|
||||
```bash
|
||||
# List all dynamically discovered templates
|
||||
/gemini:pre:auto --list-templates
|
||||
/gemini:mode:auto --list-templates
|
||||
# Output:
|
||||
# Dynamically discovered templates in ~/.claude/prompt-templates/:
|
||||
# - bug-fix.md (用于定位bug并提供修改建议) [Keywords: 规划, bug, 修改方案]
|
||||
@@ -1,17 +1,17 @@
|
||||
---
|
||||
name: bug-index
|
||||
description: Bug analysis and fix suggestions using specialized template
|
||||
usage: /gemini:pre:bug-index "bug description"
|
||||
usage: /gemini:mode:bug-index "bug description"
|
||||
argument-hint: "description of the bug or error you're experiencing"
|
||||
examples:
|
||||
- /gemini:pre:bug-index "authentication null pointer error in login flow"
|
||||
- /gemini:pre:bug-index "React component not re-rendering after state change"
|
||||
- /gemini:pre:bug-index "database connection timeout in production"
|
||||
- /gemini:mode:bug-index "authentication null pointer error in login flow"
|
||||
- /gemini:mode:bug-index "React component not re-rendering after state change"
|
||||
- /gemini:mode:bug-index "database connection timeout in production"
|
||||
allowed-tools: Bash(gemini:*)
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Bug Analysis Command (/gemini:pre:bug-index)
|
||||
# Bug Analysis Command (/gemini:mode:bug-index)
|
||||
|
||||
## Overview
|
||||
Systematic bug analysis and fix suggestions using expert diagnostic template.
|
||||
@@ -20,17 +20,17 @@ Systematic bug analysis and fix suggestions using expert diagnostic template.
|
||||
|
||||
### Basic Bug Analysis
|
||||
```bash
|
||||
/gemini:pre:bug-index "authentication error during login"
|
||||
/gemini:mode:bug-index "authentication error during login"
|
||||
```
|
||||
|
||||
### With All Files Context
|
||||
```bash
|
||||
/gemini:pre:bug-index "React state not updating" --all-files
|
||||
/gemini:mode:bug-index "React state not updating" --all-files
|
||||
```
|
||||
|
||||
### Save to Workflow Session
|
||||
```bash
|
||||
/gemini:pre:bug-index "API timeout issues" --save-session
|
||||
/gemini:mode:bug-index "API timeout issues" --save-session
|
||||
```
|
||||
|
||||
## Command Execution
|
||||
@@ -1,17 +1,17 @@
|
||||
---
|
||||
name: plan
|
||||
description: Project planning and architecture analysis using specialized template
|
||||
usage: /gemini:pre:plan "planning topic"
|
||||
usage: /gemini:mode:plan "planning topic"
|
||||
argument-hint: "planning topic or architectural challenge to analyze"
|
||||
examples:
|
||||
- /gemini:pre:plan "design user dashboard feature architecture"
|
||||
- /gemini:pre:plan "plan microservices migration strategy"
|
||||
- /gemini:pre:plan "implement real-time notification system"
|
||||
- /gemini:mode:plan "design user dashboard feature architecture"
|
||||
- /gemini:mode:plan "plan microservices migration strategy"
|
||||
- /gemini:mode:plan "implement real-time notification system"
|
||||
allowed-tools: Bash(gemini:*)
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Planning Analysis Command (/gemini:pre:plan)
|
||||
# Planning Analysis Command (/gemini:mode:plan)
|
||||
|
||||
## Overview
|
||||
Comprehensive project planning and architecture analysis using expert planning template.
|
||||
@@ -20,17 +20,17 @@ Comprehensive project planning and architecture analysis using expert planning t
|
||||
|
||||
### Basic Planning Analysis
|
||||
```bash
|
||||
/gemini:pre:plan "design authentication system"
|
||||
/gemini:mode:plan "design authentication system"
|
||||
```
|
||||
|
||||
### With All Files Context
|
||||
```bash
|
||||
/gemini:pre:plan "microservices migration" --all-files
|
||||
/gemini:mode:plan "microservices migration" --all-files
|
||||
```
|
||||
|
||||
### Save to Workflow Session
|
||||
```bash
|
||||
/gemini:pre:plan "real-time notifications" --save-session
|
||||
/gemini:mode:plan "real-time notifications" --save-session
|
||||
```
|
||||
|
||||
## Command Execution
|
||||
@@ -113,7 +113,7 @@ FUNCTION analyze_and_run_gemini(analysis_type):
|
||||
|
||||
// Step 3: Construct and execute the gemini command.
|
||||
// Always include project standards from CLAUDE.md.
|
||||
// Uses a pre-defined analysis template for consistency.
|
||||
// Uses a mode-defined analysis template for consistency.
|
||||
command = "gemini -p \"" + patterns + " @{CLAUDE.md} $(cat ~/.claude/workflows/gemini-templates/prompts/analysis/pattern.txt)\""
|
||||
execute_shell(command)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user