A cosmetic composition for treating hair, nails and skin, including the lips, is provided, which composition comprises a UV activated self-repair film forming material, for example, a polymer, such as a polyurethane polymer, containing a polysaccharide substituted with a UV active oxetane, or a metallo-supramolecular film-former capable of reforming polymeric like chains via metal ligand complexation.