frontend-guidelines

Enforce Vue 3 frontend conventions across components, routing, and state management.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/asadbek21coder/sinfim --skill frontend-guidelines-asadbek21coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-guidelines
Source: https://github.com/asadbek21coder/sinfim/tree/main/frontend-vue/.claude/skills/frontend-guidelines
Command: npx skills add https://github.com/asadbek21coder/sinfim --skill frontend-guidelines-asadbek21coder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a single source of truth for frontend architecture, naming conventions, and coding standards to prevent ad-hoc patterns and ensure maintainability across the Vue blueprint.

Core Features & Use Cases

  • Standardized file structure under src/ (api, stores, types, router, layouts, components, views, assets) to keep domain boundaries clear.
  • Layered rules guiding data flow: types mirror backend DTOs, api handles HTTP calls, stores manage shared state, views orchestrate data and user actions, and components remain dumb UI units.
  • Enforced coding standards: script setup with TypeScript, no Options API, no raw axios in components, typed refs, and consistent error handling.
  • Tech stack guidance including Vue 3 Composition API, Vite, TypeScript, Pinia, Vue Router, Axios, and Tailwind CSS to ensure coherence across projects.

Quick Start

Apply these guidelines to structure and implement any new Vue feature according to the documented architecture and rules.

Frequently Asked Questions about frontend-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Vue 3 project to keep domain boundaries clear?

Vue 3 projects should use a standardized file structure under src/ with api, stores, types, router, layouts, components, views, and assets directories. This organization keeps domain boundaries clear and ensures maintainability across the frontend blueprint.

What's the best way to manage shared state in Vue 3 with Pinia?

Manage shared state in Vue 3 by using Pinia stores to handle data flow separately from UI components. Stores manage shared state, views orchestrate data and user actions, and components remain dumb UI units following strict layered rules.

Why should I avoid direct axios usage in Vue components?

Avoid direct axios usage in Vue components to maintain strict frontend architecture layering. API calls belong in a dedicated api layer managing HTTP calls, keeping components as dumb UI units and ensuring consistent error handling across the Vue blueprint.

Does this Vue frontend guideline enforce TypeScript in script setup?

Yes, these Vue frontend guidelines enforce coding standards using script setup with TypeScript. The rules prohibit the Options API, require typed refs, ensure consistent error handling, and mandate that types mirror backend DTOs for strict layering.

Can I use inline styles in Vue components following these frontend conventions?

No, inline styles are prohibited under these frontend conventions. The tech stack guidance recommends using Tailwind CSS for styling instead, ensuring coherence and clean code across all Vue 3 project components and views.