Files
Claude-Code-Workflow/.claude/skills/command-guide/reference/commands/cli/chat.md
catlog22 836bf4cd1c Add UI Design Commands: List and Reference Page Generator
- Implemented the '/workflow:ui-design:list' command to list all available design runs with metadata including session, created time, and prototype count.
- Developed the '/workflow:ui-design:reference-page-generator' command to generate multi-component reference pages and documentation from design run extraction, including setup, validation, and preview generation phases.
- Added detailed error handling and usage examples for both commands to enhance user experience and clarity.
2025-11-11 20:53:42 +08:00

2.2 KiB

name, description, argument-hint, allowed-tools
name description argument-hint allowed-tools
chat Read-only Q&A interaction with Gemini/Qwen/Codex for codebase questions with automatic context inference [--tool codex|gemini|qwen] [--enhance] inquiry SlashCommand(*), Bash(*), Task(*)

CLI Chat Command (/cli:chat)

Purpose

Direct Q&A interaction with CLI tools for codebase analysis. Read-only - does NOT modify code.

Tool Selection:

  • gemini (default) - Best for Q&A and explanations
  • qwen - Fallback when Gemini unavailable
  • codex - Alternative for technical deep-dives

Parameters

  • --tool <gemini|qwen|codex> - Tool selection (default: gemini)
  • --enhance - Enhance inquiry with /enhance-prompt
  • <inquiry> (Required) - Question or analysis request

Tool Usage

Gemini (Primary):

--tool gemini  # or omit (default)

Qwen (Fallback):

--tool qwen

Codex (Alternative):

--tool codex

Execution Flow

Uses cli-execution-agent (default) for automated Q&A:

Task(
  subagent_type="cli-execution-agent",
  description="Codebase Q&A with intelligent context discovery",
  prompt=`
    Task: ${inquiry}
    Mode: chat
    Tool: ${tool_flag || 'gemini'}
    Enhance: ${enhance_flag}

    Execute codebase Q&A with intelligent context discovery:

    1. Context Discovery:
       - Parse inquiry to identify relevant topics/keywords
       - Discover related files using MCP/ripgrep (prioritize precision)
       - Include @CLAUDE.md + discovered files
       - Validate context relevance to question

    2. CLI Command Construction:
       - Tool: ${tool_flag || 'gemini'} (qwen fallback, codex for deep dives)
       - Context: @CLAUDE.md + discovered file patterns
       - Mode: analysis (read-only)
       - Expected: Clear, accurate answer with code references

    3. Execution & Output:
       - Execute CLI tool with assembled context
       - Validate answer completeness
       - Save to .workflow/WFS-[id]/.chat/chat-[timestamp].md (or .scratchpad/)
  `
)

Core Rules

  • Read-only: Provides answers, does NOT modify code
  • Context: @CLAUDE.md + inferred or all files (@**/*)
  • Output: .workflow/WFS-[id]/.chat/chat-[timestamp].md (or .scratchpad/ if no session)