Here, using an IFNγ-YFP reporter system to identify CD8+ T cells executing antigen-dependent effector functions, we define the transcriptional consequences and functional mechanisms controlled by TCR-signaling strength that occur within the skin during viral infection to promote TRM differentiation. This evidence concerns the gene CD8A and viral infectious disease.