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-layout-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-layout-skill)<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.
<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>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.00056 | $0.08166 |
| Opus 5.5 | $0.00022 | $0.03266 |
| Sonnet 5.5 | $0.00011 | $0.01633 |
| Haiku 4.5 | $0.00006 | $0.00817 |
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.
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 — 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>
What ships with it
11 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.
- components/AppHeader.vue 3.1 KB
- components/AppLayout.vue 4.1 KB
- components/AppMain.vue 456 B
- components/AppSidebar.vue 2.4 KB
- components/index.ts 496 B runs code
- components/MenuItem.vue 2.4 KB
- components/styles.css 10 KB
- components/types.ts 879 B runs code
- demo-components/base-layout/html/00-showcase.html 55 KB
- package.json 336 B
- README.md 1.3 KB
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.
- 24d ago Changed a3b11f972c44
- 1mo ago Changed 1bbe53e51e38
- 1mo ago Changed · +428 lines · -17 tokens per session 8e6739a45d57
- 1mo ago Changed · -127 lines f3ba87d7e604
- 2mo ago First seen · 831 lines · 73 tokens per session scan A d8845e9f4716
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.
vue-layout-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vue-layout-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 56 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |