generate mesh from armature

Hallo
I have an armature and want to create a collection of meshes (cubes or octahedron) which are related 1 to 1 to the bones of the armature.
Is there already a script for this functionality to reuse?

thanks in advance.