Agent-Skill-Kit

Vue Mechanic

Expert maintenance skill for Vue 3 within Laravel Inertia. Fixes navigation reloads, prop mismatches, and reactivity issues.

1. The “Inertia Flow” Protocol

Trigger: “Page is reloading full screen”, “Props are missing”, or “Back button is broken”.

A. The “Silent Reload” Check

B. The “Prop Tunnel” Check

2. The “Ziggy & Forms” Protocol

Trigger: “Route not found” or “Form isn’t showing errors”.

A. Routing (Ziggy)

B. Form Submission (useForm)

3. The “Reactivity Loss” Protocol (Standard Vue)

Trigger: “Input isn’t typing” or “Value won’t update”.

  1. Destructuring: Did you do const { name } = props?
    • Fix: Reactivity is lost. Use props.name directly in template, or toRefs(props) in script.
  2. Ref vs Value: In <script setup>, did you forget .value?
    • Fix: count.value++, not count++.

4. Console Noise Filter

When debugging, ignore these benign warnings, but ATTACK these errors: