on the other hand, a chlorine atom, cl, has 7 electrons in its valence shell, which is one short of the stable, filled shell with 8 electrons. thus, a chlorine atom tends to "gain" an extra electron and attain a stable 8-electron configuration, becoming a chloride anion in the process: