A protocol for metal-assisted chemical imprinting of 3D microscale features with sub-20 nm shape accuracy into solid and porous silicon wafers is presented.