mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
✨ Features: - New /cli:codex-execute command for automated multi-step task execution - Codex resume mechanism (codex exec "..." resume --last) for context continuity - TodoWrite progress tracking for subtask execution - Optional Git verification after each subtask (--verify-git flag) - Automatic task JSON detection and loading - Enhanced Codex agent configuration (.codex/AGENTS.md v2.1.0) 📚 Documentation: - Streamlined CLI documentation (60% reduction in redundancy) - Updated /cli:analyze, /cli:chat, /cli:execute commands - Enhanced intelligent-tools-strategy.md with Codex resume patterns - Unified command templates for Gemini/Qwen vs Codex - Added Codex -i parameter documentation for image attachment 🔧 Technical: - Multi-task prompt format (Single-Task & Multi-Task) - Subtask coordination guidelines and best practices - Enhanced MODE: auto with subtask execution flow - Progress reporting for multi-step workflows 📦 Updates: - Version bumped to 3.3.0 in README.md, README_CN.md - Created .claude/version.json for version tracking - Comprehensive CHANGELOG.md entry with all changes 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
85 lines
2.5 KiB
Markdown
85 lines
2.5 KiB
Markdown
---
|
|
name: analyze
|
|
description: Quick codebase analysis using CLI tools (codex/gemini/qwen)
|
|
usage: /cli:analyze [--tool <codex|gemini|qwen>] [--enhance] <analysis-target>
|
|
argument-hint: "[--tool codex|gemini|qwen] [--enhance] analysis target"
|
|
examples:
|
|
- /cli:analyze "authentication patterns"
|
|
- /cli:analyze --tool qwen "API security"
|
|
- /cli:analyze --tool codex --enhance "performance bottlenecks"
|
|
allowed-tools: SlashCommand(*), Bash(*), TodoWrite(*), Read(*), Glob(*)
|
|
---
|
|
|
|
# CLI Analyze Command (/cli:analyze)
|
|
|
|
## Purpose
|
|
|
|
Execute CLI tool analysis on codebase patterns, architecture, or code quality.
|
|
|
|
**Supported Tools**: codex, gemini (default), qwen
|
|
**Reference**: @~/.claude/workflows/intelligent-tools-strategy.md for complete tool details
|
|
|
|
## Execution Flow
|
|
|
|
1. Parse tool selection (default: gemini)
|
|
2. If `--enhance`: Execute `/enhance-prompt` first
|
|
3. Detect analysis type and select template
|
|
4. Build and execute command
|
|
5. Return results
|
|
|
|
## Enhancement Integration
|
|
|
|
**When `--enhance` flag present**: Execute `/enhance-prompt "[analysis-target]"` first, then use enhanced output (INTENT/CONTEXT/ACTION) to build the analysis command.
|
|
|
|
|
|
## Command Template
|
|
|
|
**Gemini/Qwen**:
|
|
```bash
|
|
cd [dir] && ~/.claude/scripts/[gemini|qwen]-wrapper -p "
|
|
PURPOSE: [analysis goal]
|
|
TASK: [specific task]
|
|
CONTEXT: @{[file-patterns]} @{CLAUDE.md}
|
|
EXPECTED: [output format]
|
|
RULES: $(cat ~/.claude/workflows/cli-templates/prompts/[category]/[template].txt) | [constraints]
|
|
"
|
|
```
|
|
|
|
**Codex**:
|
|
```bash
|
|
codex -C [dir] --full-auto exec "
|
|
PURPOSE: [analysis goal]
|
|
TASK: [specific task]
|
|
CONTEXT: @{[file-patterns]} @{CLAUDE.md}
|
|
EXPECTED: [output format]
|
|
RULES: [constraints]
|
|
" --skip-git-repo-check -s danger-full-access
|
|
|
|
# With image attachment (e.g., UI screenshots, diagrams)
|
|
codex -C [dir] -i screenshot.png --full-auto exec "..." --skip-git-repo-check -s danger-full-access
|
|
```
|
|
|
|
## Examples
|
|
|
|
```bash
|
|
/cli:analyze "authentication patterns" # Gemini (default)
|
|
/cli:analyze --tool qwen "component architecture" # Qwen architecture
|
|
/cli:analyze --tool codex "performance bottlenecks" # Codex deep analysis
|
|
/cli:analyze --enhance "fix auth issues" # Enhanced prompt first
|
|
```
|
|
|
|
## File Pattern Logic
|
|
|
|
Auto-detect file patterns from keywords:
|
|
- "auth" → `@{**/*auth*}`
|
|
- "component" → `@{src/components/**/*}`
|
|
- "API" → `@{**/api/**/*}`
|
|
- "test" → `@{**/*.test.*}`
|
|
- Generic → `@{src/**/*}`
|
|
|
|
## Session Integration
|
|
|
|
- **Active Session**: Save results to `.workflow/WFS-[id]/.chat/analysis-[timestamp].md`
|
|
- **No Session**: Return results directly to user
|
|
|