You can download this tool from Nukepedia:
http://www.nukepedia.com/python/nodegraph/shufflefromviewer
or Github:
https://github.com/conradolson/nuke-tools/blob/main/shuffleFromViewer.py
------
This is a quick demo of a python script that I wrote that will automatically create a shuffle node, with the input set to whatever layer you are currently viewing in the viewer.
I created this to speed up my workflow when I'm working with CG renders that come with loads of AOVs. Hopefully others find it useful too.
To install the script, download the shuffleFromViewer.py file and move it to wherever you keep your python scripts (this is usually a folder in your .nuke folder), then make sure you add "import shuffleFromViewer" to your menu.py file.