mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
2.8 KiB
2.8 KiB
name, description, usage, argument-hint, examples, allowed-tools
| name | description | usage | argument-hint | examples | allowed-tools | |||
|---|---|---|---|---|---|---|---|---|
| chat | Simple CLI interaction command for direct codebase analysis | /cli:chat [--tool <codex|gemini|qwen>] [--enhance] "inquiry" | [--tool codex|gemini|qwen] [--enhance] inquiry |
|
SlashCommand(*), Bash(*) |
Purpose
Direct interaction with CLI tools for codebase analysis and Q&A.
Supported Tools: codex, gemini (default), qwen Reference: @~/.claude/workflows/intelligent-tools-strategy.md for complete tool details
Parameters
<inquiry>(Required): Question or analysis request--tool <codex|gemini|qwen>(Optional): Select CLI tool (default: gemini)--enhance(Optional): Enhance inquiry with/enhance-promptfirst--all-files(Optional): Include entire codebase in context--save-session(Optional): Save interaction to workflow session
Execution Flow
- Parse tool selection (default: gemini)
- If
--enhance: Execute/enhance-promptfirst - Assemble context (files + CLAUDE.md)
- Execute CLI tool
- Optional: Save to session
Enhancement Integration
When --enhance flag present: Execute /enhance-prompt "[inquiry]" first, then use enhanced output (INTENT/CONTEXT/ACTION) to build the chat command.
Context Assembly
Context gathered from:
- Project Guidelines:
@{CLAUDE.md,**/*CLAUDE.md}(always) - User-Explicit Files: Files specified by user
- All Files Flag:
--all-filesincludes entire codebase
Command Template
Gemini/Qwen:
cd [dir] && ~/.claude/scripts/[gemini|qwen]-wrapper -p "
PURPOSE: [inquiry goal]
TASK: [specific question]
CONTEXT: @{CLAUDE.md} @{target_files}
EXPECTED: [response format]
RULES: [constraints]
"
# With --all-files
cd [dir] && ~/.claude/scripts/[gemini|qwen]-wrapper --all-files -p "..."
Codex:
codex -C [dir] --full-auto exec "
PURPOSE: [inquiry goal]
TASK: [specific question]
CONTEXT: @{CLAUDE.md} @{target_files}
EXPECTED: [response format]
RULES: [constraints]
" --skip-git-repo-check -s danger-full-access
# With image attachment
codex -C [dir] -i screenshot.png --full-auto exec "..." --skip-git-repo-check -s danger-full-access
Examples
/cli:chat "analyze the authentication flow" # Gemini (default)
/cli:chat --tool qwen "optimize React component" # Qwen
/cli:chat --tool codex "review security vulnerabilities" # Codex
/cli:chat --enhance "fix the login" # Enhanced prompt
/cli:chat --all-files "find all API endpoints" # Full codebase
Session Persistence
- Active Session: Save to
.workflow/WFS-[id]/.chat/chat-[timestamp].md - No Session: Return results directly