Yes skateboarding is not only a sport but a science

rewrite and add commas if needed
I wrote >
Yes, skateboarding is not only a sport but a science.

I agree with the comma..

Do you also need one before "but"

I agree. A comma is not needed before but.

Yes, skateboarding is not only a sport, but a science.