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

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/vue-component-design
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vue-component-design

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00070 $0.00745
Opus 5.5 $0.00028 $0.00298
Sonnet 5.5 $0.00014 $0.00149
Haiku 4.5 $0.00007 $0.00075

Measured 1mo ago against content hash 422b0f7ffe6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 1mo ago), licensed MIT. It adds 70 tokens to every session and 745 once invoked, about $0.0003 per session on Opus 5.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

guidance-api-design

Component API design patterns following Elements conventions for properties, attributes, CSS custom properties, slots, and events. Use this skill whenever the user is designing or deciding on a component API, choosing between properties vs attributes vs slots, naming CSS custom properties, designing events, avoiding…

NVIDIA/elements · 103 tokens

agent-upkeep

Perform one small, scoped maintenance improvement to the Elements monorepo and open a single reviewable pull request. Use this skill for scheduled or unattended upkeep runs that improve unit test coverage for one file, fix one behavioral bug in one module, or move one off ESLint rule toward enforcement to reduce…

NVIDIA/elements · 115 tokens

agent-dependencies

Perform one conservative dependency or toolchain upgrade in the Elements monorepo and open a validated pull request. Use for nightly or unattended dependency maintenance, outdated package checks, first-party actions/ GitHub Actions updates, and pinned mise tool updates. Use the github-dependabot skill instead when the…

NVIDIA/elements · 73 tokens

summarize-video-releases

Create the 24–36 second marketing video for a monthly NVIDIA Elements “What’s New” post, rendered to projects/site/public/static/video/releases/MM-YYYY.webm from real Elements components, with feature snapshots inserted into the post. Use after the summarize-releases skill creates or updates a post, and whenever…

NVIDIA/elements · 109 tokens

summarize-releases

Create a monthly NVIDIA Elements “What’s New” docs page, matching video, and concise, copy-ready summary from local release tags, tagged changelogs, package versions, and commit history. Use for a scheduled release PR, monthly update, release roundup, changelog digest, Slack blurb, announcement, or plain-language…

NVIDIA/elements · 77 tokens

authoring-benchmarks

Design, implement, run, debug, and interpret browser performance benchmarks for Elements components and utilities. Use whenever the user asks to benchmark or performance-test runtime code, create or update a .test.bench.ts file, compare benchmark results, investigate a browser performance regression, understand Vitest…

NVIDIA/elements · 105 tokens