Longtime “Desperate Housewives” resident Alexandra Cunningham is leaving the ABC cul-de-sac for the Peacock.

Scribe Cunningham has sealed a seven-figure overall deal with NBC’s Universal Media Studios to develop new series.

Scribe was previously based at ABC Studios, which produces “Housewives” — which ironically is shot on the Universal lot.

Cunningham has written more episodes of “Housewives” than just about any other writer, with the exception of series creator/exec producer Marc Cherry.

Before “Housewives,” the WME-repped Cunningham worked on HBO’s “Rome,” as well as on the Fox dramas “Pasadena” and “Fastlane.” She also served a hitch on ABC’s “NYPD Blue.”

As a playwright, Cunningham earned strong reviews for her work “No. 11 (Blue and White),” which premiered in the 2000 Humana Festival at Actors Theater of Louisville, Ky. Her plays have been workshopped and performed at several locations.

“I’ve been wanting to work with Alex since the first play I read by her,” said Laura Lancaster, exec VP of drama for NBC Entertainment/Universal Media Studios. “She’s an incredibly gifted and versatile writer (who is) able to draw complicated, complex characters and situations within both drama and comedy genres.”