If you're using Magisk, it's basically always the same.
- Get a copy of the boot image from somewhere
- Modify it with the Magisk app
- Flash it to the boot partition
#1 You can do with EDL or dd if you're rooted
#3 You can do with EDL, fastboot or dd if you're rooted.