Effective reprogramming of chronic wound healing remains challenging due to the limited drug delivery efficacy hindered by physiological barriers, as well as the inappropriate dosing timing in distinct healing stages. Herein, a core-shell structured microneedle array patch with programmed functions (PF-MNs) is designed to dynamically modulate the wound immune microenvironment according to the varied healing phases. Specifically, PF-MNs combat multidrug-resistant bacterial biofilm at the early stage via generating reactive oxygen species (ROS) under laser irradiation. Subsequently, the ROS-sensitive MN shell gradually degrades to expose the MN core component, which neutralizes various inflammatory factors and promotes the phase transition from inflammation to proliferation. In addition, the released verteporfin inhibits scar formation by blockingEngrailed-1(En1) activation in fibroblasts. Our experiments demonstrate that PF-MNs promote scarless wound repair in mouse models of both acute and chronic wounds, and inhibit the formation of hypertrophic scar in rabbit ear models.