mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
Template Migration: - Move templates from .claude/prompt-templates/ to .claude/workflows/cli-templates/prompts/ - Rename and reorganize: bug-fix.md → development/bug-diagnosis.txt - Rename and reorganize: code-analysis.md → analysis/code-execution-tracing.txt - Rename and reorganize: plan.md → planning/architecture-planning.txt CLI Command Enhancements: - Add clear tool selection hierarchy (gemini primary, qwen fallback, codex alternative) - Enhance analyze.md, chat.md with tool descriptions and agent context - Enhance mode/code-analysis.md, mode/bug-diagnosis.md, mode/plan.md with Task() wrapper - Add all necessary codex parameters (--skip-git-repo-check -s danger-full-access) - Simplify descriptions while preserving core functionality Agent Updates: - Streamline cli-execution-agent.md (600→250 lines, -60%) - Add complete templates reference for standalone usage - Remove dependency on intelligent-tools-strategy.md Reference Updates: - Update test-task-generate.md template path references - Delete duplicate bug-index.md - All template paths now use ~/.claude/workflows/cli-templates/prompts/ format 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2.8 KiB
2.8 KiB
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools |
|---|---|---|---|
| chat | Simple CLI interaction command for direct codebase analysis | [--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