Abstract:Generative Artificial Intelligence (GenAI) is gradually being integrated into vocational education, and the development of human-AI collaborative teaching forms is being promoted thereby. In secondary vocational programming instruction, problems such as students' weak debugging abilities and insufficient cultivation of critical thinking are commonly observed. To address these issues, a teaching philosophy of “critical use of GenAI” is proposed, and critical pedagogy is integrated with human-AI collaboration theory. Accordingly, a three-stage spiral competency development pathway—comprising “debugging awareness enlightenment”, “critical skills training”, and “human-AI collaborative practice”—is constructed, and a teaching case is designed using the design and debugging of a “simple grade scoring system” as the instructional carrier. Through this pathway, students are expected to maintain questioning, validation, and reflection during their use of GenAI, and GenAI is transformed from a mere answer-generating tool into a collaborative partner that supports problem analysis and knowledge construction. It is demonstrated by the research that this pathway exhibits strong adaptability to secondary vocational programming courses, and a practicable instructional reference is thereby provided for the coordinated cultivation of critical thinking and programming practical skills among vocational talents in the intelligent era.