A “performance artist” arrested for walking bare-breasted up the center aisle of St. Patrick’s Cathedral last year agreed yesterday to stay out of trouble for the next six months so that the criminal trespass, disorderly-conduct and marijuana-possession charges against her can be dismissed.

Then she promptly doffed her top outside Manhattan Criminal court.

Two additional cases against serial stripper Holly Van Voast — who regularly boasts a penciled-in mustache — for going topless at the Union Square subway station in June and again at the subway station at 125th and St. Nicholas Avenue in May, are also covered under the disposition.

Asked why she hadn’t stripped in front of the judge, Van Voast, 46, insisted, “I’m not an exhibitionist,” before stripping in front of the cameras as she exited the courthouse.

Toplessness is not specifically barred by law in New York state, either for men or women. So while it was Van Voast’s shirt-doffing that had attracted the attention of authorities, she was charged only with disorderly conduct and, in the case of St. Patrick’s, with trespass for refusing to leave the cathedral after being ordered to by church staff.

“I have something to say,” she told cops as she was arrested at the 50th Street cathedral in January. “This is how I say it.”

Yesterday, she told reporters that she strips “so that other women will know it’s legal.”