Treehouse of Horror episodes typically consist of four parts: an opening and Halloween-themed version of the credits, followed by three segments.
From "Treehouse of Horror" to "Treehouse of Horror XIII", all three segments were written by different writers.