Question about rig panel

I do a rig and I want him to have a panel in the left tools

On this panel there will have to be buttons with the name of the bones to which they correspond
A bit like here:
[ATTACH=CONFIG]496687[/ATTACH]

If someone will have a script that I can copy and then match my bones and duplicate the line

Will already be great

+If somebody can tell me how to make a ik/fk snapping