Just hours after President Trump declared that his personal lawyer Michael Cohen only does a “tiny, tiny little fraction” of his legal work, a judge appointed an independent arbiter to screen the attorney’s records for information that would be protected by attorney-client privilege.

Trump’s comment came in an interview with “Fox & Friends,” where he also admitted for the first time that the “tiny fraction” did include handling allegations leveled by porn star Stormy Daniels that she had an affair with Trump.

“Michael would represent me on some things. He represents me like with this crazy Stormy Daniels deal, he represented me,” said Trump, who appeared to confirm that Cohen was representing him when the lawyer paid $130,000 to Daniels on the eve of the 2016 election.

Trump has previously said he was unaware of Cohen’s payment,

Records relating to the payoff are among the documents recently seized in an FBI raid on Cohen’s home, office and hotel room as part of a criminal probe into the former Trump Organization executive.

Cohen and federal prosecutors are currently embroiled in a legal dispute over who gets to filter the records for material that’s subject to attorney-client privilege.

Thursday afternoon, Judge Kimba Wood appointed Barbara Jones — a 16-year veteran of Manhattan’s federal court — as a “special master” to comb through the records.

Cohen’s own lawyers had initially asked for an third party to review the material instead of the feds’ own “taint team.”

The prosecutors gave the OK for the screener Thursday morning, but urged Wood to adopt their plan for the process, noting that Trump’s words earlier that day suggest Cohen’s legal team is twisting the truth simply to drag the whole thing out.

“After originally stating that the Government seized ‘thousands, if not millions,’ of pages of privileged documents, Cohen subsequently identified three current clients,” they said in a letter to Wood — noting that one of his apparent “clients,” Fox News host Sean Hannity, has already claimed Cohen did no legal work for him.

“Another, President Trump, reportedly said on cable television this morning that Cohen performs ‘a tiny, tiny little fraction’ of his overall legal work. These statements by two of Cohen’s three identified clients suggest that the seized materials are unlikely to contain voluminous privileged documents,” they wrote.

But Wood ultimately picked a prosecutor who was on neither side’s list of suggestions.

The judge said she expects Jones — a Clinton appointee who now works at ex-Mayor Rudy Giuliani’s former law firm, Bracewell — to work as quickly as a fed “taint team” would have, and said she’ll “revisit” the arrangement if the process drags on.

Meanwhile, Daniels’ own attorney argued that his client — whose legal name is Stephanie Clifford — should have “a seat at the table” because the records include privileged information her previous lawyer gave Cohen without her permission.

LA entertainment attorney Keith Davidson, who facilitated the hush money with Cohen, “continued to communicate with Michael Cohen about Ms. Clifford and [the non-disclosure agreement]” in the days leading up the raid, her new lawyer Michael Avenatti argued.

Davidson did this even though he was no longer Daniels’ lawyer and didn’t have her permission to pass on her protected communications, Avenatti said in court papers.

The judge declined to rule on Avenatti’s request after prosecutors said they would like more time to review it — and possibly object to it.

But Avenatti did declare some wins Thursday.

He first gloated about Trump’s “crazy Stormy Daniels deal” comment.

“Mr. Trump and Mr. Cohen previously represented to the American people that Mr. Cohen acted on his own and Mr. Trump knew nothing about the agreement with my client, the $130k payment, etc. As I predicted, that has now been shown to be completely false,” Avenatti tweeted.

And later he claimed that revelations in court that the FBI seized more than a dozen cellphones from Cohen points to something very fishy.