본문으로 건너뛰기
cccskills
무료GitHub에 공개

fec-vue3-project-standard

Use when designing or reviewing Vue 3 + TypeScript project structure, SFC/component boundaries, composables organization, route composition, Pinia ownership, API/error/styling defaults, directives, or repository-wide Vue conventions. Prefer narrower skills for forms, data fetching, tests, accessibility, virtualization, animation, or security deep dives; Chinese triggers include Vue 3 project specification, Vue component architecture.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(5)

  • SKILL.md4.8 KB
  • references/vue3-composables-routing.md5.3 KB
  • references/vue3-performance-patterns.md604 B
  • references/vue3-project-structure.md8.0 KB
  • references/vue3-state-api-quality.md6.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Vue 3 project specifications

For repositories using Vue 3 + TypeScript.

Purpose

Provides project structure, component boundaries, Composables, and default implementation conventions for Vue 3 + TypeScript projects to ensure conventional development and type safety.

Procedure

  1. Identify the existing Vue conventions in the warehouse: directory, routing, Pinia, request layer, style system, component library and test framework.
  2. Demarcate the boundaries between pages, business components, common components, composables, stores, services and utils.
  3. Prioritize the existing automatic import/module export conventions of <script setup lang="ts">, composite API and warehouse.
  4. Complete state ownership, API layer, error handling, style isolation and special skill offloading when outputting.
  5. Pages and modules must have recoverable error UI; global errorHandler, onErrorCaptured, request error mapping and routing error page have clear division of labor.
  6. Tailwind token/variant or responsive layout requirements should be diverted to corresponding special skills to avoid stuffing style system rules into Vue component specifications.
  7. When the state ownership is complex, first make a state list; when the boundaries of DTO, public props, generic composable or tsconfig are complex, first use the TypeScript project specification process to converge cross-framework type contracts.
  8. When designing reusable composables, clarify whether the input supports plain value, ref, computed or getter; when testing Vue components, cover the common boundaries of Pinia, Router, Teleport, Suspense and async setup.

Detailed reference

Load more detailed reference files as needed:

Constraints

  • Use <script setup lang="ts"> to disable using Options API to add new components
  • The size of the component file should be approximately 300 lines; if it exceeds 500 lines or is too complex, sub-components and Composables must be separated
  • Props / Emits must be defined using the TypeScript interface, and any is prohibited
  • Composable returns a readonly reference to prevent accidental external modifications
  • Do not store UI temporary states (modal switches, form inputs, etc.) in the store
  • Server-side data is first managed by the request library rather than manually stored in Pinia
  • Avoid using v-if in v-for (extract to computed filtering)
  • It is forbidden to import directly from the deep path inside the feature, bypassing index.ts
  • No need for global error handling to swallow recoverable API, form or permission errors within components.
  • Do not mistake function parameters for getter automatic calls; if composable parameters may be callbacks, avoid using getter input conventions.
  • Do not rely on snapshots as the only assertions for Vue components; asynchronous components, Teleport and Pinia scenes must have user-visible behavior assertions.

Expected Output

  • The component uses <script setup lang="ts">, and the Props/Emits type is complete
  • Reusable logic has been extracted to composable, returning readonly reference
  • Loading / Error / Empty / Data status have been processed
  • Routing components are loaded using dynamic import, and state management conforms to the proximity principle
  • URL status, server status, form status and Pinia global status have clear boundaries
  • API calls have type constraints and unified error handling
  • Styles are isolated using scoped, and key behaviors are covered by tests
  • The file structure is consistent with the project convention (pages/features/components are separated)
  • Input responsiveness, Pinia/Router boundaries and asynchronous component testing strategies for reusable composables explained

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

用于审查或改进前端无障碍、语义结构、键盘支持、焦点管理、ARIA 标签、屏幕阅读器行为、WCAG 2.2 问题、触控无障碍或辅助技术回归;中文触发词包括 无障碍、accessibility、a11y、WCAG、屏幕阅读器。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bovinphang/frontend-craft222026년 9월 26일 업데이트

Use when reviewing or improving frontend accessibility, semantic structure, keyboard support, focus management, ARIA labels, screen reader behavior, WCAG 2.2 issues, touch accessibility, or assistive-technology regressions; Chinese triggers include accessibility, accessibility, a11y, WCAG, screen reader.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bovinphang/frontend-craft222026년 9월 26일 업데이트

Use when absorbing ideas, capabilities, workflows, architecture, quality systems, ecosystem extensions, or engineering practices from any reference system into the current project through original, project-native redesign rather than copying.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bovinphang/frontend-craft222026년 9월 26일 업데이트

用于从参考系统中吸收想法、能力、工作流、架构、质量体系、生态扩展或工程实践,并通过原创的项目内重设计转化为当前项目能力,而不是复制原实现。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bovinphang/frontend-craft222026년 9월 26일 업데이트

用于设计、实现或审查前后端 API 集成、类型化 API client、REST/tRPC/OpenAPI 客户端选型、认证刷新、API 错误映射、上传流程、SSE/WebSocket/轮询选择、CORS 相关前端行为或跨边界 loading/error 状态。不要用于纯后端服务架构或仅 TanStack Query 缓存策略;中文触发词包括 API 集成、前后端联调、typed API client、接口错误处理、SSE、WebSocket。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bovinphang/frontend-craft222026년 9월 26일 업데이트

Use when designing, implementing, or reviewing frontend-to-backend API integration, typed API clients, REST/tRPC/OpenAPI client choices, auth refresh, API error mapping, upload flows, SSE/WebSocket/polling choices, CORS-facing frontend behavior, or cross-boundary loading/error states. Do not use for backend-only service architecture or TanStack Query cache policy alone; Chinese triggers include API integration, front-end and back-end joint debugging, typed API client, Interface error handling, SSE, WebSocket.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

bovinphang/frontend-craft222026년 9월 26일 업데이트

bovinphang의 스킬 모두 보기

이 스킬의 문제 신고