Download a known, good Magisk module ZIP file. Any functional module will work, but you can also use the official Magisk Module Template provided by topjohnwu. If using a random module, ensure it has a standard structure.
Because it’s a Magisk module, it doesn't actually trip SafetyNet (depending on your setup) or permanently modify your system partition. Performance & Reliability
You can use MagiskBoot from a root shell on your device or from a PC after extracting the binary from the Magisk APK.
Once the module is repacked, you can install it. While the Magisk Manager App is the typical way, you can use to install or remove modules, especially if the device is having issues. Installing the Repacked Module
Transfer the adb-fastboot-repack.zip file to your target Android device. Open the app. Navigate to the Modules tab. Tap Install from storage and select your custom ZIP file.