npx skills add https://github.com/chrysaliscat/designgraduation --skill 'Frontend Expert'此技能提供在 RuoYi-Vue 生态系统中开发和调试前端组件的专业知识。
.vue 组件(位于 src/components 中)。request.js 处理所有 API 调用(自动注入令牌)。this.$modal 进行提示(msgSuccess、msgError、confirm)。this.$download 进行文件导出。process.env.VUE_APP_BASE_API 前缀。rules 的 <el-form> 进行稳健的验证。<el-table> 进行自定义数据显示。问题:图片无法加载,因为它们存储为相对路径 /profile/upload/...。解决方案:始终使用包装方法:
methods: {
getImageUrl(url) {
if (!url) return '';
if (url.startsWith('http')) return url;
return process.env.VUE_APP_BASE_API + url;
}
}
场景:“添加到购物车”或“提交表单”。规则:在发送请求之前进行验证。
this.$refs["form"].validate(valid => {
if (valid) {
// 提交
}
});
<template> 有且仅有一个根元素。在处理 src/views 或 src/components 时调用此技能。它会强制你检查:
.catch(() => this.loading = false))每周安装次数
–
代码仓库
首次出现时间
–
安全审计
This skill provides specialized knowledge for developing and debugging frontend components in the RuoYi-Vue ecosystem.
.vue components (in src/components).request.js for all API calls (automatic token injection).this.$modal for prompts (msgSuccess, msgError, confirm).this.$download for file exports.process.env.VUE_APP_BASE_API using a helper method.广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
loading 状态。<el-form> with rules for robust validation.<el-table> with scoped slots for custom data display.loading states for buttons and tables.Problem : Images don't load because they are stored as relative paths /profile/upload/.... Solution : Always use a wrapper method:
methods: {
getImageUrl(url) {
if (!url) return '';
if (url.startsWith('http')) return url;
return process.env.VUE_APP_BASE_API + url;
}
}
Context : "Add to Cart" or "Submit Form". Rule : Validate before sending a request.
this.$refs["form"].validate(valid => {
if (valid) {
// submit
}
});
<template> has exactly one root element.Invoke this skill when working on src/views or src/components. It forces you to check for:
.catch(() => this.loading = false))Weekly Installs
–
Repository
First Seen
–
Security Audits
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装
Swift iOS HomeKit Matter 开发指南:控制智能家居与设备配网
402 周安装
iOS PencilKit 绘图开发指南:PKCanvasView、PKToolPicker 与 SwiftUI 集成
403 周安装
iOS VoIP 通话开发:CallKit + PushKit 集成原生通话 UI 指南
403 周安装
iOS性能监控与崩溃诊断:MetricKit框架完整使用指南
409 周安装
Swift EventKit 日历与提醒事项开发指南:iOS 日历事件增删改查与授权管理
415 周安装
文案撰写指南:PAS/AIDA/BAB框架,提升营销转化率
440 周安装