Positive:
She [main verb]. So do I/So does she.
She sings nicely. So does he.
He misses his nice weather of summer. So do I.
He has a good sense of humor. So does she. -- Here, "has" is the main verb.
She [helping verb main verb]. So [helping verb] I/she.
She has lost her pen. So have I.
He was going to bake a cake. So was she.
Negative:
This works the same, except with "neither" instead of "so." Use the auxilliary/helping verb.
She doesn't sing very well. Neither does he.
She didn't miss me very much. Neither did he.
She hasn't got any money. Neither have I.