The NYPD has created a mental health task force in response to a string of suicides by officers in recent months, department officials announced Monday.

The Health and Wellness Task Force was created last week after six NYPD cops committed suicide this year — including four in a three-week span, First Deputy Commissioner Ben Tucker said at a monthly crime briefing with Commissioner James O’Neill on Monday.

Going forward, the NYPD plans to have peer counselors in every precinct for cops to turn to for help. The agency also plans to get training for commanding officers so they will better understand how to handle the problems their cops are having.

“Intervention is really critical to this as well. So we’ll be working with clinicians who will help us with command level officers,” Tucker said Monday.

The recent cop suicides include Deputy Chief Steven Silks, executive officer of the Patrol Borough Queens North, who shot himself in his car June 5 a month before his mandatory retirement at age 63 and Joe Calabrese, 58, a Detectives Endowment Association official who shot himself in a Brooklyn park a day later.

“It’s sad. To have this happen to us, it is just another tragedy. And this is, unfortunately, at times a job full of tragedies,” O’Neill said Monday.

O’Neill added that cops deal with both the stress of the job and their personal lives — and the stigma of asking for help with their problems.

“I wish I could sit up here and say that in all my years being a police officer I haven’t seen this before,” O’Neill said. “But, unfortunately, I have. And this is what we’re trying to overcome. We’re trying to overcome that stigma.”

He said he hopes peer counseling and a “buddy system” that the NYPD is also creating will help officers feel comfortable talking about their problems.

“If you need help, we’re going to help you and if that requires that you not have your guns for a period of time that’s fine. But that’s not always the case. And that’s why we’re doing the command level training,” O’Neill said.

Mayor Bill de Blasio also reflected on the fallen officers and called for action.

“We all here believe that we have a sacred duty to protect the men and women of the NYPD,” de Blasio said.

“Previously we’ve talked about that in terms of more training, more technology, better protective gear, 2,000 more officers on patrol, the things we knew traditionally would help protect our officers and our communities,” he added.

“Now we have to do something that hasn’t been talked about as much, making those mental health services available, smartly, discreetly, and everywhere where NYPD officers serve,” de Blasio said.