How do home improvements affect taxes?

How do home improvements affect my taxes when I sell my home? What should I consider regarding tax credits or deductions?