mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +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>
2.5 KiB
2.5 KiB
name, description, usage, argument-hint, examples, allowed-tools
| name | description | usage | argument-hint | examples | allowed-tools | |||
|---|---|---|---|---|---|---|---|---|
| analyze | Quick codebase analysis using CLI tools (codex/gemini/qwen) | /cli:analyze [--tool <codex|gemini|qwen>] [--enhance] <analysis-target> | [--tool codex|gemini|qwen] [--enhance] analysis target |
|
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
- Parse tool selection (default: gemini)
- If
--enhance: Execute/enhance-promptfirst - Detect analysis type and select template
- Build and execute command
- 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:
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:
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
/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