doctor:
    @if command -v akiforge >/dev/null 2>&1; then akiforge doctor; elif [ -f scripts/doctor.py ]; then python3 scripts/doctor.py; else echo "AkiForge is unavailable and no supported vendored doctor exists" >&2; exit 127; fi

status:
    @if command -v akiforge >/dev/null 2>&1; then akiforge status; else echo "AkiForge is required for status; the compatibility shim does not download or guess an engine" >&2; exit 127; fi

project-preflight:
    @if command -v akiforge >/dev/null 2>&1; then akiforge project preflight; else echo "AkiForge is required for preflight; the compatibility shim does not download or guess an engine" >&2; exit 127; fi

verify-targeted:
    @if command -v akiforge >/dev/null 2>&1; then akiforge verify targeted; else echo "AkiForge is required for verification; the compatibility shim does not download or guess an engine" >&2; exit 127; fi

verify-full:
    @if command -v akiforge >/dev/null 2>&1; then akiforge verify full; else echo "AkiForge is required for verification; the compatibility shim does not download or guess an engine" >&2; exit 127; fi

project-upgrade-check:
    @if command -v akiforge >/dev/null 2>&1; then akiforge project upgrade --check; else echo "AkiForge is required to preview thin-contract upgrades; vendored scripts remain usable but do not download an engine" >&2; exit 127; fi
