vue-component-design

vue-component-design is a skill for Claude Code, Codex from soulcodex/agentic. It costs 70 tokens per session (745 once invoked), scanned A, original, MIT.

A set of guidelines for designing Vue 3 component interfaces: the inputs, outputs, content areas, and controls that components expose.

In plain words
What is it for?
Use it when creating or refactoring Vue components, deciding between props, events, slots, shared state, and two-way binding, or reviewing a component's public interface.
Why use it?
It helps keep components focused and prevents complicated chains of passing data between components.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/soulcodex/agentic/vue-component-design
Any agent
npx skills add soulcodex/agentic --skill vue-component-design
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vue-component-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/vue-component-design.svg)](https://agentmods.dev/skills/soulcodex/agentic/vue-component-design)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/vue-component-design"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/vue-component-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00070 $0.00745
Opus 5 $0.00035 $0.00373
Sonnet 5 $0.00014 $0.00149
Haiku 4.5 $0.00007 $0.00075

Measured 4d ago against content hash 422b0f7ffe6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vue-component-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ui/vue-component-design/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vue Component Design Skill

Step 1 — Identify the Component's Responsibility

Determine the component type before designing the API:

  • Page component — orchestrates data fetching, permissions, and layout. Coordinates child components. Tests: mock data fetching, verify correct children are rendered.
  • Feature component — contains feature-specific business logic and local state. May call store actions. Tests: mock store, assert state changes.
  • UI component — pure presentational, props + slots only, no async logic, no store access. Tests: assert correct markup for given props.

Step 2 — Design the Public API Surface

  • Props: minimal, typed with TypeScript interfaces, withDefaults for optional props with safe defaults.
  • Emits: typed defineEmits<{ eventName: [payload] }>() — one event per user action.
  • Slots: default for content, named for layout regions, scoped when parent needs child-provided state.
  • expose(): only for imperative handles (focus, open, reset) — never expose internal state.
  • Use defineModel<T>() (Vue 3.4+) for two-way binding instead of modelValue + update:modelValue.

Step 3 — Evaluate Prop Drilling Depth

Count how many component levels the data crosses:

  • 1–2 levels → props are acceptable
  • 3+ levels through components that do not use the data → refactor to provide/inject with typed Symbol keys
  • Global / cross-feature / persisted → Pinia store
// keys.ts
import type { InjectionKey } from 'vue'

export const AccordionKey: InjectionKey<{
  openId: Readonly<Ref<string | null>>
  toggle: (id: string) => void
}> = Symbol('accordion')

Step 4 — Composition Review

  • Does the component do too much? Apply single responsibility: extract orchestration logic into a composable, keep the template as a thin consumer.
  • Are slots used where a child component should receive data and render itself? Prefer scoped slots over prop-drilling display logic.
  • Is <Teleport> needed? Use for modals, toasts, and dropdowns that must escape their stacking context.

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 74 lines · 70 tokens per session scan A 422b0f7ffe6c

Subscribe to this mod's changes

vue-component-design is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 4d ago), licensed MIT. It adds 70 tokens to every session and 745 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

design-debt-audit

Inventory and prioritise accumulated design inconsistencies across a product. Use when drift has built up over time. For token coverage specifically use design-token-audit (designer-toolkit); for WCAG gaps use accessibility-audit (design-systems).

Owl-Listener/designer-skills · 59 tokens

design-impact-reporting

Communicate design's contribution to business and user outcomes in stakeholder language. Use when reporting results upward. For choosing the metrics in the first place, use metrics-definition (ux-strategy).

Owl-Listener/designer-skills · 44 tokens

research-repository

Build a repository that makes findings findable, reusable, and cumulative across teams. Use when the same research keeps getting redone. For synthesising one study, use affinity-diagram.

Owl-Listener/designer-skills · 43 tokens

localization-design

Design for multiple languages, writing directions, and cultural contexts — text expansion, RTL mirroring, and locale formats. Use when shipping beyond one locale. For the words themselves, use ux-writing (designer-toolkit).

Owl-Listener/designer-skills · 49 tokens

motion-system

Define motion tokens — durations, easing vocabulary, and reduced-motion handling — for consistency product-wide. Use when standardising motion across a system. For crafting one specific animation, use animation-principles (interaction-design).

Owl-Listener/designer-skills · 48 tokens

design-negotiation

Advocate for design quality, scope, and timeline with partners and leadership using evidence and shared goals. Use in the conversation itself. For the commercial vocabulary behind it, use business-design (ux-strategy).

Owl-Listener/designer-skills · 48 tokens