I Awoke to Find I Was the Girl Swordsman That Protects My Cousin Unknown

This is the first of a three-novel series with two spin-off novels.
The title describes the basic premise well enough: It’s about a boy who suddenly discovers he transforms into a girl whenever his female cousin in danger.