Well written libraries?

Hello,
Is there any well written structured open source librairies or games that will help me out build more healthy habits in term of scripting?
And if so can you link it in this topic please.