As I remember, Nethack had a beginner mode where if you died early in the dungeon you had the option to resurrect and enable cheats, with the penalty that it would no longer record your score.
Maybe some context aware hint system? It could look at the cause of death and status of your inventory and select a hint towards how you could have done better - like 'try using sneak attacks on snakes', 'remember you have healing potions', 'try using enchantments on your best items'. Might get annoying tho, or spoil the experience of figuring it out, idk?