The 16-year-old, who lives in the Onich area, won the team sprint as part of a group of three from across Scotland, beating the British record, and a bronze medal for the standing lap.
The Games invited the best 1,600 competitors from across all UK schools and performing in front of 25,000 spectators.
Dent, who fellow pupils recently highlighted as a young aspiring athlete at the school, is in the Young Olympic Cycling Programme.
The Scottish cycling representative, whose dad Alan Dent once cycled for Great Britain, has finished second in the Scottish Championships twice and is in the top 10 in the British Series.
In a recent profile interview by Kinlochleven pupils, he said his “achievable aim” is to compete in either the 2018 or 2022 Commonwealth Games and also to compete at a national level for the UK.
He also described what it’s like balancing school life with competing on the bike.
He said: “I have to travel all over the country to compete and the shortest drive is around two hours. Because of this, I have to get up early, go on the long car journey and then either compete or train for up to 12 hours, then the drive back and go to school the next day (that’s one hectic day). To keep up with school work, I sometimes have to study in the car on a long drive.”
Rebecca Machin, head teacher said:=
"In all, Stephen Dent is a seriously inspiring person and a fantastic role model to us all, for those of us aspiring in sport and those wishing to do well academically. Stephen is really very modest and unassuming. However, we are all so proud of this young man, who can balance the work it takes to get straight A’s in all 6 of his National 5 examinations whilst competing at this level at such a young age.’’