vue-layout-skill

vue-layout-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 56 tokens per session (8,166 once invoked), scanned A, original, Apache-2.0.

A Vue 3 layout skill for admin pages, with a sidebar menu, top bar and main content area. It provides an AppLayout structure where routed pages render inside the main area.

In plain words
What is it for?
Use it to create administration panels, dashboards and other applications with persistent navigation. Optional parts include a collapsible sidebar, user menu and multi-level menu tree.
Why use it?
It removes the repeated work of building the basic frame for back-office applications. It also provides a consistent place for navigation, breadcrumbs, user controls and page content.

Skill for Claude CodeCodex

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

Good fit Use it to create administration panels, dashboards and other applications with persistent navigation. Optional parts include a collapsible sidebar, user menu and multi-level menu tree.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/vue-layout-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-layout-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-layout-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/vue-layout-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/vue-layout-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,166 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.00056 $0.08166
Opus 5.5 $0.00022 $0.03266
Sonnet 5.5 $0.00011 $0.01633
Haiku 4.5 $0.00006 $0.00817

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

Security

Grade A, and why

vue-layout-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 24d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (components/index.ts, components/types.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-layout-skill/SKILL.md · 1,132 lines

How it starts

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

vue-layout-skill

容器原则:布局组件是项目的最外层骨架,所有页面都在 AppMain 内渲染 零 HTML5 标签:菜单项、面包屑等全部用 <div> + CSS3 实现 Token 驱动:所有尺寸、颜色、间距必须使用 var(--*) 变量

管理端标准布局,支持 7 种布局模式,全部原生实现。

引用组件

组件技能 用途 状态
vue-theme-skill 设计 Token(颜色/尺寸/间距) ✅
vue-menu-skill 菜单组件(侧边栏/顶部菜单) ✅
vue-card-skill 容器包裹 ✅
frontend-icon-skill 图标渲染 ✅
vue-badge-skill 菜单徽标 ✅
vue-dropdown-skill 用户下拉菜单 ✅
面包屑导航 按项目路由组合,独立技能待建 待补

7 种布局模式

模式 布局 说明
sidebar 侧边栏用户 左侧侧边栏,用户在侧边栏内,顶部有面包屑+用户
horizontal 横向顶部 Logo 在左,菜单在顶部横排,用户在右上
topbar 顶部双栏 顶部两行:Logo+用户 / 导航菜单
sidebar-user-bottom 用户在菜单下 用户在侧边栏菜单下方,顶部仅面包屑
mix 混合模式 顶部导航 + 左侧图标侧边栏
sidebar-right 侧边栏在右 菜单在右侧显示
header-only 只有顶栏 无侧边栏,仅顶部导航

组件层级

AppLayout (L0 布局容器)
├── AppSidebar (L1 侧边栏)
│   ├── Logo 区域
│   └── base-menu (引用 vue-menu-skill)
├── AppHeader (L1 顶栏)
│   ├── 折叠按钮 + 面包屑
│   └── 用户下拉 (引用 vue-dropdown-skill)
└── AppMain (L1 内容区)
    └── <router-view />

组件清单

组件 文件 说明
AppLayout AppLayout.vue 最外层容器,管理折叠状态和布局模式
AppSidebar AppSidebar.vue 侧边栏(Logo + 菜单 + 折叠按钮)
AppHeader AppHeader.vue 顶栏(折叠按钮 + 面包屑 + 用户下拉)
AppMain AppMain.vue 内容区(router-view + 过渡动画)

组件代码

AppLayout.vue

<script setup lang="ts">
import { ref, provide, computed } from 'vue';
import AppSidebar from './AppSidebar.vue';
import AppHeader from './AppHeader.vue';
import AppMain from './AppMain.vue';
import './styles.css';

type LayoutMode = 'sidebar' | 'horizontal' | 'topbar' | 'sidebar-user-bottom' | 'mix' | 'sidebar-right' | 'header-only';

interface MenuItem {
  key: string;
  label: string;
  icon?: string;
  path?: string;
  badge?: number | string;
  children?: MenuItem[];
}

interface Props {
  /** 布局模式 */
  mode?: LayoutMode;
  /** 菜单数据 */
  menus?: MenuItem[];
  /** Logo 文字 */
  logo?: string;
  /** Logo 图标(使用 frontend-icon-skill 生成) */
  logoIcon?: string;
  /** 默认折叠 */
  defaultCollapsed?: boolean;
  /** 侧边栏宽度 */
  sidebarWidth?: number;
  /** 折叠后宽度 */
  collapsedWidth?: number;
  /** 顶栏高度 */
  headerHeight?: number;
  /** 面包屑数据 */
  breadcrumbs?: Array<{ label: string; path?: string }>;
  /** 用户名 */
  username?: string;
  /** 头像(URL 或文字) */
  avatar?: string;
}

const props = withDefaults(defineProps<Props>(), {
  mode: 'sidebar',
  menus: () => [],
  logo: 'Admin',
  logoIcon: 'logo',
  defaultCollapsed: false,
  sidebarWidth: 220,
  collapsedWidth: 64,
  headerHeight: 48,
  breadcrumbs: () => [],
  username: 'Admin',
});

const emit = defineEmits<{
  'menu-click': [item: MenuItem];
  'logout': [];
  'collapse-change': [collapsed: boolean];
}>();

const collapsed = ref(props.defaultCollapsed);

// 布局类名
const layoutClass = computed(() => ({
  'is-collapsed': collapsed.value,
  [`layout-${props.mode}`]: true,
}));

// 侧边栏位置
const sidebarPosition = computed(() => props.mode === 'sidebar-right' ? 'right' : 'left');

function toggleCollapse() {
  collapsed.value = !collapsed.value;
  emit('collapse-change', collapsed.value);
}

function onMenuClick(item: MenuItem) {
  emit('menu-click', item);
}

function onLogout() {
  emit('logout');
}

provide('layoutCollapsed', collapsed);
provide('layoutSidebarWidth', () => collapsed.value ? props.collapsedWidth : props.sidebarWidth);
</script>

<template>
  <div class="app-layout" :class="layoutClass">
    <!-- 混合模式:顶部导航 -->
    <div v-if="mode === 'mix'" class="app-topbar">
      <div class="app-topbar__logo">
        <slot name="logo-icon">
          <div class="app-topbar__logo-icon">
            <base-icon :name="logoIcon" />
          </div>
        </slot>
        <span class="app-topbar__logo-text">{{ logo }}</span>
      </div>
      <div class="app-topbar__menu">
        <base-menu :data="menus" mode="horizontal" @select="onMenuClick" />
      </div>
      <div class="app-topbar__right">
        <base-dropdown :trigger="['click']">
          <template #trigger>
            <div class="app-header__user">
              <div class="app-header__avatar">
                <img v-if="avatar" :src="avatar" alt="avatar" />
                <span v-else>{{ username.charAt(0) }}</span>
              </div>
              <span class="app-header__username">{{ username }}</span>
            </div>
          </template>
          <div class="app-header__dropdown-menu">
            <div class="app-header__dropdown-item">个人中心</div>
            <div class="app-header__dropdown-item">账号设置</div>
            <div class="app-header__dropdown-divider"></div>
            <div class="app-header__dropdown-item is-danger" @click="onLogout">退出登录</div>
          </div>
        </base-dropdown>
      </div>
    </div>

    <!-- 顶部双栏模式 -->
    <div v-if="mode === 'topbar'" class="app-topbar app-topbar--double">
      <div class="app-topbar__top">
        <div class="app-topbar__logo">
          <slot name="logo-icon">
            <div class="app-topbar__logo-icon">
              <base-icon :name="logoIcon" />
            </div>
          </slot>
          <span class="app-topbar__logo-text">{{ logo }}</span>
        </div>
        <div class="app-topbar__right">
          <base-dropdown :trigger="['click']">
            <template #trigger>
              <div class="app-header__user">
                <div class="app-header__avatar">
                  <img v-if="avatar" :src="avatar" alt="avatar" />
                  <span v-else>{{ username.charAt(0) }}</span>
                </div>
                <span class="app-header__username">{{ username }}</span>
              </div>
            </template>
            <div class="app-header__dropdown-menu">
              <div class="app-header__dropdown-item">个人中心</div>
              <div class="app-header__dropdown-item is-danger" @click="onLogout">退出登录</div>
            </div>
          </base-dropdown>
        </div>
      </div>
      <div class="app-topbar__nav">
        <base-menu :data="menus" mode="horizontal" @select="onMenuClick" />
      </div>
    </div>

    <!-- 横向顶部模式 -->
    <div v-if="mode === 'horizontal'" class="app-topbar app-topbar--single">
      <div class="app-topbar__logo">
        <slot name="logo-icon">
          <div class="app-topbar__logo-icon">
            <base-icon :name="logoIcon" />
          </div>
        </slot>
        <span class="app-topbar__logo-text">{{ logo }}</span>
      </div>
      <div class="app-topbar__menu">
        <base-menu :data="menus" mode="horizontal" @select="onMenuClick" />
      </div>
      <div class="app-topbar__right">
        <base-dropdown :trigger="['click']">
          <template #trigger>
            <div class="app-header__user">
              <div class="app-header__avatar">
                <img v-if="avatar" :src="avatar" alt="avatar" />
                <span v-else>{{ username.charAt(0) }}</span>
              </div>
              <span class="app-header__username">{{ username }}</span>
            </div>
          </template>
          <div class="app-header__dropdown-menu">
            <div class="app-header__dropdown-item">个人中心</div>
            <div class="app-header__dropdown-item is-danger" @click="onLogout">退出登录</div>
          </div>
        </base-dropdown>
      </div>
    </div>

    <!-- 侧边栏 -->
    <AppSidebar
      v-if="mode !== 'header-only'"
      :menus="menus"
      :logo="logo"
      :logo-icon="logoIcon"
      :width="sidebarWidth"
      :collapsed-width="collapsedWidth"
      :collapsed="collapsed"
      :position="sidebarPosition"
      :mode="mode"
      :username="username"
      :avatar="avatar"
      @menu-click="onMenuClick"
      @toggle-collapse="toggleCollapse"
      @logout="onLogout"
    />

    <!-- 主内容区 -->
    <div class="app-layout__right" :class="{ 'is-sidebar-right': mode === 'sidebar-right' }">
      <AppHeader
        v-if="mode !== 'topbar' && mode !== 'horizontal' && mode !== 'mix'"
        :height="headerHeight"
        :collapsed="collapsed"
        :breadcrumbs="breadcrumbs"
        :username="username"
        :avatar="avatar"
        :show-toggle="mode === 'sidebar' || mode === 'sidebar-user-bottom'"
        :show-user="mode === 'sidebar'"
        @toggle-collapse="toggleCollapse"
        @logout="onLogout"
      />
      <AppMain :header-height="mode === 'topbar' ? 110 : (mode === 'mix' ? 48 : headerHeight)">
        <slot />
      </AppMain>
    </div>
  </div>
</template>

Read the full file on GitHub · 1,132 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. 24d ago Changed a3b11f972c44
  2. 1mo ago Changed 1bbe53e51e38
  3. 1mo ago Changed · +428 lines · -17 tokens per session 8e6739a45d57
  4. 1mo ago Changed · -127 lines f3ba87d7e604
  5. 2mo ago First seen · 831 lines · 73 tokens per session scan A d8845e9f4716

Subscribe to this mod's changes

vue-layout-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 56 tokens to every session and 8,166 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-30.

Related

vue-layout-skill compared with skills from other repositories

vue-layout-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vue-layout-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A56Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code