NBC is taking its development all the way to the Supreme Court.

Peacock is developing the legal franchise “Tommy Supreme,” from scribe Barry Schindel. Universal Media Studios is behind the project, which also comes from Circle of Confusion.

Project is based on the exploits of real-life attorney Tom Goldstein, who has argued 21 cases in front of the Supreme Court.

Circle of Confusion bought the life rights to Goldstein, who’s a partner in the D.C. law firm Akin Gump Strauss Hauer & Feld, and also a co-founder of the popular Supreme Court-themed blog SCOTUSblog.

Goldstein will serve as a consultant on the project. “Tommy Supreme” is being described as the “inverse ‘House'” — “a likable guy in the most unlikable profession.”

Schindel is already busy serving as showrunner on the NBC pilot “Rex Is Not Your Lawyer,” currently in production.

Schindel, whose credits also include “Castle” and “Law & Order,” will exec produce with Circle of Confusion’s David Alpert and David Engel. Circle of Confusion recently sealed a first-look deal with 20th Century Fox TV, but “Tommy Supreme” pre-dates that pact.

“When David Alpert and David Engel at Circle of Confusion brought me the story of Tom Goldstein, a first-year law graduate and accomplished poker player who wound up arguing before the Supreme Court… its underdog appeal was irresistible,” said Schindel, himself a former public defender.