Oxidation is loss of electron and in a galvanic cell it occurs at anode. Reduction is gain of electron and in a galvanic cell it occurs at cathode.
At anode :21H2(g)⟶(aq)H++e−
At cathode (S)AgCl+eˉ⟶Ag+ (aq) Cl−
Overall reaction
21H2(g)+AgCl(s)⟶H∗+Cl−+Ag(s)
Cell representation :
Anode / Anode electrolyte || Cathodic electrolyte / Cathode.
The cell representation for the above cell will be
Pt∣H2(g)∣HCl( soln n)∣AgCl(s)∣Ag