mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
feat: add syntax check priority in @test-fix-agent prompt
Enhancement: - Added "CRITICAL: Syntax Check Priority" section in @test-fix-agent template - Positioned before Session Paths for maximum visibility Requirements: - Run syntax checker (TypeScript tsc --noEmit, ESLint, etc.) BEFORE any work - Verify zero syntax errors before proceeding - Fix syntax errors immediately if found - Syntax validation is MANDATORY gate - no exceptions Scope: - Applies to all task types (test-gen, test-fix, test-fix-iteration) - Agent-level enforcement (not in orchestrator flow) Rationale: - Syntax errors must be fixed before functional testing - Prevents cascading failures from basic syntax issues - Reduces iteration waste on trivial syntax problems
This commit is contained in:
@@ -281,6 +281,13 @@ Task(
|
|||||||
2. Read iteration state: ${session.iteration_state_path}
|
2. Read iteration state: ${session.iteration_state_path}
|
||||||
3. ${taskTypeSpecificReads[task.meta.type]}
|
3. ${taskTypeSpecificReads[task.meta.type]}
|
||||||
|
|
||||||
|
## CRITICAL: Syntax Check Priority
|
||||||
|
**Before any code modification or test execution:**
|
||||||
|
- Run project syntax checker (TypeScript: tsc --noEmit, ESLint, etc.)
|
||||||
|
- Verify zero syntax errors before proceeding
|
||||||
|
- If syntax errors found: Fix immediately before other work
|
||||||
|
- Syntax validation is MANDATORY gate - no exceptions
|
||||||
|
|
||||||
## Session Paths
|
## Session Paths
|
||||||
- Workflow Dir: ${session.workflow_dir}
|
- Workflow Dir: ${session.workflow_dir}
|
||||||
- Task JSON: ${session.task_json_path}
|
- Task JSON: ${session.task_json_path}
|
||||||
|
|||||||
Reference in New Issue
Block a user