ask-vue-architect
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>