Two months into replacing Derek Jeter, it wouldn’t have shocked many if the Yankees sent Didi Gregorius to Triple-A.

Two games into August, the 25-year-old shortstop has developed into a slick fielding shortstop who is providing production from the bottom of the order.

“When we got him I spoke about his ability but that he was not a finished product,” GM Brian Cashman said of Gregorius, who played 57 Triple-A games last year and 80 with the Diamondbacks. “There were going to be growing pains, and we were forced to be patient. You hope your patience pays dividends. We are seeing that.’’

At the end of May, Gregorius was batting .222, had six errors and lacked crisp baseball instincts.

When the Yankees open a three-game series against the Red Sox Tuesday night at Yankee Stadium, Gregorius is hitting .260, has committed three errors — one since June 7 — and lately has turned into a clutch hitter.

He is 4-for-9 with 10 RBIs in the past nine games with runners in scoring position. Overall, he finished the recent 10-game road trip 14-for-32 (.438) with 10 RBIs. Sunday, he turned a sure single by Adam LaRoche into an out with a sprawling stop and strong throw.

“He has settled in nicely. It’s a credit to himself, [infield coach] Joe Espada, the hitting coaches [Jeff Pentland and Alan Cockrell] and the players in our clubhouse who have helped,’’ Cashman said.

It’s not a secret the Yankees have muscled their way to the top of the AL East hitting home runs and on the arms of Dellin Betances and Andrew Miller.

Lately, a very large contribution is coming from the seventh-, eighth- and ninth-place hitters.

In the past 11 games, the lower third of the Yankees’ lineup is batting .414 (53-for-128) with three homers and 33 RBIs.

The production comes at a time when Jacoby Ellsbury and Brett Gardner, the first two hitters in the lineup, have taken a dip.

Since July 23, Ellsbury is batting .205 (8-for-39) and Gardner is at .184 (7-for-38).

Prior to Sunday’s 12-3 win over the White Sox in Chicago, Joe Girardi was talking about how important it was for his starters to pitch deeper in games than they have been.

“We could really use it,’’ Girardi said of Ivan Nova providing length. “Our bullpen is fried right now.’’

Nova, who was pitching for the first time since experiencing arm fatigue in his previous outing, gave Girardi six innings and cruised to the victory.

However, in the past 15 games, Yankees starters are averaging fewer than six innings per start. And that could be the reason important bullpen pieces Justin Wilson and Chasen Shreve recently have dipped a bit.

In his last six outings, Wilson has worked 5 2/3 innings and allowed seven hits. Shreve has allowed five runs (three homers) and eight hits in 8 1/3 innings across his last nine outings.

While the Yankees are introducing top pitching prospect Luis Severino into the AL East pennant race by starting him Wednesday night against the going-nowhere Red Sox at Yankee Stadium, the visitors will do the same with Henry Owens, their best pitching prospect.

Owens, a 6-foot-6, 230-pound lefty, was 3-8 with a 3.16 ERA in 21 games for Triple-A Pawtucket this season, when he whiffed 103 and walked 56 in 122 1/3 innings. The Red Sox’s first pick in the 2011 draft went 17-5 with a 2.94 ERA in 2014, when he was with Double-A Portland and Pawtucket.