vue-contextmenu-skill

vue-contextmenu-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 141 tokens per session (1,239 once invoked), scanned A, original, Apache-2.0.

A Vue 3 right-click menu component skill for showing actions when a user opens a context menu. It supports nested menus, icons, separators, conditional items, keyboard navigation, and positioning near the screen edge.

In plain words
What is it for?
Use it for right-click actions on files, tree nodes, cards, editors, or other parts of a Vue interface, with optional click triggering.
Why use it?
It removes the repeated work of building context-menu layout, nested actions, keyboard controls, and placement logic. Menu choices are described as data rather than separately rendered each time.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **底层依赖**:[vue-list-item-skill](../vue-list-item-skill/SKILL.md)(菜单项渲染基座).

Good fit Use it for right-click actions on files, tree nodes, cards, editors, or other parts of a Vue interface, with optional click triggering.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills
agentmods
npx agentmods add skills/jiushiwon/wg-skills/vue-contextmenu-skill

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-contextmenu-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-contextmenu-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 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.00141 $0.01239
Opus 5.5 $0.00056 $0.00496
Sonnet 5.5 $0.00028 $0.00248
Haiku 4.5 $0.00014 $0.00124

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

Security

Grade A, and why

vue-contextmenu-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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (demo-components/base-contextmenu/html/ctx-render.js), 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-contextmenu-skill/SKILL.md · 113 lines

How it starts

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

vue-contextmenu-skill

右键菜单组件技能。菜单项渲染 = base-list-item,业务只关心 MenuOption[] 数据契约 + 4 个 prop 开关。

底层依赖:vue-list-item-skill(菜单项渲染基座)

容器原则:菜单弹层使用 Teleport 到 body,宿主容器使用 vue-card-skill 的 <base-card>。

与 vue-card-skill 的关系

base-card                  ← L0 容器(宿主)
└─ 业务组件                ← 触发 contextmenu
   ↳ base-contextmenu      ← L1 右键弹层(本技能,Teleport 到 body)
      └─ base-list-item    ← 菜单项渲染(依赖)

8 种形态(options / prop 叠加)

# 形态 启用方式
1 基础菜单 options 数组
2 嵌套子菜单 option.children
3 图标菜单 option.icon
4 分割线菜单 option.divider: true
5 动态条件菜单 option.show
6 左键点击触发 trigger="click"
7 键盘导航 内置(↑↓ Enter Esc)
8 边缘检测 内置 adjustPosition
interface MenuOption {
  id: string                  // 唯一标识
  label?: string               // 显示文本
  icon?: string               // 图标
  shortcut?: string           // 快捷键(Ctrl+C)
  command?: string | number   // 业务命令(select 回调参数)
  disabled?: boolean          // 禁用
  danger?: boolean            // 危险项(红色)
  divider?: boolean           // 是否为分割线
  show?: boolean              // 条件渲染
  children?: MenuOption[]     // 子菜单
}

完整组件规格(Props / Events / Slots / 完整实现 / 反例 vs 正例)见 base-contextmenu.md。

命名对齐矩阵(与 vue-list-item 一致)

ContextMenu 槽位 list-item 槽位
option.icon [icon]
option.label [label]
option.shortcut [shortcut]
option.divider [divider]
option.children 递归 base-list-item

跨技能协同

  • vue-list-item-skill:菜单项 = base-list-item(复用 variant)
  • vue-tree-skill:<base-tree> 的 @contextmenu 事件触发本组件
  • vue-table-skill:表格行右键菜单
  • vue-card-skill:宿主容器必须 base-card 包裹

与 vue-tree-skill 联动示例

<template>
  <base-card title="文件树">
    <base-tree :data="files" @contextmenu="onRightClick" />

    <base-contextmenu
      v-model:visible="ctx.visible"
      :x="ctx.x" :y="ctx.y"
      :options="fileMenuOptions"
      @select="onCommand"
    />
  </base-card>
</template>

Read the full file on GitHub · 113 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. 2mo ago First seen · 113 lines · 141 tokens per session scan A d7803cdb973a

Subscribe to this mod's changes

vue-contextmenu-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 141 tokens to every session and 1,239 once invoked, about $0.0006 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-15.

Related

vue-contextmenu-skill compared with skills from other repositories

vue-contextmenu-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vue-contextmenu-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A141Claude 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