How many psychiatrists does it take to change a light bulb?
Just one, but the light bulb has to really want to change.
Over the years, I've had the privilege of working with a lot of very productive teams. Sometimes I even think I had something to do with their formation.
Here are some of the common good elements of those teams.
ExtremeProgramming is a collection of practices that have worked over the years, for a number of people. KentBeck has brought them together, but they have been part of successful projects for a very long time.
The specific rules are helpful, but what is important are the values: Simplicity, Communication, Testing, Aggressiveness.
If a team is essentially healthy, you can find those values in it and reinforce them. If it isn't ... well, I've never known a bunch of programmers who didn't want to be successful and have a good time ... and I hope I never do.
More when I know more ... and please, help me.
-- RonJeffries
Resources
Understanding Your Business Culture chapter from SoulOfAnOrganization