Finely chop the green onion and onion.
Heat cooking oil in a pan and stir-fry the green onion, minced garlic, and chili peppers to release their aroma.
Add the onion and stir-fry until it becomes translucent.
Add soy sauce, chili powder, sugar, and water to make the sauce.
Add the boiled eggs and simmer over medium heat for 10 minutes.
Serve the spicy braised eggs over rice to finish.