You might be able to use both the remote packages: and a local includes: (or packages) to merge both the common remote and local shared config. But I’m not sure and you’d need to look into it.
My first attempt example.
Second attempt using packages.
Alternatively, you can find the remote config from the package and copy it into a local common yaml, and manually change that local master when the remote one changes if required.