HIV and HBV are NOT transmitted this way.
From what you described, there is NO real risk of HIV, and HBV risk is also negligible.
The prick was superficial, after 5 minutes, not a deep needle injury.No injection, no hollow-bore needle, no active bleeding exposure. So HIV transmission is practically impossible here.
Next Steps
If anxious- You may do baseline
HIV & HBsAg test now.
Repeat at 6 weeks / 3 months ONLY for reassurance (not because risk is high).
Check your Hepatitis B vaccination status (take vaccine if not vaccinated)
Health Tips
Casual contact, nail pricks, touching hands, or indirect exposure DOES NOT transmit
HIV.