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.
npx agentmods add skills/soulcodex/agentic/vue-component-designnpx skills add soulcodex/agentic --skill vue-component-designgit clone --depth 1 https://github.com/soulcodex/agenticWrote 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.
[](https://agentmods.dev/skills/soulcodex/agentic/vue-component-design)<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>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.
| Model | Per session | Once 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 |
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.
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,
withDefaultsfor 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 ofmodelValue+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/injectwith 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.
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.
- 4d ago First seen · 74 lines · 70 tokens per session scan A 422b0f7ffe6c
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.
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).
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).
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.
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).
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).
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).