/frontend-vue:component-architecturefrom frontend-vue
Use 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).
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 project with a src/ tree, and a component about to be created, moved or split.
Out: the component sits in the layer its knowledge allows, imports only downward, and an
existing primitive was reused or extended before a new one was built. The checkable expectations
are in evals/rubric.json.
| Layer | Folder | Knows about | Example |
|---|---|---|---|
| pages or views | src/pages/ (src/views/ in Vue Router apps, pages/ in Nuxt) | routes, which features to compose | DashboardPage.vue |
| layouts | src/layouts/ | the app chrome: shell, rail, top bar, overlays | AppShell.vue, SideRail.vue |
| features | src/features/<feature>/ | one domain concept, its store, its API | features/feed/FeedPanel.vue |
| ui primitives | src/components/ui/ (or src/ui/) | nothing of the domain: props in, events out | Pill.vue, Segmented.vue, Sheet.vue |
| composables and lib | src/composables/, src/lib/ | pure logic, no components | useColourScheme.ts, lib/feed.ts |
Imports go down only: a page composes features and layouts; a feature uses primitives, its own store and composables; a primitive imports nothing above itself. A feature never imports another feature's component; it goes through the page, a shared primitive, or a store.
src/components/ui (and the barrel if there is one) for the
control by concept, not by the name you have in mind. Found: reuse it; almost: extend it with a
prop or a variant; only then build. For behaviour-heavy primitives (dialog, tooltip, combobox,
drag) walk meta:reuse-first: a headless library usually wins over hand-rolled DOM.label and tone, it is a primitive.features/feed/{FeedPanel.vue,FeedItem.vue,feed.store.ts,useFeedSearch.ts,feed.test.ts}.
A primitive is one file, or a folder when it has a story and a test beside it.ui/. Promote it to ui/
on the second use, when its props have stopped changing.provide/inject only for a true context (theme, the current workspace) and typed with an
InjectionKey; never as a shortcut for passing data two levels down.frontend-vue:state-pinia); shared logic is a composable
(frontend-vue:composables-vueuse); a component owns only what is displayed.grep -rn "from '@/features/" src/features/<feature>/ → no import of another feature's
component.grep -rn "from '@/features\|from '@/pages" src/components/ui → nothing.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/bem-stylesBEM in scoped stylesUse 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)./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