mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
新增 Mode 6: 深度命令分析 - 创建 reference 备份目录(80个文档:11 agents + 69 commands) - 支持简单查询(直接文件查找)和复杂查询(CLI 辅助分析) - 集成 gemini/qwen 进行跨命令对比、最佳实践、工作流分析 - 添加查询复杂度自动分类和降级策略 更新文档 - SKILL.md: 添加 Mode 6 说明和 Reference Documentation 章节 - implementation-details.md: 添加完整的 Mode 6 实现逻辑 - 版本更新至 v1.3.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2.9 KiB
2.9 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 | [--agent] [--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)--agent- Use cli-execution-agent for automated context discovery--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
Standard Mode
- Parse tool selection (default: gemini)
- Optional: enhance with
/enhance-prompt - Assemble context:
@CLAUDE.md+ inferred files - Execute Q&A (read-only)
- Return answer
Agent Mode (--agent)
Delegates to agent for intelligent Q&A:
Task(
subagent_type="cli-execution-agent",
description="Codebase Q&A",
prompt=`
Task: ${inquiry}
Mode: chat (Q&A)
Tool: ${tool_flag || 'auto-select'} // gemini|qwen|codex
Enhance: ${enhance_flag || false}
Agent responsibilities:
1. Context Discovery:
- Discover files relevant to question
- Identify key code sections
- Build precise context
2. CLI Command Generation:
- Build Gemini/Qwen/Codex command
- Include discovered context
- Apply Q&A template
3. Execution & Output:
- Execute Q&A analysis
- Generate detailed answer
- Save to .workflow/.chat/ or .scratchpad/
`
)
Core Rules
- Read-only: Provides answers, does NOT modify code
- Context:
@CLAUDE.md+ inferred or all files (@**/*) - Output: Saves to
.workflow/WFS-[id]/.chat/or.scratchpad/
CLI Command Templates
Gemini/Qwen:
cd . && gemini -p "
PURPOSE: Answer question
TASK: [inquiry]
MODE: analysis
CONTEXT: @CLAUDE.md [inferred or @**/*]
EXPECTED: Clear answer
RULES: Focus on accuracy
"
# Qwen: Replace 'gemini' with 'qwen'
Codex:
codex -C . --full-auto exec "
PURPOSE: Answer question
TASK: [inquiry]
MODE: analysis
CONTEXT: @CLAUDE.md [inferred or @**/*]
EXPECTED: Detailed answer
RULES: Technical depth
" -m gpt-5 --skip-git-repo-check -s danger-full-access
Output
- With session:
.workflow/WFS-[id]/.chat/chat-[timestamp].md - No session:
.workflow/.scratchpad/chat-[desc]-[timestamp].md
Notes
- See
intelligent-tools-strategy.mdfor detailed tool usage and templates