Quickly knowing which existing laws you're treading on while writing a new one, and then mapping them to precedents... that sounds like it might be useful feedback for somebody embarking on a legal refactor.
Unfortunately, principle of explosion means that if the legal system has a single contradiction, then every law both contradicts and agrees with every other law.
This all misses the point. Lawyers have jobs exactly because laws are intentionally written to be vague and have loopholes, even contradictions. That field wants human in the loop.