Could it be The Last Apprentice series by Joseph Delaney? The plot you described sounds super similar to it!
It's been done.
After a witch dies, if she's powerful enough she'll be bound to her bones, but animate them, and be more powerful and harder to kill.