I spent the last 12 years wiring up panels with temporary pigtails. We built portable buildings of variuos configurations. Most were destined for an on-site permenant shore power connection, but during the build, we needed temporary power for lighting and circuit testing. One thing we often ran into, and thankfully nobody was ever injured or killed...
The "standard" when I arrived was a male cord end cut off from whatever was handy. Usually a couple feet long, stripped back and wired into the panel. Depending on need, we would add a jumper for the second leg or even jump 3phase panels.
Problem with this is someone gets a little over-zealous on shipping day, and pulls the wires out of the panel... with the other end still plugged in!!!! now you're holding onto a widowmaker in one hand, and may not even be able to get it unplugged without help.
One guy did this with a 460v cord. Late in the evening, in fact, rushing to make it to the company Christmas party. There were 5 people in the unit, standing on a steel diamond plate floor. Although it burned a hole in the floor, it still tripped the breaker, and no one felt anything.
We minimized the situation by
1- ONLY allowing the electricians to connect/disconnect.
2- Rather than using a cord, we went to using a male cord cap wired directly to the lighting circuit WIRES. Makes the lighting circuit just one big, plug in light... nothing able to be disconnected! The panel was then ONLY heated up for testing by one of us, and those temp cords kept under lock and key.