/frontend-vue:bem-stylesfrom frontend-vue
Use when writing or reviewing the styles of a Vue component — the <style scoped> block, BEM class names for its block, elements and modifiers, state classes bound from the template, design tokens as CSS variables, SCSS inside the component, Stylelint complaints about selector patterns, or moving rules from a global stylesheet into a component. Also when two components share a class name by accident. NOT for the SCSS token system itself or rem sizing (frontend-css:scss-modules, frontend-css:rem), nor for React components (frontend-react:component-structure).
Ships in frontend-vue. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
In: a Vue component's <style scoped> block being written or reviewed, in a project with a
global tokens stylesheet.
Out: the component's styles live in its own scoped block, every class follows BEM for exactly
one block named after the component, colours, spacing and radii come from tokens, and the global
stylesheet holds only tokens, resets and layout primitives. The checkable expectations are in
evals/rubric.json.
FeedItem.vue owns .feed-item.
Elements are .feed-item__title, modifiers .feed-item--unread, .feed-item__title--long.
Never nest deeper than block, element, modifier.<style scoped> (or lang="scss" scoped) for every component. Scoping prevents the clash;
BEM keeps the names readable and greppable, and a scoped block may still be overridden by a parent
through :deep(), which is the only acceptable way to reach into a child.:class="{ 'feed-item--unread': fresh }".
A modifier is a class the template toggles, never an inline style with a colour.color: var(--md-primary), padding: var(--space-3),
border-radius: var(--radius-card). A new value becomes a token first (frontend-css:scss-modules
for the SCSS variable system, frontend-css:rem for sizes).:root, dark scheme), resets, typography, and
layout primitives shared by many components (.island, .pill, .btn, .input). Everything
that belongs to one component moves into that component. A class used in two components either
becomes a primitive or a shared component.selector-class-pattern with the BEM pattern
^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$, stylelint-config-standard-scss
when SCSS is used. The config template is in frontend-vue:tooling (RMA-130)..card h2), no ids, no !important; specificity stays
flat so the cascade never fights the modifier.grep -n "class=" <file> → every class is <block>, <block>__<element> or a modifier of
those, with <block> the component's kebab-case name; primitives from the global sheet are the
only exceptions.grep -nE "#[0-9a-fA-F]{3,6}\b|[0-9]+px" <file> inside <style> → nothing but tokens and rem.npx stylelint "<file>" → clean.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/component-architectureComponent architectureUse before creating a Vue component or when deciding where one lives and what it may know — a reusable UI primitive, a feature component bound to the domain, a layout piece of the app chrome, a page or view, a component that only exists for one parent. Also when a component grew into two, when a feature reaches into another feature's component, when a page holds logic, or when asked "where does X go" in a Vue project. NOT for the inside of the .vue file (frontend-vue:sfc-conventions), nor for React (frontend-react:component-placement)./composables-vueuseComposables, VueUse firstUse when a Vue component needs behaviour that is not display — reading or writing local storage, the colour scheme or a media query, the clock, window size, an event source or websocket, a debounce or throttle, the clipboard, focus, keyboard shortcuts, intersection, drag position, fetch with abort — or when about to write a use* composable, review one, or decide whether a piece of logic belongs in a composable, a store or a component. VueUse is checked first. NOT for app-wide state (frontend-vue:state-pinia) and NOT for React hooks (frontend-react:hooks-registry).Other plugins' skills for the same job
npx claudepluginhub aquivalabs/bladeforge --plugin frontend-vue