1. you have to do resistance training (lifting weights)
2. you need to consume enough protein so that it can be used to build the muscle mass (100-150g per day)
3. you limit calorie intake by skipping carbohydrates and fats - this is what your body fat can easily replace.
You probably cannot limit yourself to just one meal per day, or skipping eating some days - your body being in the "fasting mode" is the opposite of "muscle building mode".
another problem here is: high fat percentage lowers the testosterone levels, which is not great for gaining muscle. Some testosterone-boosting supplements, like zinc might be useful here.