Patch automation tool