The PCE of 5% Ag-doped CoS based solar cells is 20.5% higher than that of solar cells based on un-doped CoS.