I think that even worse is that AI might choose just to write something, and skip using a library that is well maintained
In our somewhat “developer assisted” AI development it planned to use a library. We looked the library up and the GitHub page indicated it was “no longer maintained use other library Z”. When told AI agreed and compared the original to the new library (helpful), but it seemed to heavily weight GitHub stars more than active development.
Usually download counters and stars are signals for VC, which indirectly serve also as negative signals to me.