STATEN ISLAND, N.Y. – Court officers were about to escort alleged mob-boss killer Anthony Comello back to a holding cell at the end of a court conference Friday when his lawyer told a judge the defendant wanted to speak.

Ears perked up in the courtroom. Comello was warned anything he said could be used against him.

Undeterred, the Eltingville resident, speaking rapidly, launched into a bizarre and rambling 20-second monologue in which he said his phone had contained information on human sex-trafficking and drug smuggling.

Then, in quick succession, Comello referenced Australia, Russia and Ukraine, as well as “Operation Mockingbird,” without further details.

The latter is an alleged large-scale CIA program dating to the 1950s which attempted to manipulate the news media for propaganda purposes.

“There’s a lot in my phone,” said Comello, adding, “everything got cleaned out.”

He said his lawyer would get the information if it was still there.

The clean-shaven Comello, who was neatly garbed in a gray suit and open-neck blue dress shirt, then turned to Assistant District Attorney Wanda DeOliveira, one of the prosecutors on the case.

“Good luck, Wanda,” he said sarcastically before being led out.

Comello addressed the court shortly after he appeared to have undercut the viability of an insanity defense.

Defense lawyer Robert Gottlieb said Comello refuses to be examined by prosecutors’ psychiatric expert.

An interview is scheduled for Monday, although Gottlieb said Comello “has no intention of speaking to the doctor.”

“He is not going to cooperate,” said Gottlieb.

The defendant’s failure to do so would preclude his own psychiatric experts from testifying at trial.

However, lay witnesses could offer psychiatric testimony.

In court papers, Gottlieb contends Comello, 25, was deluded by conspiracy theories when he allegedly fatally shot Gambino crime family boss Francesco (Franky Boy) Cali, 53, outside Cali’s Dongan Hills home last March 13.

Comello is charged with murder and criminal weapon possession.

Authorities have not publicly commented on a possible motive, and Comello gave conflicting accounts during the course of a three-and-a-half-hour interrogation after his arrest.

A videotape of Comello’s interview with a detective was played at a pretrial hearing in state Supreme Court, St. George, in October.

On it, Comello initially said he slew Cali because Cali threatened to have him killed after Comello hit his SUV on the street.

Later on, Comello changed his story, saying he had been blackmailed into killing Cali by “people” who threatened to reveal how he had contracted HIV from a stripper.

Comello also provided a third account, saying he had actually gone to the victim’s house to “spill the beans” and warn him that organized crime had ordered a hit on him.

In court papers, Gottlieb said Comello was “delusional” and didn’t intend to kill Cali.

Rather, the defendant drove to the victim’s house to affect a citizen’s arrest on the mob boss, maintains Comello’s court filings.

He believed Cali “held a significant status in a worldwide criminal cabal bent on the destruction of American values and the American way of life,” a defense motion contends.

That alleged criminal conspiracy group is commonly referred to as the “Deep State.”

According to the motion, Comello planned to handcuff Cali and deliver him to the military.

The two men began arguing, and Comello “shot Cali in self-defense” when the victim made a “furtive action” with his hand, allege the defendant’s court filings.

At Friday’s conference, Garnett, the judge, said he had signed a defense subpoena seeking the production of federal wiretaps of wiseguys talking about the shooting.

According to a detention memo filed in Brooklyn federal court in an unrelated racketeering case, several high-level Gambino family members met on March 17 to discuss the then-unclear circumstances surrounding Cali’s death.

Gottlieb said there was an indication that mobsters “apparently” had gone to Cali’s home and were inside before police arrived.

That raises questions, he said, of whether the house, crime scene, the victim’s car or other evidence was tampered with.

Also, on Friday, Garnett initially set an April 20 trial date.

However, Gottlieb said he likely wouldn’t be available then.

The lawyer said he has four other trials scheduled in the coming months in various jurisdictions that may occupy him through June.

Garnett adjourned the case to April 20 for a final status conference.

The judge may set a trial date then.