Whedon's onscreen feminism usually follows a quite primary pattern - get a character type ordinarily played by a male and gender-flip it to see what happens.
It's straightforward to see how Buffy (and Whedon's afterwards feminine action heroes) are motivated by this specific character type.