diff --git a/.claude/commands/workflow/tools/task-generate-agent.md b/.claude/commands/workflow/tools/task-generate-agent.md index b32636d5..9e035ca8 100644 --- a/.claude/commands/workflow/tools/task-generate-agent.md +++ b/.claude/commands/workflow/tools/task-generate-agent.md @@ -19,6 +19,7 @@ Autonomous task JSON and IMPL_PLAN.md generation using action-planning-agent wit - **MCP-Enhanced**: Use MCP tools for advanced code analysis and research - **Pre-Selected Templates**: Command selects correct template based on `--cli-execute` flag **before** invoking agent - **Agent Simplicity**: Agent receives pre-selected template and focuses only on content generation +- **Path Clarity**: All `focus_paths` prefer absolute paths (e.g., `D:\\project\\src\\module`), or clear relative paths from project root (e.g., `./src/module`) ## Execution Lifecycle diff --git a/.claude/commands/workflow/tools/task-generate-tdd.md b/.claude/commands/workflow/tools/task-generate-tdd.md index f04b4ea7..80401ee3 100644 --- a/.claude/commands/workflow/tools/task-generate-tdd.md +++ b/.claude/commands/workflow/tools/task-generate-tdd.md @@ -49,6 +49,7 @@ Generate TDD-specific tasks from analysis results with complete Red-Green-Refact - **Feature-Complete Tasks**: Each task contains complete Red-Green-Refactor cycle - **Phase-Explicit**: Internal phases clearly marked in flow_control.implementation_approach - **Task Merging**: Prefer single task per feature over decomposition +- **Path Clarity**: All `focus_paths` prefer absolute paths (e.g., `D:\\project\\src\\module`), or clear relative paths from project root (e.g., `./src/module`) - **Artifact-Aware**: Integrates brainstorming outputs - **Memory-First**: Reuse loaded documents from memory - **Context-Aware**: Analyzes existing codebase and test patterns @@ -157,7 +158,7 @@ For each feature, generate task(s) with ID format: "expected_failure": "Why test should fail initially" } ], - "focus_paths": ["src/path/", "tests/path/"], // Files to modify + "focus_paths": ["D:\\project\\src\\path", "./tests/path"], // Absolute or clear relative paths from project root "acceptance": [ // Success criteria "All tests pass (Red → Green)", "Code refactored (Refactor complete)", diff --git a/.claude/commands/workflow/tools/task-generate.md b/.claude/commands/workflow/tools/task-generate.md index 3d6fd62c..a96b4fef 100644 --- a/.claude/commands/workflow/tools/task-generate.md +++ b/.claude/commands/workflow/tools/task-generate.md @@ -40,6 +40,7 @@ This command is built on a set of core principles to ensure efficient and reliab - **Role Analysis-Driven**: All generated tasks originate from role-specific `analysis.md` files (enhanced in synthesis phase), ensuring direct link between requirements/design and implementation - **Artifact-Aware**: Automatically detects and integrates all brainstorming outputs (role analyses, guidance-specification.md, enhancements) to enrich task context - **Context-Rich**: Embeds comprehensive context (requirements, focus paths, acceptance criteria, artifact references) directly into each task JSON +- **Path Clarity**: All `focus_paths` prefer absolute paths (e.g., `D:\\project\\src\\module`), or clear relative paths from project root (e.g., `./src/module`) - **Flow-Control Ready**: Pre-defines clear execution sequence (`pre_analysis`, `implementation_approach`) within each task - **Memory-First**: Prioritizes using documents already loaded in conversation memory to avoid redundant file operations - **Mode-Flexible**: Supports both agent-driven execution (default) and CLI tool execution (with `--cli-execute` flag) @@ -182,7 +183,7 @@ This enhanced 5-field schema embeds all necessary context, artifacts, and execut }, "context": { "requirements": ["Clear requirement from analysis"], - "focus_paths": ["src/module/path", "tests/module/path"], + "focus_paths": ["D:\\project\\src\\module\\path", "./tests/module/path"], "acceptance": ["Measurable acceptance criterion"], "parent": "IMPL-N", "depends_on": ["IMPL-N.M"],