If you code and document something along these lines carefully, it might make a good submission for the Wolfram Function Repository. Could even show it here first to solicit comments e.g. for documentation wording.