frontend-component-refactoring

Refactor Vue components into Base/Public/Admin with CSS variables.

2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/arpa73/AIKnowSys --skill frontend-component-refactoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-component-refactoring
Source: https://github.com/arpa73/AIKnowSys/tree/main/.github/skills.backup/frontend-component-refactoring
Command: npx skills add https://github.com/arpa73/AIKnowSys --skill frontend-component-refactoring

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of duplicating HTML/CSS patterns across a Vue.js project by guiding teams to refactor into a lean, reusable component library with a consistent theming system.

Core Features & Use Cases

  • Component categorization: Organize UI into Base/Public/Admin to improve discoverability and reuse.
  • Theme separation: Introduce CSS variables and separate public/admin themes for consistent styling.
  • Migration workflow: Provide a structured process for extracting base components from large views and reducing duplication.
  • Design system alignment: Align components with a shared design vocabulary (buttons, cards, forms, typography) to ensure UX consistency.

Quick Start

Audit the codebase to identify repeated HTML/CSS patterns, then start by extracting core base components (e.g., BaseButton.vue, BaseCard.vue) and wiring them into public/admin layouts. Define theme variables in frontend/src/styles/themes and apply theming across routes.

Frequently Asked Questions about frontend-component-refactoring

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

FAQPage Schema
How do I refactor Vue components to reduce duplicated HTML and CSS patterns?

A Vue component refactoring workflow extracts repeated HTML and CSS patterns into reusable base components like BaseButton and BaseCard, reducing duplication and improving long-term maintainability across the project.

What is the best way to organize a Vue component library for public and admin interfaces?

Organizing a Vue component library involves categorizing components into Base, Public, and Admin groups. This taxonomy improves discoverability and reuse, allowing teams to wire shared base components into distinct public and admin layouts while maintaining a consistent design system.

How do I apply a shared theming system using CSS variables in Vue.js?

To apply a shared theming system using CSS variables in Vue.js, define theme variables in a central styles directory and separate public and admin themes. This enforces consistent styling across routes and aligns the UI with a shared design vocabulary.

Does Tailwind work with a CSS variables theming system for Vue components?

Tailwind can work with a CSS variables theming system by aligning utility classes with defined CSS variables for public and admin themes. This approach enforces consistent styling across Vue components and maintains a shared design vocabulary throughout the application.

Can I use this Vue component refactoring workflow for an existing large codebase?

You can use this refactoring workflow for an existing large Vue codebase. The migration process extracts base components from large views, reduces existing duplication, and documents the architecture using a reusable component taxonomy.

When should I separate public and admin themes in a Vue design system?

You should separate public and admin themes in a Vue design system when distinct interfaces require different styling contexts. Introducing CSS variables for each theme ensures consistent styling, prevents CSS conflicts, and maintains UX consistency across different route layouts.