shared-table-scss-refactor

Consolidate duplicated invoice table CSS into a shared SCSS partial.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/obaDev95/myf-agent-skills --skill shared-table-scss-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shared-table-scss-refactor
Source: https://github.com/obaDev95/myf-agent-skills/tree/main/skills/shared-table-scss-refactor
Command: npx skills add https://github.com/obaDev95/myf-agent-skills --skill shared-table-scss-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extend the shared table SCSS partials (invoice-table.scss, per-tab partials) without breaking sibling tables. Defines what belongs in the shared partial vs per-SFC scoped styles, the @use path contract, and the verification steps. Use whenever you catch duplicated CSS across *HtmlTable.vue files, add a new utility class consumed by more than one table, or touch src/components/scoped-styles/invoice-table.scss.

Core Features & Use Cases

  • Centralizes shared CSS for invoice tables to avoid duplication and drift across multiple HtmlTable.vue components.
  • Enforces a clear split between shared partial rules and per-tab scoped styles.
  • Establishes the @use path contract and provides a structured workflow for migration and verification.
  • Use when you observe duplicated CSS across *HtmlTable.vue files or modifications to the shared invoice-table.scss.

Quick Start

Review and apply the shared-table-scss-refactor workflow to extract duplicate styles into the shared partial.

Frequently Asked Questions about shared-table-scss-refactor

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

FAQPage Schema
How do I consolidate duplicated CSS across multiple Vue components into a shared SCSS partial?

To consolidate duplicated CSS into a shared SCSS partial, extract the overlapping rules from your Vue SFCs into a shared file, update the components with the correct @use path, and run a build to verify no styling regressions.

What is the best way to separate shared table styles from per-component scoped styles in Vue SFCs?

Separating shared table styles from per-component scoped styles requires defining a clear split: place common rules in a shared SCSS partial and keep per-tab specific overrides directly within the scoped style block of each HtmlTable.vue file.

When do I need to update an invoice-table.scss shared partial?

You need to update an invoice-table.scss shared partial when you observe duplicated CSS across multiple *HtmlTable.vue files, add a utility class consumed by more than one table, or modify the existing shared styling rules.

How does the @use path contract work when migrating to shared SCSS partials?

The @use path contract establishes a structured workflow for migration by defining the exact import paths consumer SFCs must use to reference the shared partial, ensuring consistent styling and preventing broken imports during the refactor.

Can I refactor shared table CSS without breaking sibling invoice tables?

Yes, you can refactor shared table CSS without breaking sibling invoice tables by enforcing a strict split between shared partial rules and per-tab scoped styles, then running a build to verify that no visual regressions occur.