vue-button-skill

Vue button component skill. Provides a matrix of buttons with 6 types × 3 variants × 3 sizes, without depending on any third‑party component library.

Last repository push
GitHub Stars
154
Forks
49
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "vue-button-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cbb5d91c3814641d5744ea10394316c0b55acafe3c2b1a888a8dec60118a02b2. Verify the upstream source and version against https://github.com/jiushiwon/wg-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Vue button component skill. Provides a matrix of buttons with 6 types × 3 variants × 3 sizes, without depending on any third‑party component library.

0 Downloads

Introduction source: third_party · jiushiwon · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: vue-button-skill
description: Vue 按钮组件技能。提供 6 type × 3 variant × 3 size 按钮矩阵,零第三方组件库。
trigger: |
  帮我做一个按钮 | 做一个主色按钮 | 做一个实心按钮 | 做一个描边按钮
  做一个幽灵按钮 | 做一个文字按钮 | 做一个危险按钮
  做一个禁用按钮 | 做一个加载中按钮 | 做一个块级按钮
  做一个固定底部按钮 | 做一个底部悬浮按钮 | 做一个提交按钮

vue-button-skill

Vue 按钮组件技能。基于 vue-theme-skill 的 Token 实现,零第三方组件库。

核心组件

组件 说明
base-button 通用按钮(6 type × 3 variant × 3 size)

Props 矩阵

维度 可选值
type default / primary / success / warning / danger / info
variant solid(默认)/ outline / text
size sm / md(默认)/ lg
disabled boolean
loading boolean
block boolean(块级铺满)

文件结构

vue-button-skill/
├── SKILL.md
├── README.md
├── base-button.md
└── demo-components/
    └── base-button/
        ├── README.md
        ├── html/01-types.html
        ├── html/02-variants.html
        └── html/03-sizes.html

容器原则

所有按钮组、操作栏都应嵌入 <base-card> 容器(vue-card-skill)。

<base-card title="商品管理">
  <template #header-right>
    <base-button>取消</base-button>
    <base-button type="primary">保存</base-button>
  </template>

  <div class="demo-row">
    <base-button>默认</base-button>
    <base-button type="primary" variant="outline">主要描边</base-button>
    <base-button type="danger" :loading="saving">删除</base-button>
  </div>
</base-card>

设计 Token

.base-button {
  height: var(--height-button-md);     /* 36px */
  padding: 0 var(--space-4);           /* 16px */
  border-radius: var(--radius-md);     /* 6px */
  background: var(--color-surface);
  color: var(--color-text);
}
.base-button--type-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

禁止硬编码任何颜色 / 间距 / 行高 / 圆角值。

第三方组件库

❌ 禁止 Element Plus / Naive UI / Ant Design Vue / Vuetify / PrimeVue。

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 6 种类型 × 3 种变体 × 3 种尺寸的完整按钮矩阵,覆盖常见前端开发需求
  • 零第三方组件库依赖,降低项目耦合度,提升复用性
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含类型、变体、状态、布局等多种维度
  • 边界清晰,不易与其他 UI 组件 Skill 混淆
Structure and Standards95/100

Highlights

  • 结构完整,含组件说明、Props 矩阵、文件结构、容器原则、设计 Token 和端到端示例
  • frontmatter 完整,排版规范,易于理解与执行
Execution Reliability90/100

Areas to improve

  • description 写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部

    Recommendation: 建议将 description 内容移至顶层 frontmatter,确保触发描述在正确位置

Highlights

  • 设计 Token 规范明确,禁止硬编码,提升主题一致性
  • 示例代码完整,容器原则清晰,降低使用门槛
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.