Solution · AI-written code

AI-written Vue code

For teams whose Vue and Nuxt code is increasingly written by Claude Code, Cursor, Copilot, or other agents, the-doctor catches the mistakes those agents make most often: broken reactivity, hydration mismatches, leaked watchers, explicit imports of auto-imported APIs, and generic AI-looking UI. It runs offline in under two seconds on a large repo, so it fits inside the agent loop as well as in review.

The patterns agents ship

The ai-slop category exists because these are tells, not style preferences. Each one is a real rule id you can gate on:

  • no-destructure-props-without-toRefs: destructuring props loses reactivity
  • no-non-null-assertion-on-ref-value: ref.value! hides a real null path
  • no-explicit-imports-of-auto-imported and no-imports-from-vue-when-auto-imported in Nuxt
  • no-fetch-in-setup and no-useState-for-server-data instead of useFetch / useAsyncData
  • watch-without-cleanup and no-stale-timer-ref for leaked side effects
  • no-em-dash-in-string: the most reliable fingerprint of generated copy

Put it inside the agent loop

Tell the agent to audit only the files it touched and to stop when the gate passes. The Agent Skill published at the-doctor.report gives it the commands.

Terminal
npx -y @geoql/vue-doctor --staged --include-untracked --fail-on error
npx -y @geoql/vue-doctor --fix

Catch the generic look too

The design subcommand scores the UI separately, flagging gradient text, decorative blur orbs, default Tailwind palettes, uniform card grids, and missing alt text.