Slice the onion thinly.
Cut the chicken into bite-sized pieces.
Add oil to the pan and sauté the onions.
When the onions become translucent, add the chicken and cook through.
Add soy sauce, mirin, sugar, and water, then simmer.
Beat the eggs and pour them into the pan, cover, and let cook.
Serve everything over rice to finish.