Files
Claude-Code-Workflow/.claude/scripts/gemini-chat-executor.sh
catlog22 445ac823ba Initial release: Claude Code Workflow (CCW) v2.0
🚀 Revolutionary AI-powered development workflow orchestration system

## 🔥 Core Innovations
- **Document-State Separation**: Markdown for planning, JSON for execution state
- **Progressive Complexity Management**: Level 0-2 adaptive workflow depth
- **5-Agent Orchestration**: Specialized AI agents with context preservation
- **Session-First Architecture**: Auto-discovery and state inheritance

## 🏗️ Key Features
- Intelligent workflow orchestration (Simple/Medium/Complex patterns)
- Real-time document-state synchronization with conflict resolution
- Hierarchical task management with 3-level JSON structure
- Gemini CLI integration with 12+ specialized templates
- Comprehensive file output generation for all workflow commands

## 📦 Installation
Remote one-liner installation:
```
iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-CCW/main/install-remote.ps1)
```

## 🎯 System Architecture
4-layer intelligent development architecture:
1. Command Layer - Smart routing and version management
2. Agent Layer - 5 specialized development agents
3. Workflow Layer - Gemini templates and task orchestration
4. Memory Layer - Distributed documentation and auto-sync

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-07 17:39:54 +08:00

66 lines
1.8 KiB
Bash

#!/bin/bash
# Gemini Chat Template Accessor - Template content access utility
# Usage: ./gemini-chat-executor.sh list|load <template-name>
set -e
# Configuration
CLAUDE_DIR="$HOME/.claude"
TEMPLATES_DIR="$CLAUDE_DIR/prompt-templates"
# Parse command line arguments
COMMAND="$1"
TEMPLATE_NAME="$2"
# Function to list available templates
list_templates() {
echo "Available templates:"
echo "===================="
for template_file in "$TEMPLATES_DIR"/*.md; do
if [[ -f "$template_file" ]]; then
local name=$(basename "$template_file" .md)
if [[ "$name" != "README" ]]; then
local desc=$(grep "description:" "$template_file" | cut -d':' -f2- | sed 's/^ *//')
printf "%-20s %s\n" "$name" "$desc"
fi
fi
done
echo ""
}
# Function to load template
load_template() {
local template_name="$1"
local template_file="$TEMPLATES_DIR/$template_name.md"
if [[ -f "$template_file" ]]; then
cat "$template_file"
return 0
else
echo "Error: Template file not found: $template_file" >&2
return 1
fi
}
# Main execution
case "$COMMAND" in
"list")
list_templates
;;
"load")
if [[ -z "$TEMPLATE_NAME" ]]; then
echo "Error: Template name is required for load command" >&2
echo "Usage: $0 load <template-name>" >&2
exit 1
fi
load_template "$TEMPLATE_NAME"
;;
*)
echo "Error: Unknown command: $COMMAND" >&2
echo "Usage: $0 {list|load} [template-name]" >&2
echo "Commands:" >&2
echo " list - List available templates" >&2
echo " load <name> - Load template content" >&2
exit 1
;;
esac