auto generate code tools