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 skills add jiushiwon/wg-skills --skill vue-select-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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/jiushiwon/wg-skills/vue-select-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-select-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-select-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.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-select-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-select-skill.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00041 | $0.03498 |
| Opus 5.5 | $0.00016 | $0.01399 |
| Sonnet 5.5 | $0.00008 | $0.00700 |
| Haiku 4.5 | $0.00004 | $0.00350 |
Grade A, and why
vue-select-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.
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 — 541 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Vue Select Skill
容器原则:必须嵌入
<base-card>使用
零 HTML5 标签:使用<div contenteditable role="textbox">实现搜索
下拉选择器组件,详细规范见 base-select.md
引用组件
实现规范见同目录 base-select.md。
使用方式
<script setup lang="ts">
import { ref } from 'vue';
import { BaseSelect } from './components/BaseSelect';
const value = ref('');
const options = [
{ label: '选项一', value: '1' },
{ label: '选项二', value: '2' },
{ label: '选项三', value: '3' },
];
</script>
<template>
<BaseSelect v-model="value" :options="options" placeholder="请选择" />
</template>
Props
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| modelValue | unknown |
- | 绑定值 |
| options | SelectOption[] |
[] |
选项列表 |
| placeholder | string |
'请选择' |
占位符 |
| disabled | boolean |
false |
是否禁用 |
| multiple | boolean |
false |
是否多选 |
| searchable | boolean |
false |
是否可搜索 |
| clearable | boolean |
false |
是否可清空 |
| size | 'sm' | 'md' | 'lg' |
'md' |
尺寸 |
| maxTagCount | number |
3 |
多选最多显示标签数 |
Events
| 事件 | 参数 | 说明 |
|---|---|---|
| update:modelValue | (value: unknown) |
值变化 |
| change | (value: unknown) |
变化后 |
| clear | () |
点击清空 |
TypeScript 类型
types/select.ts
// Select 选项类型
export interface SelectOption {
label: string;
value: unknown;
disabled?: boolean;
group?: string;
}
// Select Props
export interface SelectProps {
modelValue?: unknown;
options?: SelectOption[];
placeholder?: string;
disabled?: boolean;
multiple?: boolean;
searchable?: boolean;
clearable?: boolean;
size?: 'sm' | 'md' | 'lg';
maxTagCount?: number;
}
export interface SelectEmits {
'update:modelValue': [value: unknown];
change: [value: unknown];
clear: [];
}
组件代码
BaseSelect.vue
<script setup lang="ts">
import { ref, computed, watch } from 'vue';
import type { SelectProps, SelectEmits, SelectOption } from './types/select';
const props = withDefaults(defineProps<SelectProps>(), {
options: () => [],
placeholder: '请选择',
disabled: false,
multiple: false,
searchable: false,
clearable: false,
size: 'md',
maxTagCount: 3,
});
const emit = defineEmits<SelectEmits>();
const isOpen = ref(false);
const searchQuery = ref('');
const triggerRef = ref<HTMLDivElement>();
const dropdownRef = ref<HTMLDivElement>();
const searchInputRef = ref<HTMLDivElement>();
// 过滤后的选项
const filteredOptions = computed(() => {
if (!searchQuery.value) return props.options;
const query = searchQuery.value.toLowerCase();
return props.options.filter(opt =>
opt.label.toLowerCase().includes(query)
);
});
// 当前选中项的标签
const selectedLabel = computed(() => {
if (props.multiple) return '';
const opt = props.options.find(o => o.value === props.modelValue);
return opt?.label ?? '';
});
// 多选时的 tag 列表
const selectedTags = computed(() => {
if (!props.multiple || !Array.isArray(props.modelValue)) return [];
return props.modelValue.slice(0, props.maxTagCount).map(val => {
const opt = props.options.find(o => o.value === val);
return { value: val, label: opt?.label ?? String(val) };
});
});
const overflowCount = computed(() => {
if (!props.multiple || !Array.isArray(props.modelValue)) return 0;
return Math.max(0, props.modelValue.length - props.maxTagCount);
});
const hasValue = computed(() => {
if (props.multiple) return Array.isArray(props.modelValue) && props.modelValue.length > 0;
return props.modelValue !== undefined && props.modelValue !== null && props.modelValue !== '';
});
function toggle() {
if (props.disabled) return;
isOpen.value = !isOpen.value;
if (isOpen.value && props.searchable) {
setTimeout(() => searchInputRef.value?.focus(), 0);
}
}
function close() {
isOpen.value = false;
searchQuery.value = '';
}
function isSelected(val: unknown): boolean {
if (props.multiple) {
return Array.isArray(props.modelValue) && props.modelValue.includes(val);
}
return props.modelValue === val;
}
function handleSelect(opt: SelectOption) {
if (opt.disabled || props.disabled) return;
if (props.multiple) {
const arr = Array.isArray(props.modelValue) ? [...props.modelValue] : [];
const idx = arr.indexOf(opt.value);
if (idx > -1) {
arr.splice(idx, 1);
} else {
arr.push(opt.value);
}
emit('update:modelValue', arr);
emit('change', arr);
} else {
emit('update:modelValue', opt.value);
emit('change', opt.value);
close();
}
}
function removeTag(val: unknown) {
if (props.disabled) return;
const arr = [...(props.modelValue as unknown[])];
const idx = arr.indexOf(val);
if (idx > -1) {
arr.splice(idx, 1);
emit('update:modelValue', arr);
emit('change', arr);
}
}
function handleClear() {
if (props.multiple) {
emit('update:modelValue', []);
} else {
emit('update:modelValue', undefined);
}
emit('clear');
}
// 点击外部关闭
function handleClickOutside(e: Event) {
if (triggerRef.value?.contains(e.target as Node)) return;
if (dropdownRef.value?.contains(e.target as Node)) return;
close();
}
</script>
<template>
<div
ref="triggerRef"
class="base-select"
:class="[
`base-select--${size}`,
{
'base-select--open': isOpen,
'base-select--disabled': disabled,
'base-select--multiple': multiple,
},
]"
@click="toggle"
>
<div class="base-select__trigger">
<!-- 多选 tag -->
<template v-if="multiple && selectedTags.length > 0">
<span
v-for="tag in selectedTags"
:key="String(tag.value)"
class="base-select__tag"
@click.stop
>
{{ tag.label }}
<span class="base-select__tag-close" @click.stop="removeTag(tag.value)">x</span>
</span>
<span v-if="overflowCount > 0" class="base-select__tag-overflow">
+{{ overflowCount }}
</span>
</template>
<!-- 单选文本 -->
<span v-else-if="selectedLabel" class="base-select__value">
{{ selectedLabel }}
</span>
<!-- 占位文本 -->
<span v-else class="base-select__placeholder">{{ placeholder }}</span>
<!-- 搜索输入(contenteditable) -->
<div
v-if="searchable && isOpen"
ref="searchInputRef"
class="base-select__search"
role="textbox"
contenteditable="true"
:data-placeholder="placeholder"
@click.stop
@input="searchQuery = ($event.target as HTMLElement).textContent || ''"
@keydown.escape="close"
/>
<!-- 清空按钮 -->
<span
v-if="clearable && hasValue"
class="base-select__clear"
role="button"
@click.stop="handleClear"
>
x
</span>
<!-- 箭头 -->
<span class="base-select__arrow" :class="{ 'base-select__arrow--up': isOpen }">v</span>
</div>
<!-- 下拉面板 -->
<Teleport to="body">
<div
v-if="isOpen"
ref="dropdownRef"
class="base-select__dropdown"
>
<div v-if="filteredOptions.length === 0" class="base-select__empty">
暂无数据
</div>
<div
v-for="opt in filteredOptions"
:key="String(opt.value)"
class="base-select__option"
:class="{
'base-select__option--selected': isSelected(opt.value),
'base-select__option--disabled': opt.disabled,
}"
@click.stop="handleSelect(opt)"
>
<span>{{ opt.label }}</span>
<span v-if="isSelected(opt.value)" class="base-select__check">*</span>
</div>
</div>
</Teleport>
</div>
</template>
<style scoped>
.base-select {
position: relative;
display: inline-block;
width: 240px;
cursor: pointer;
}
.base-select--disabled {
cursor: not-allowed;
opacity: 0.6;
}
.base-select__trigger {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--height-input-md, 40px);
padding: 0 32px 0 12px;
background: var(--color-surface, #fff);
border: 1px solid var(--color-border, #dcdfe6);
border-radius: var(--radius-md, 8px);
transition: all 0.2s;
}
.base-select:hover .base-select__trigger {
border-color: var(--color-text-tertiary, #c0c4cc);
}
.base-select--open .base-select__trigger {
border-color: var(--color-primary, #409eff);
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}
.base-select__placeholder {
color: var(--color-text-tertiary, #c0c4cc);
}
.base-select__value {
color: var(--color-text, #606266);
font-size: var(--font-base, 14px);
}
.base-select__tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.base-select__tag {
display: inline-flex;
align-items: center;
height: 22px;
padding: 0 8px;
background: var(--color-bg-secondary, #f0f2f5);
border-radius: var(--radius-md, 4px);
font-size: 12px;
color: var(--color-text, #606266);
}
.base-select__tag-close {
margin-left: 4px;
cursor: pointer;
color: var(--color-text-secondary, #909399);
}
.base-select__tag-close:hover {
color: var(--color-primary, #409eff);
}
.base-select__tag-overflow {
font-size: 12px;
color: var(--color-text-secondary, #909399);
}
.base-select__arrow {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
color: var(--color-text-tertiary, #c0c4cc);
font-size: 10px;
}
.base-select__arrow--up {
transform: translateY(-50%) rotate(180deg);
}
.base-select__clear {
margin-right: 4px;
cursor: pointer;
color: var(--color-text-secondary, #909399);
}
.base-select__clear:hover {
color: var(--color-primary, #409eff);
}
/* 搜索框 */
.base-select__search {
flex: 1;
min-width: 60px;
border: none;
outline: none;
font-size: var(--font-base, 14px);
}
.base-select__search:empty::before {
content: attr(data-placeholder);
color: var(--color-text-tertiary, #c0c4cc);
}
/* 下拉列表 */
.base-select__dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
margin-top: 4px;
max-height: 240px;
background: var(--color-surface, #fff);
border: 1px solid var(--color-border, #e4e7ed);
border-radius: var(--radius-md, 8px);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
overflow-y: auto;
z-index: 100;
}
.base-select__empty {
padding: 20px;
text-align: center;
color: var(--color-text-secondary, #909399);
}
.base-select__option {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
cursor: pointer;
transition: background 0.15s;
}
.base-select__option:hover {
background: var(--color-bg-secondary, #f5f7fa);
}
.base-select__option--selected {
color: var(--color-primary, #409eff);
background: var(--color-primary-light, #ecf5ff);
}
.base-select__option--disabled {
color: var(--color-text-tertiary, #c0c4cc);
cursor: not-allowed;
}
.base-select__check {
font-weight: bold;
}
/* 尺寸 */
.base-select--sm .base-select__trigger { height: 32px; }
.base-select--md .base-select__trigger { height: 40px; }
.base-select--lg .base-select__trigger { height: 48px; }
</style>
What ships with it
7 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.
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.
- 23d ago Changed a944094ace7a
- 2mo ago Changed · +520 lines · -2 tokens per session f69e8a1a427b
- 2mo ago First seen · 21 lines · 43 tokens per session scan A 872fdf333a55
vue-select-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 41 tokens to every session and 3,498 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.
vue-select-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vue-select-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | A | 41 | Claude Code, Codex |
| shadcn-sveltevercel-labs/json-render | Skill | 20k | 7d ago | Apache-2.0 | A | 63 | Claude Code, Codex |
| add-localizationmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 69 | Claude Code |
| moai-domain-uiuxmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 49 | Claude Code |
| moai-domain-frontendmodu-ai/moai-adk | Skill | 1.3k | today | Apache-2.0 | A | 54 | Claude Code |
| vue-router-best-practicesvuejs-ai/skills | Skill | 3.4k | 1mo ago | MIT | A | 25 | Claude Code, Codex |
| weapp-vite-vue-sfc-best-practicesweapp-vite/weapp-vite | Skill | 529 | today | MIT | A | 107 | Codex |