S$^2$-Diffusion: Generalizing from Instance-level to Category-level Skills in Robot Manipulation