It is true, while I am thinking about this myself, I was indeed looking for a Gang of Four like pattern rules which makes the archetype development predictable, and also advises for efficiency and consistency, and indeed, also machine processable.
This is important, tell people to use a cluster-slot for a dataset, always do. If it does not exist, write it. And never use wild/wild (very wild) cards in those slots. Wild/wildcards should only be permitted in root container entry-archetypes, not in pointers to specific datasets.
There is a risk of rewriting archetypes, while there are similar archetypes, because they cannot find for what archetypes are already used for, or risk for including structures in a new archetype
But when you demand this kind of things, you also have the obligation to offer help, and that is possible. Because it is not anymore allowed to use wild/wild cards, you can machine generate a mindmap of all the existing archetypes. Not the overview mindmap which is already on CKM, that is just a translation of the tree on the left, but a dependency mindmap.
So for example (having the risk that it is a wrong example)
Medication-action can be replaced with:
Action
*> Cluster Medication Action
→ Medication
->> Product
->> Medication course, etc.
*> is a wild/wild card
→ is a more specific wild card
->> leaf node archetypes, only containing lists of leaf nodes, maybe only one level of structure
So, concluding, we need rules (pattern) and (machine generated) guidance, and a redesign of the existing archetypes following the rules and guidance.
These are my two cents
Bert