Simple tool that extracts missing/superfluous keys from a yaml file
composer global require jandc/yaml-diff-tool
yaml-diff-tool /path/to/source.yaml /path/to/compared.yaml
outputs a yaml structure to stdout
if you want to save it to a file:
yaml-diff-tool /path/to/source.yaml /path/to/compared.yaml > output.yaml