ResourceLoader supports skinStyles and a lesser known skinScripts.
For skinStyles, the the ResourceModuleSkinStyles attribute can be used by skins in skin.json to specify skins to add to existing modules, however there is no equivalent for skinScripts (e.g. "ResourceModuleSkinScripts")
Note: See T251957 - it's likely skinScripts would not have any impact on modules using packageFiles.