mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
feat: Add task-specific path management system for precise CLI analysis
- Add 'paths' field to task JSON schema with semicolon-separated concrete paths - Create read-task-paths.sh script to convert paths to Gemini @ format - Update all agents to use task-specific paths instead of --all-files - Integrate get_modules_by_depth.sh for project structure discovery - Update workflow planning to populate paths field automatically - Enhance execute command to pass task-specific paths to agents - Update documentation for new path management system 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -42,8 +42,9 @@ You are a pure execution agent specialized in creating actionable implementation
|
||||
```
|
||||
|
||||
**Analysis CLI Usage Standards**:
|
||||
- **Gemini CLI**: Follow unified guidelines: `@~/.claude/workflows/gemini-unified.md`
|
||||
- **Codex CLI**: Follow unified guidelines: `@~/.claude/workflows/codex-unified.md`
|
||||
- **Gemini CLI**: Use task-specific paths: `gemini -p "$(.claude/scripts/read-task-paths.sh [task-json-file]) @{CLAUDE.md}" `
|
||||
- **Codex CLI**: Use task-specific paths: `codex --full-auto exec "$(.claude/scripts/read-task-paths.sh [task-json-file]) [prompt]"`
|
||||
- **Follow Guidelines**: @~/.claude/workflows/gemini-unified.md and @~/.claude/workflows/codex-unified.md
|
||||
|
||||
### Deep Analysis Execution
|
||||
**When DEEP_ANALYSIS_REQUIRED flag is present:**
|
||||
|
||||
@@ -56,8 +56,10 @@ ELIF context insufficient OR task has analysis marker:
|
||||
- **Purpose**: Enables autonomous development with intelligent file discovery and code generation
|
||||
|
||||
**Analysis CLI Usage Standards**:
|
||||
- **Gemini CLI**: Follow unified guidelines: @~/.claude/workflows/gemini-unified.md
|
||||
- **Codex CLI**: Follow unified guidelines: @~/.claude/workflows/codex-unified.md
|
||||
- **Gemini CLI**: Use task-specific paths from JSON: `gemini -p "$(.claude/scripts/read-task-paths.sh [task-json-file]) [prompt]" `
|
||||
- **Codex CLI**: Use task-specific paths from JSON: `codex --full-auto exec "$(.claude/scripts/read-task-paths.sh [task-json-file]) [prompt]"`
|
||||
- **Follow Guidelines**: @~/.claude/workflows/gemini-unified.md and @~/.claude/workflows/codex-unified.md
|
||||
|
||||
|
||||
**Test-Driven Development**:
|
||||
- Write tests first (red → green → refactor)
|
||||
|
||||
@@ -76,6 +76,11 @@ When [GEMINI_CLI_REQUIRED] flag is present or complexity triggers apply, gather
|
||||
Use the targeted review context template:
|
||||
@~/.claude/workflows/gemini-unified.md
|
||||
|
||||
**Gemini CLI Command**:
|
||||
```bash
|
||||
gemini -p "$(.claude/scripts/read-task-paths.sh [task-json-file]) @{CLAUDE.md} [review-analysis-prompt]"
|
||||
```
|
||||
|
||||
This executes a change-specific Gemini CLI command that identifies:
|
||||
- **Change understanding**: What specific task was being implemented
|
||||
- **Repository conventions**: Standards used in similar files and functions
|
||||
@@ -89,6 +94,11 @@ When [CODEX_CLI_REQUIRED] flag is present, execute autonomous analysis:
|
||||
Use the autonomous development context template:
|
||||
@~/.claude/workflows/codex-unified.md
|
||||
|
||||
**Codex CLI Command**:
|
||||
```bash
|
||||
codex --full-auto exec "$(.claude/scripts/read-task-paths.sh [task-json-file]) [autonomous-review-prompt]"
|
||||
```
|
||||
|
||||
This executes autonomous Codex CLI analysis that provides:
|
||||
- **Autonomous understanding**: Intelligent discovery of implementation context
|
||||
- **Code generation insights**: Autonomous development recommendations
|
||||
|
||||
@@ -53,6 +53,7 @@ def handle_analysis_markers(prompt):
|
||||
if "[GEMINI_CLI_REQUIRED]" in prompt:
|
||||
for dimension in dimensions:
|
||||
result = execute_gemini_cli(
|
||||
command=f"gemini -p \"$(.claude/scripts/read-task-paths.sh [task-json-file]) @{{CLAUDE.md}} {dimension}\"",
|
||||
dimension=dimension,
|
||||
role_context=role,
|
||||
topic=topic
|
||||
@@ -61,6 +62,7 @@ def handle_analysis_markers(prompt):
|
||||
|
||||
elif "[CODEX_CLI_REQUIRED]" in prompt:
|
||||
result = execute_codex_cli(
|
||||
command=f"codex --full-auto exec \"$(.claude/scripts/read-task-paths.sh [task-json-file]) {topic}\"",
|
||||
autonomous_analysis=True,
|
||||
role_context=role,
|
||||
topic=topic
|
||||
|
||||
Reference in New Issue
Block a user