vue-component-development

Activate when creating or modifying Vue 3 components, pages, layouts, state management, or services under resources/app/. Intended for work involving component patterns, DaisyUI usage, icon systems, Toast notifications, drawer patterns, form handling, and SPA routing/authentication flows.

Last repository push
GitHub Stars
147
Forks
61
Issues / PRs
5

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "vue-component-development" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-38ef21f5cc2a994887dec5bd040f34c50adcf1d37588daa035f1e013c867edf9. Verify the upstream source and version against https://github.com/gdarko/laravel-vue-starter before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Activate when creating or modifying Vue 3 components, pages, layouts, state management, or services under resources/app/. Intended for work involving component patterns, DaisyUI usage, icon systems, Toast notifications, drawer patterns, form handling, and SPA routing/authentication flows.

0 Downloads

Introduction source: third_party · gdarko · 0.0.1 Reference

SkillPi interpretation

Tasks
Activate when creating or modifying Vue 3 components, pages, layouts, stores, or services in the frontend. Covers component patterns, DaisyUI usage, icon system, toast notifications, drawer patterns, form handling, and the SPA routing/auth flow. Use when working in resources/app/.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: vue-component-development
description: "Activate when creating or modifying Vue 3 components, pages, layouts, stores, or services in the frontend. Covers component patterns, DaisyUI usage, icon system, toast notifications, drawer patterns, form handling, and the SPA routing/auth flow. Use when working in resources/app/."
license: MIT
metadata:
  author: project

Vue Component Development

Patterns and conventions for building Vue 3 frontend components in this project.

Component Architecture

Directory Structure

  • views/layouts/ — Layout wrappers (Page, Menu, Auth)
  • views/components/ — Reusable UI components (Button, TextInput, Table, Modal, etc.)
  • views/components/icons/ — Icon system (Icon, Avatar, Spinner)
  • views/components/input/ — Form input components
  • views/components/filters/ — Filter components for list pages
  • views/pages/ — Page-level components organized by auth/private/shared
  • stores/ — Pinia stores (auth, toast, alert, global)
  • services/ — TypeScript API service classes extending BaseService
  • helpers/ — Pure utility functions

Component Conventions

  • Use Options API with defineComponent() and setup() function (project convention)
  • Use reactive() for form state, ref() for simple values, computed() for derived state
  • Import components explicitly — no global registration
  • Props use camelCase in JS, kebab-case in templates

UI Framework: DaisyUI 5

This project uses DaisyUI 5 on top of Tailwind CSS 4. Prefer DaisyUI component classes over hand-rolled Tailwind.

Key classes

  • Buttons: btn btn-primary, btn-success, btn-error, btn-outline, btn-ghost, btn-sm
  • Inputs: input input-bordered, textarea textarea-bordered, select
  • Cards: card bg-base-100 shadow, card-body, card-title
  • Tables: table with hover on <tr>
  • Badges: badge badge-success, badge-error, badge-warning, badge-info
  • Alerts: alert alert-success, alert-error
  • Modal: modal, modal-open, modal-box, modal-backdrop
  • Navigation: navbar, menu, breadcrumbs, dropdown
  • Loading: loading loading-spinner, skeleton
  • Layout: drawer, drawer-side, drawer-content

Theme Colors

Use semantic DaisyUI colors, not raw Tailwind colors:

  • primary (teal), secondary, accent, neutral
  • success, warning, error, info
  • base-100 (surface), base-200 (background), base-300 (border), base-content (text)
  • Opacity variants: text-base-content/50, border-base-300/50

Dark Mode

The project supports light/dark themes via data-theme attribute on <html>. Both themes use the same teal primary. Custom sidebar colors use --color-sidebar / --color-sidebar-content CSS variables that adapt per theme. Never hardcode white/black — use semantic DaisyUI colors.

Icon System

Icons use a thin wrapper around Heroicons:

<Icon name="users" class="h-5 w-5" />

To add a new icon: import it in views/components/icons/Icon.vue from @heroicons/vue/24/outline and add a name→component entry to the iconMap.

Toast Notifications

Use the toast store for user feedback instead of inline alerts:

import {useToastStore} from "@/stores/toast";
const toastStore = useToastStore();
toastStore.success('Done!');
toastStore.error('Failed.');
toastStore.info('FYI...');
toastStore.warning('Careful!');

Toasts auto-dismiss after 5 seconds. They accept strings, arrays, or validation error objects.

Drawer Pattern for CRUD

List pages use a slide-in drawer instead of separate create/edit pages:

  • Drawer state: reactive({ open, mode, loading, form })
  • Open with drawer.open = true and set drawer.mode to 'create' or 'edit'
  • Close with drawer.open = false, refresh list on success
  • Use <Transition name="slide-right"> for animation and <Teleport> if needed

API Services

  • Services extend BaseService or ModelService (for CRUD)
  • ModelService provides: index(), store(), update(), delete(), edit(), find()
  • handleCreate() and handleUpdate() manage loading states and toast notifications
  • PUT/PATCH use POST with _method field to support FormData file uploads

Form Handling

  • Use reactive() for form state
  • Use reduceProperties(form, ['roles'], 'id') to flatten nested objects before submission
  • Use fillObject(form, data) to populate form from API response
  • Use clearObject(form) to reset form

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 Vue 3 组件开发的完整规范与模式,涵盖组件架构、UI 框架、图标系统、Toast 通知、抽屉模式、表单处理等
  • 适用于前端开发者在 resources/app/ 目录下工作,具有明确的实用价值和广泛受众
Trigger Precision95/100

Highlights

  • description 明确描述了激活场景(创建或修改 Vue 3 组件等)和使用范围(resources/app/ 目录)
  • 覆盖多种组件类型和开发模式,边界清晰,触发词精准完整
Structure and Standards95/100

Highlights

  • 文档结构清晰,分章节介绍组件架构、UI 框架、图标系统、Toast 通知、抽屉模式、API 服务、表单处理等
  • 每个部分都有详细说明和示例代码,frontmatter 完整,单文件未超过 500 行
Execution Reliability90/100

Highlights

  • 提供了具体的代码示例和最佳实践,工具来源明确(DaisyUI、Heroicons、Pinia)
  • 参数使用正确,覆盖了主要的使用场景和异常处理建议
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • heroicons.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.