From d99448ffd59a8de23a140132eea9d6870324ee9d Mon Sep 17 00:00:00 2001 From: catlog22 Date: Tue, 25 Nov 2025 11:22:11 +0800 Subject: [PATCH] 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 --- .claude/commands/workflow/test-cycle-execute.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.claude/commands/workflow/test-cycle-execute.md b/.claude/commands/workflow/test-cycle-execute.md index 6ae6ac74..50e9142a 100644 --- a/.claude/commands/workflow/test-cycle-execute.md +++ b/.claude/commands/workflow/test-cycle-execute.md @@ -281,6 +281,13 @@ Task( 2. Read iteration state: ${session.iteration_state_path} 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 - Workflow Dir: ${session.workflow_dir} - Task JSON: ${session.task_json_path}