mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +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:
@@ -75,7 +75,7 @@ Each session directory contains `workflow-session.json`:
|
||||
- **Performance**: Direct JSON access without parsing overhead
|
||||
|
||||
### Task JSON Schema
|
||||
All task files use this 9-field schema:
|
||||
All task files use this 10-field schema:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -84,6 +84,7 @@ All task files use this 9-field schema:
|
||||
"status": "pending|active|completed|blocked|container",
|
||||
"type": "feature|bugfix|refactor|test|docs",
|
||||
"agent": "code-developer|planning-agent|code-review-test-agent",
|
||||
"paths": "src/auth;tests/auth;config/auth.json;src/middleware/auth.ts",
|
||||
|
||||
"context": {
|
||||
"requirements": ["JWT authentication", "OAuth2 support"],
|
||||
@@ -147,6 +148,34 @@ All task files use this 9-field schema:
|
||||
}
|
||||
```
|
||||
|
||||
### Paths Field Details
|
||||
|
||||
The **paths** field specifies concrete project paths (folders and files) relevant to the task implementation:
|
||||
|
||||
#### Path Format
|
||||
- **Semicolon-separated list**: `"folder1;folder2;specific_file.ts"`
|
||||
- **Concrete paths**: Use actual directory/file names without wildcards
|
||||
- **Mixed types**: Can include both directories and specific files
|
||||
- **Relative paths**: From project root (e.g., `src/auth`, not `./src/auth`)
|
||||
|
||||
#### Path Selection Strategy
|
||||
- **Directories**: Include relevant module directories (e.g., `src/auth`, `tests/auth`)
|
||||
- **Specific files**: Include files explicitly mentioned in requirements (e.g., `config/auth.json`)
|
||||
- **Avoid wildcards**: Use concrete paths discovered via `get_modules_by_depth.sh`
|
||||
- **Focus scope**: Only include paths directly related to task implementation
|
||||
|
||||
#### Examples
|
||||
```json
|
||||
// Authentication system task
|
||||
"paths": "src/auth;tests/auth;config/auth.json;src/middleware/auth.ts"
|
||||
|
||||
// UI component task
|
||||
"paths": "src/components/Button;src/styles;tests/components"
|
||||
|
||||
// Database migration task
|
||||
"paths": "migrations;src/models;config/database.json"
|
||||
```
|
||||
|
||||
### Implementation Field Details
|
||||
|
||||
The **implementation** field provides detailed code implementation guidance with 4 core components:
|
||||
|
||||
Reference in New Issue
Block a user