Heat the vegetable oil in a large skillet over medium-high heat.
Add minced garlic and chopped shallots to the skillet and sauté until fragrant.
Push the garlic and shallots to the side, and pour the beaten egg into the skillet. Scramble until fully cooked.
Add shredded chicken and cook for another 2 minutes, mixing with the eggs.
Stir in the cooked rice, breaking up any clumps with a spatula.
Add kecap manis, chili sauce, salt, and pepper. Stir well to combine all ingredients and heat through.
Garnish with sliced spring onions before serving.