In what is a crucial month for the Mets’ wild-card hopes, Amed Rosario has started August off on the right foot.

The shortstop went 2-for-5 with two runs scored and an RBI in the Mets’ 6-2 opening-game victory of a doubleheader with the Marlins on Monday at Citi Field. He then extended his hitting streak to six games in the nightcap — going 1-for-4 with a run scored in a 5-4 win.

“Another solid game by him, he continues to impress,” Mets manager Mickey Callaway said after the opener. “He continues to make plays, plays that we haven’t seen really in the past, except for on occasion. He’s making them consistently now.”

After Jeff McNeil homered on Robert Dugger’s first pitch of the opener and the Marlins answered with back-to-back doubles off Jacob deGrom in the second to tie the score, Rosario blasted the Mets’ second solo shot of the afternoon to take a 2-1 lead.

He followed it up on defense in the fourth, fielding a slow, bouncing grounder from Harold Ramirez and making the off-balance throw to first for the out. There was no shortage of effort from the 23-year-old, as he ran out a soft bouncer to short in the fifth for an infield hit to jump-start a two-run inning.

After McNeil was walked in the first inning of the nightcap, Rosario singled to left to put runners on the corners for Michael Conforto, whose two-run single to left put the Mets on the board early.

“Obviously, not just [Conforto] but Rosie, what he’s done has been ridiculous. He’s hot as a torch right now,” said Pete Alonso, following the second game. “There’s so many different pieces, but everyone is really contributing now, it’s not the same guy every single night.”

Rosario’s improvement comes at just the right time, especially since in June Callaway had discussed the possibility of shifting him to center field. After an abysmal April stretch in which he committed seven errors in six games, Rosario committed two errors in July and has been strong in the field so far this month.

“He’s doing a great job on defense, he’s been working hard and then at the plate, he’s been unconscious,” Callaway said. “He’s been really good.”

In 26 at-bats this month, Rosario has 10 hits and is batting .385.