vue-tree-skill

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

A Vue 3 tree component skill for displaying nested data such as organisation charts, file folders, and categories. It supports configurable checkboxes, lazy loading, dragging, right-click menus, searching, editing, and node icons.

In plain words
What is it for?
Use it to build navigable trees, folder browsers, organisation charts, category trees, and editable or draggable hierarchies in Vue.
Why use it?
It removes the need to build each tree variation and its node rendering separately. Your application supplies data in the documented TreeNode shape instead of managing several similar component implementations.

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)(节点渲染基座)+ [vue-contextmenu-skill](../vue-contextmenu-skill/SKILL.md)(右键菜单联动).

Good fit Use it to build navigable trees, folder browsers, organisation charts, category trees, and editable or draggable hierarchies in Vue.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-tree-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-tree-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,238 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.00148 $0.01238
Opus 5.5 $0.00059 $0.00495
Sonnet 5.5 $0.00030 $0.00248
Haiku 4.5 $0.00015 $0.00124

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

Security

Grade A, and why

vue-tree-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 16d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (components/index.ts, demo-components/base-tree/html/tree-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-tree-skill/SKILL.md · 107 lines

How it starts

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

vue-tree-skill

树形组件技能。节点渲染 = base-list-item,业务只关心 TreeNode 数据契约 + 8 个 prop 开关。

底层依赖:vue-list-item-skill(节点渲染基座)+ vue-contextmenu-skill(右键菜单联动)

容器原则:必须用 vue-card-skill 的 <base-card> 包裹。

与 vue-card-skill 的关系

base-card                 ← L0 容器
└─ base-tree              ← L1 树形菜单(本技能)

禁止裸用 <base-tree>(违反容器原则)。

<!-- ✅ 正确 -->
<base-card title="组织架构">
  <base-tree :data="orgData" @select="onSelect" @contextmenu="onCtxMenu" />
</base-card>

<!-- ❌ 错误 -->
<base-tree :data="orgData" />

8 种形态(prop 开关叠加)

# 形态 prop 默认
1 基础树 — ✅ 默认
2 复选框树 checkbox ❌
3 懒加载树 lazy + load ❌
4 可拖拽树 draggable ❌
5 右键菜单树 @contextmenu 事件 —
6 可搜索树 v-model:search + filter-node ❌
7 可编辑树 editable ❌
8 节点图标树 TreeNode.icon —

形态可叠加:<base-tree :data :checkbox :draggable :editable />

数据契约 TreeNode

interface TreeNode {
  id: string                  // 唯一标识
  label: string               // 显示文本
  icon?: string               // 节点图标
  meta?: string               // 右侧次要文本(KB / 人数 / 数量)
  badge?: string | number     // 徽标(新人 / P0)
  disabled?: boolean          // 禁用
  open?: boolean              // 默认展开
  children?: TreeNode[]       // 子节点
  isLeaf?: boolean            // 懒加载标记
}

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

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

本技能 vue-list-item-skill uni-app 独立树组件技能(待建设)
base-tree — base-tree
TreeNode ListItem TreeNode
节点渲染 base-list-item uni-list-item

跨技能协同

  • vue-list-item-skill:每个节点 = 一个 base-list-item
  • vue-contextmenu-skill:右键节点弹 contextmenu,传递 TreeNode
  • vue-card-skill:必须 base-card 包裹
  • frontend-icon-skill:节点 icon 可引用 icon 组件

Read the full file on GitHub · 107 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. 16d ago Changed 616ac6436fda
  2. 1mo ago Changed f42f9c9fd4c1
  3. 2mo ago First seen · 107 lines · 148 tokens per session scan A 6ac411e46bf8

Subscribe to this mod's changes

vue-tree-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 148 tokens to every session and 1,238 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-tree-skill compared with skills from other repositories

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