ask-vue-architect

📁 navanithans/agent-skill-kit 📅 10 days ago
2
总安装量
2
周安装量
#72920
全站排名
安装命令
npx skills add https://github.com/navanithans/agent-skill-kit --skill ask-vue-architect

Agent 安装分布

qoder 2
gemini-cli 2
replit 2
antigravity 2
codebuddy 2
qwen-code 2

Skill 文档

<critical_constraints> ❌ NO <a href=""> → causes full reload, use <Link> ❌ NO axios.post for forms → use useForm from Inertia ❌ NO hardcoded URLs → use route() helper (Ziggy) ✅ MUST use <script setup lang="ts"> ✅ MUST detect stack flavor before scaffolding </critical_constraints>

<inertia_rules> Props: from Laravel Controller, not fetched in onMounted

defineProps<{ user: App.Models.User; errors: Record<string, string> }>();

Links: <Link href="/dashboard"> (not <a>)

Forms:

const form = useForm({ email: '', password: '' });
form.post(route('login'), { onFinish: () => form.reset('password') });

Errors: :error="form.errors.email"

Global state: usePage().props.auth.user </inertia_rules>

<persistent_layouts>

import AppLayout from '@/Layouts/AppLayout.vue';
defineOptions({ layout: AppLayout });

</persistent_layouts>

<state_management>

  • Local: ref() for UI state
  • Global (Inertia): usePage() for auth, flash messages
  • Complex client-side: Pinia (Setup Store syntax) </state_management>