mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
Streamlined 7 CLI command documentation files by removing duplicate content that's already comprehensively covered in intelligent-tools-strategy.md (loaded in memory). Established single source of truth (SSOT) pattern. Changes: - Removed duplicate command templates (→ strategy lines 51-118) - Removed file pattern reference lists (→ strategy lines 324-329) - Removed complex pattern discovery steps (→ strategy lines 331-355) - Removed MODE field definitions (→ strategy lines 128-143) - Removed tool feature descriptions (→ strategy lines 283-322) Files streamlined: - analyze.md: 117→61 lines (48% reduction) - chat.md: 118→62 lines (47% reduction) - execute.md: 180→100 lines (44% reduction) - codex-execute.md: 481→473 lines (2% - preserved unique content) - mode/bug-index.md: 144→75 lines (48% reduction) - mode/code-analysis.md: 188→76 lines (60% reduction) - mode/plan.md: 100→76 lines (24% reduction) Total reduction: 681 lines removed across all files Each doc now contains only: - Unique purpose and parameters - Command-specific execution flow - Practical examples - Brief reference to intelligent-tools-strategy.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2.1 KiB
2.1 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(*) |
CLI Chat Command (/cli:chat)
Purpose
Direct Q&A interaction with CLI tools for codebase analysis.
Supported Tools: codex, gemini (default), qwen
Parameters
<inquiry>(Required) - Question or analysis request--tool <codex|gemini|qwen>- Select CLI tool (default: gemini)--enhance- Enhance inquiry with/enhance-promptfirst--all-files- Include entire codebase in context--save-session- Save interaction to workflow session
Execution Flow
- Parse tool selection (default: gemini)
- If
--enhance: Execute/enhance-promptto expand user intent - Assemble context:
@{CLAUDE.md}+ user-specified files or--all-files - Execute CLI tool with assembled context
- Optionally save to workflow session
Context Assembly
Always included: @{CLAUDE.md,**/*CLAUDE.md} (project guidelines)
Optional:
- User-explicit files from inquiry keywords
--all-filesflag includes entire codebase (--all-fileswrapper parameter)
For targeted analysis, use rg or MCP tools to discover relevant files first, then build precise CONTEXT field.
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 first
/cli:chat --all-files "find all API endpoints" # Full codebase context
Notes
- Command templates and file patterns: see intelligent-tools-strategy.md (loaded in memory)
- Active workflow session: results saved to
.workflow/WFS-[id]/.chat/ - No session: results returned directly