Clean and peel the shrimp.
Slice the onion and green onion.
Heat cooking oil in a pot and sauté the onion, green onion, and minced garlic.
Add the shrimp and stir-fry, then pour in the water.
When it boils, add the soft tofu and simmer on low heat.
Beat the egg and slowly pour it in as the soup boils.
Season with salt and pepper.