feat(generator): auto-generates card when changing cards