mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
2.4 KiB
2.4 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
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