mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
Update all command files to use the new standardized directory structure:
- Active sessions: .workflow/active/WFS-{session}/
- Archived sessions: .workflow/archives/WFS-{session}/
Changes:
- Updated workflow-architecture.md with new directory structure (active/ not sessions/)
- Fixed 31 path references across 12 command files
- Verified compliance across all 73 command files using parallel agent checks
- Confirmed directory naming: active/ (adjective, no plural) + archives/ (noun plural)
Files modified:
- .claude/workflows/workflow-architecture.md (directory structure definition)
- .claude/commands/cli/*.md (8 files: analyze, chat, codex-execute, discuss-plan, execute, mode/*)
- .claude/commands/memory/docs.md (4 path fixes)
- .claude/commands/task/*.md (execute, replan)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2.6 KiB
2.6 KiB
name, description, argument-hint, allowed-tools
| name | description | argument-hint | allowed-tools |
|---|---|---|---|
| analyze | Read-only codebase analysis using Gemini (default), Qwen, or Codex with auto-pattern detection and template selection | [--tool codex|gemini|qwen] [--enhance] analysis target | SlashCommand(*), Bash(*), TodoWrite(*), Read(*), Glob(*), Task(*) |
CLI Analyze Command (/cli:analyze)
Purpose
Quick codebase analysis using CLI tools. Read-only - does NOT modify code.
Tool Selection:
- gemini (default) - Best for code analysis
- qwen - Fallback when Gemini unavailable
- codex - Alternative for deep analysis
Parameters
--tool <gemini|qwen|codex>- Tool selection (default: gemini)--enhance- Use/enhance-promptfor context-aware enhancement<analysis-target>- Description of what to analyze
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 analysis:
Task(
subagent_type="cli-execution-agent",
description="Codebase analysis with pattern detection",
prompt=`
Task: ${analysis_target}
Mode: analyze
Tool: ${tool_flag || 'gemini'}
Enhance: ${enhance_flag}
Execute codebase analysis with auto-pattern detection:
1. Context Discovery:
- Extract keywords from analysis target
- Auto-detect file patterns (auth→auth files, component→components, etc.)
- Discover additional relevant files using MCP
- Build comprehensive file context
2. Template Selection:
- Auto-select analysis template based on keywords
- Apply appropriate analysis methodology
- Include @CLAUDE.md for project context
3. CLI Command Construction:
- Tool: ${tool_flag || 'gemini'} (qwen fallback, codex for deep analysis)
- Context: @CLAUDE.md + auto-detected patterns + discovered files
- Mode: analysis (read-only)
- Expected: Insights, recommendations, pattern analysis
4. Execution & Output:
- Execute CLI tool with assembled context
- Generate comprehensive analysis report
- Save to .workflow/active/WFS-[id]/.chat/analyze-[timestamp].md (or .scratchpad/)
`
)
Core Rules
- Read-only: Analyzes code, does NOT modify files
- Auto-pattern: Detects file patterns from keywords (auth→auth files, component→components, API→api/routes, test→test files)
- Output:
.workflow/active/WFS-[id]/.chat/analyze-[timestamp].md(or.scratchpad/if no session)