A few tips and tricks I’ve come across. Starting off small!
Say you have a whole bunch of clusters set in your kubeconfig file and you want to extract one. Just one.
Set your config to that cluster (maybe use kubectx) and do:
kubectl config view --minify --raw > cluster.kubeconfig
See the shell operator. Good times!