I created this transmute spells line (Tactical spell) and gave it a somewhat high priority (in the 30ish so yeah, somewhat high).
Interesting. But what do battles look like now? I believe auto-resolve combats are now huge Internationl Transmutational Olympic Contests.
But seriously - AI pays more attention to metal than crystal, so it always have lack of crystals. Default units don't use many items which require crystals. After you made the xtraunits mod, you made more elite ai troops which need crystals. By making the spell, you shifted balance from metal to crystal... For some period AI prospered. But now AI is sitting without metal. How to struggle with this?
I think, thare is nothing bad to give all AI units possibility to produce resources themselves as it is done in Patchwork mod https://forums.elementalgame.com/450250/page/1/ With the help of AI-only units it's possible to help AI with resources, unrest, fame, production, city growth. Thus AI can grow 5 level cities even on 1 grain tiles, never suffer from unrest, produce evrything quickly. You can take ideas for your mod from my CoreUnits file.
Note that from Expert level AI is already cheating, but all levels before Expert are weak and not interesting. Stupid AI needs stupid help imho, but this should be done invisibly for human player.