vue-input-skill

vue-input-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 38 tokens per session (2,990 once invoked), scanned A, original, Apache-2.0.

A planned Vue input component guide covering basic text inputs, icons, and text areas. The supplied description says it is not yet implemented.

In plain words
What is it for?
It is intended for adding text fields and text areas to Vue interfaces, but the available material does not describe a usable implementation.
Why use it?
There is not enough information to claim that it currently solves a specific input-building problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is intended for adding text fields and text areas to Vue interfaces, but the available material does not describe a usable implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/vue-input-skill
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 jiushiwon/wg-skills --skill vue-input-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

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-input-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-input-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/vue-input-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-input-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-input-skill/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-input-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-input-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-input-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,990 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.
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.00038 $0.02990
Opus 5.5 $0.00015 $0.01196
Sonnet 5.5 $0.00008 $0.00598
Haiku 4.5 $0.00004 $0.00299

Measured 23d ago against content hash c300da028dc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vue-input-skill 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 23d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (components/index.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

frontend/vue/vue-base-skill/vue-input-skill/SKILL.md · 450 lines

How it starts

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

Vue Input Skill

容器原则:必须嵌入 <base-card> 使用
零 HTML5 标签:使用 <div contenteditable role="textbox"> 模拟

输入框组件,详细规范见 base-input.md

引用组件

实现规范见同目录 base-input.md。

使用方式

<script setup lang="ts">
import { ref } from 'vue';
import { BaseInput } from 'vue-form-skill';

const value = ref('');
</script>

<template>
  <BaseInput v-model="value" placeholder="请输入内容" />
</template>

Props

参数 类型 默认值 说明
modelValue string | number '' v-model 绑定值
type 'text' | 'password' | 'search' | 'textarea' 'text' 类型
placeholder string '请输入' 占位符
disabled boolean false 是否禁用
readonly boolean false 是否只读
maxlength number - 最大字符数
clearable boolean false 是否可清空
showPassword boolean false 密码显隐切换
size 'sm' | 'md' | 'lg' 'md' 尺寸

事件

事件 参数 说明
update:modelValue (value: string | number) 值变化
input (e: Event) 输入时
change (e: Event) 失焦或回车时
focus (e: FocusEvent) 获得焦点
blur (e: FocusEvent) 失去焦点
clear () 点击清空
enter (e: KeyboardEvent) 回车键

插槽

插槽 说明
prefix 前缀内容(图标)
suffix 后缀内容(图标)

组件代码

BaseInput.vue

<script setup lang="ts">
import { ref, computed, watch, nextTick } from 'vue';

interface Props {
  modelValue?: string | number;
  type?: 'text' | 'password' | 'search' | 'textarea';
  placeholder?: string;
  disabled?: boolean;
  readonly?: boolean;
  maxlength?: number;
  clearable?: boolean;
  showPassword?: boolean;
  size?: 'sm' | 'md' | 'lg';
}

const props = withDefaults(defineProps<Props>(), {
  modelValue: '',
  type: 'text',
  placeholder: '请输入',
  disabled: false,
  readonly: false,
  clearable: false,
  showPassword: false,
  size: 'md',
});

const emit = defineEmits<{
  'update:modelValue': [value: string | number];
  input: [e: Event];
  change: [e: Event];
  focus: [e: FocusEvent];
  blur: [e: FocusEvent];
  clear: [];
  enter: [e: KeyboardEvent];
}>();

const inputRef = ref<HTMLDivElement>();
const isFocused = ref(false);
const isHover = ref(false);
const showPwd = ref(false);

const isTextarea = computed(() => props.type === 'textarea');

const isClearable = computed(() =>
  props.clearable && (isFocused.value || isHover.value) && !!props.modelValue,
);

const isShowPassword = computed(
  () => props.type === 'password' && props.showPassword,
);

const inputType = computed(() => {
  if (props.type === 'password' && showPwd.value) return 'text';
  return props.type;
});

// 密码模式:按真实长度生成掩码
const displayValue = computed(() => {
  const val = props.modelValue ?? '';
  if (props.type === 'password' && !showPwd.value) {
    return '●'.repeat(String(val).length);
  }
  return val;
});

// 是否达到 maxlength
const isMaxed = computed(() => {
  if (!props.maxlength) return false;
  return String(props.modelValue ?? '').length >= props.maxlength;
});

function handleBeforeInput(e: InputEvent) {
  if (isMaxed.value && e.inputType.startsWith('insert')) {
    e.preventDefault();
  }
}

function handleInput(e: Event) {
  const target = e.target as HTMLDivElement;
  const val = target.innerText;
  emit('update:modelValue', val);
  emit('input', e);
}

function handleFocus(e: FocusEvent) {
  isFocused.value = true;
  emit('focus', e);
}

function handleBlur(e: FocusEvent) {
  isFocused.value = false;
  emit('blur', e);
  emit('change', e);
}

function handleClear() {
  emit('update:modelValue', '');
  emit('clear');
  nextTick(() => inputRef.value?.focus());
}

function handleKeydown(e: KeyboardEvent) {
  if (e.key === 'Enter' && !e.shiftKey && !isTextarea.value) {
    e.preventDefault();
    emit('enter', e);
  }
}

// 外部值变化时同步 DOM
watch(
  () => props.modelValue,
  (val) => {
    if (inputRef.value && inputRef.value.innerText !== String(val ?? '')) {
      inputRef.value.innerText = String(val ?? '');
    }
  },
);
</script>

<template>
  <!-- textarea 模式 -->
  <div
    v-if="isTextarea"
    class="base-textarea"
    :class="[
      `base-textarea--${size}`,
      {
        'base-textarea--disabled': disabled,
        'base-textarea--focused': isFocused,
      },
    ]"
    @mouseenter="isHover = true"
    @mouseleave="isHover = false"
  >
    <div
      ref="inputRef"
      class="base-textarea__input"
      :contenteditable="!disabled && !readonly"
      role="textbox"
      :aria-disabled="disabled"
      :aria-readonly="readonly"
      :data-placeholder="placeholder"
      @input="handleInput"
      @focus="handleFocus"
      @blur="handleBlur"
      @keydown="handleKeydown"
    />
    <span v-if="maxlength" class="base-textarea__count">
      {{ String(modelValue ?? '').length }}/{{ maxlength }}
    </span>
  </div>

  <!-- input 模式 -->
  <div
    v-else
    class="base-input"
    :class="[
      `base-input--${size}`,
      `base-input--${inputType}`,
      {
        'base-input--disabled': disabled,
        'base-input--readonly': readonly,
        'base-input--focused': isFocused,
        'base-input--hover': isHover,
        'base-input--clearable': clearable,
      },
    ]"
    @mouseenter="isHover = true"
    @mouseleave="isHover = false"
  >
    <span class="base-input__prefix">
      <slot name="prefix" />
    </span>

    <div
      ref="inputRef"
      class="base-input__input"
      :contenteditable="!disabled && !readonly"
      role="textbox"
      :aria-disabled="disabled"
      :aria-readonly="readonly"
      :data-placeholder="placeholder"
      @input="handleInput"
      @beforeinput="handleBeforeInput"
      @focus="handleFocus"
      @blur="handleBlur"
      @keydown="handleKeydown"
    />

    <span class="base-input__suffix">
      <span
        v-if="isClearable"
        class="base-input__clear"
        role="button"
        aria-label="清空"
        tabindex="-1"
        @mousedown.prevent
        @click="handleClear"
      >
        x
      </span>

      <span
        v-if="isShowPassword"
        class="base-input__password"
        role="button"
        :aria-label="showPwd ? '隐藏密码' : '显示密码'"
        tabindex="-1"
        @mousedown.prevent
        @click="showPwd = !showPwd"
      >
        {{ showPwd ? 'x' : '*' }}
      </span>

      <slot name="suffix" />
    </span>
  </div>
</template>

<style scoped>
.base-input {
  display: inline-flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  background: var(--color-bg, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.base-input:hover {
  border-color: var(--color-border-strong, #d1d5db);
}

.base-input--focused {
  border-color: var(--color-primary, #409eff);
  box-shadow: 0 0 0 3px var(--color-primary-light, rgba(64, 158, 255, 0.1));
}

.base-input--disabled {
  opacity: 0.6;
  pointer-events: none;
  background: var(--color-bg-secondary, #f5f7fa);
}

.base-input__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--font-base, 14px);
  color: var(--color-text, #303133);
  padding: 0 var(--space-3, 12px);
  min-width: 0;
  white-space: pre;
  overflow: hidden;
}

.base-input__input:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-tertiary, #c0c4cc);
  pointer-events: none;
}

.base-input__prefix,
.base-input__suffix {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary, #909399);
  flex-shrink: 0;
}

.base-input__prefix {
  padding-left: var(--space-3, 12px);
}

.base-input__suffix {
  padding-right: var(--space-3, 12px);
  gap: var(--space-2, 8px);
}

.base-input__clear,
.base-input__password {
  cursor: pointer;
  color: var(--color-text-secondary, #909399);
}

.base-input__clear:hover,
.base-input__password:hover {
  color: var(--color-text, #303133);
}

/* 尺寸 */
.base-input--sm { height: 32px; }
.base-input--md { height: 40px; }
.base-input--lg { height: 48px; }

.base-input--sm .base-input__input { font-size: 12px; }
.base-input--lg .base-input__input { font-size: 16px; }

/* textarea */
.base-textarea {
  width: 100%;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  background: var(--color-bg, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.base-textarea:hover {
  border-color: var(--color-border-strong, #d1d5db);
}

.base-textarea:focus-within {
  border-color: var(--color-primary, #409eff);
  box-shadow: 0 0 0 3px var(--color-primary-light, rgba(64, 158, 255, 0.1));
}

.base-textarea--disabled {
  opacity: 0.6;
  pointer-events: none;
  background: var(--color-bg-secondary, #f5f7fa);
}

.base-textarea__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--font-base, 14px);
  color: var(--color-text, #303133);
  padding: var(--space-3, 12px);
  resize: vertical;
  box-sizing: border-box;
  min-height: 80px;
  white-space: pre-wrap;
  word-break: break-word;
}

.base-textarea__input:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-tertiary, #c0c4cc);
  pointer-events: none;
}

.base-textarea__count {
  position: absolute;
  bottom: var(--space-2, 8px);
  right: var(--space-3, 12px);
  font-size: var(--font-xs, 12px);
  color: var(--color-text-tertiary, #c0c4cc);
}
</style>

Read the full file on GitHub · 450 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 23d ago Changed c300da028dc6
  2. 2mo ago Changed · +429 lines · -3 tokens per session 837fd6d9291e
  3. 2mo ago First seen · 21 lines · 41 tokens per session scan A ff11e660008c

Subscribe to this mod's changes

vue-input-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 38 tokens to every session and 2,990 once invoked, about $0.0002 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-09-03.

Related

vue-input-skill compared with skills from other repositories

vue-input-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vue-input-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A38Claude Code, Codex
shadcn-sveltevercel-labs/json-renderSkill20k7d agoApache-2.0A63Claude Code, Codex
add-localizationmicrosoft/power-platform-skillsSkill1.2ktodayMITA69Claude Code
moai-domain-uiuxmodu-ai/moai-adkSkill1.3ktodayApache-2.0A49Claude Code
moai-domain-frontendmodu-ai/moai-adkSkill1.3ktodayApache-2.0A54Claude Code
vue-router-best-practicesvuejs-ai/skillsSkill3.4k1mo agoMITA25Claude Code, Codex
weapp-vite-vue-sfc-best-practicesweapp-vite/weapp-viteSkill529todayMITA107Codex