Boil the pasta: Bring a large pot of well-salted water to a boil and cook the spaghetti 1 minute less than the package directs. Reserve 1 cup of the starchy cooking water before draining the noodles.
Melt the butter: Heat a large skillet over medium-low heat and melt the butter until it foams slightly. Add the minced garlic right away so it doesn't overheat on its own.
Toast the garlic: Stir the garlic often in the melted butter until it turns pale gold at the edges and smells toasty, about 2 minutes. Pull the pan off the heat if it starts to brown too fast.
Build the sauce: Stir in the soy sauce and oyster sauce, letting the mixture bubble gently for about 30 seconds. The sauce should look glossy and smell deeply savory at this point.
Add the noodles: Add the drained spaghetti directly to the skillet along with 1/4 cup of the reserved pasta water. Toss with tongs so every strand picks up the garlic butter sauce.
Loosen with pasta water: If the sauce looks thick or the noodles stick together, add more reserved pasta water a tablespoon at a time. Keep tossing until the sauce coats the noodles in a thin, even layer.
Melt in the parmesan: Sprinkle in the parmesan cheese and toss again until it melts into the sauce and clings to the noodles. The sauce should look glossy, not clumpy, after about 1 minute.
Season and finish: Add black pepper and toss once more to distribute it evenly. Taste and add a splash more soy sauce if you want a saltier bite.
Garnish and serve: Scatter the sliced green onions over the top right before bringing the noodles to the table. Divide among bowls while the noodles are still hot and glossy.