ask-vue-mechanic
npx skills add https://github.com/navanithans/agent-skill-kit --skill ask-vue-mechanic
Agent 安装分布
Skill 文档
<critical_constraints>
â NO <a href=""> â use <Link> to prevent full page reload
â NO destructuring props â loses reactivity, use toRefs(props) or props.name
â NO forgetting .value â count.value++ not count++
â
MUST trace upstream to Laravel Controller for missing props
â
MUST run php artisan optimize:clear after route changes
</critical_constraints>
<silent_reload_fix>
Symptom: Full page refresh (white flash) on link click
Cause: Used <a> tag instead of Inertia Link
Fix: <Link href="/users"> instead of <a href="/users">
</silent_reload_fix>
<prop_tunnel_debug>
- Vue DevTools â inspect Inertia root component props
- Check Laravel Controller â is data passed in
Inertia::render()? - Check
HandleInertiaRequestsmiddleware for global data </prop_tunnel_debug>
<ziggy_routing>
Error: 'users.show' is not in the route list
Fix 1: php artisan optimize:clear
Fix 2: Check route in routes/web.php has ->name('users.show')
Fix 3: Pass params: route('users.show', user.id)
</ziggy_routing>
<form_debugging>
Symptom: Submit â spinner â nothing happens (no error shown)
Cause: 422 validation error, but UI not displaying it
Fix: Add error binding <div v-if="form.errors.email">{{ form.errors.email }}</div>
</form_debugging>
<reactivity_loss>
- Destructuring:
const { name } = propsâ useprops.namedirectly - Ref value:
count++âcount.value++</reactivity_loss>
<console_noise>
IGNORE: [Intervention] non-passive event listener (benign)
ATTACK: Prop "user" expects Object, got Array â Laravel returned [] not {}
</console_noise>