Easiest way to make a skybox?

Hello everyone, I’m trying to make a skybox and wanted ideas about the best way.
I thought about creating a giant cube around my scene, placing its centroid in the same position of the camera. But I do not know if it’s the best way.

Is there any difference in performance using a texture in a small or large cube?

I tried but when the camera moved some parts of the screen flashed to black.

If anyone know of a tutorial I would like to look.

Any suggestions would help me a lot.

Maybe disable the test of depth (Z buffer) when drawing it. Draw it before all other objects of the scene.