Finely chop onion, green onion, and spicy chili pepper.
Dice the Spam into bite-sized pieces.
Add cooking oil to a pot and sauté minced garlic.
Add the onion and Spam, and sauté together.
Add chili powder and stir-fry briefly.
Pour in water or broth and bring to a boil.
When the soup boils, add soft tofu and break it up slightly with a spoon.
Season with soy sauce and salt to taste.
Add green chili pepper and green onion, and simmer for a while longer.
Beat an egg and add it in, then turn off the heat.