Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

design-reference设计参考

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

388

周安装

16

GitHub Stars

60

下载量

127
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:design-reference(设计参考)
来源仓库:https://github.com/popmechanic/vibes-cli
仓库路径:skills/design-reference
安装命令:
npx skills add https://github.com/popmechanic/vibes-cli --skill design-reference
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/popmechanic/vibes-cli --skill design-reference

简介

提供设计参考资源管理与可视化展示功能,支持多格式素材整合与快速检索。

  • 适合设计师积累品牌资产、图标库与配色方案,形成可复用的数字资产库。
  • 内置 ASCII 艺术启动界面与任务引导,提升使用体验与操作透明度。
  • 安装需通过 npx 添加指定 GitHub 仓库,适用于创意工作者日常参考场景。
  • design-reference 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Plan mode: If you are planning work, this entire skill is ONE plan step: "Invoke /vibes:design-reference". Do not decompose the steps below into separate plan tasks.

Display this ASCII art immediately when starting:

░▒▓███████▓▒░░▒▓████████▓▒░░▒▓███████▓▒░▒▓█▓▒░░▒▓██████▓▒░░▒▓███████▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░      ░▒▓█▓▒░      ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░      ░▒▓█▓▒░      ░▒▓█▓▒░▒▓█▓▒░      ░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓██████▓▒░  ░▒▓██████▓▒░░▒▓█▓▒░▒▓█▓▒▒▓███▓▒░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░             ░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░             ░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
░▒▓███████▓▒░░▒▓████████▓▒░▒▓███████▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░

Design Reference Transformer

Transform a complete design reference HTML file into a working Vibes app with Fireproof data persistence.


Core Principle

Preserve and adapt, don't interpret and recreate.

The design reference is source code to transform, not inspiration to interpret. When given a complete HTML file with styles, your job is to make minimal surgical changes to connect it to React/Fireproof—not to recreate it from your understanding of its aesthetic.


When to Use This Skill

Use this skill when:

  • User provides a design.html, mockup, or static prototype file
  • User says "match this design exactly" or "use this as a reference"
  • User wants their existing HTML converted to a Vibes app
  • A previous implementation didn't match the design reference

The Transformation is Mechanical

The conversion from design HTML to React/Fireproof is deterministic, not creative:

TransformationRuleExample
AttributesclassclassNameclass="btn"className="btn"
AttributesforhtmlForfor="email"htmlFor="email"
Attributeskebab-case → camelCasestroke-widthstrokeWidth
Self-closingAdd explicit close<input><input />
CommentsHTML → JSX<!-- x -->{/* x */}
Inline stylesString → Objectstyle="color: red"style={{color: 'red'}}
Event handlersLowercase → camelCaseonclickonClick

CSS requires NO changes. Copy the entire <style> block verbatim.


Workflow

Step 1: Read the Design Reference

# Read the design file completely
Read design.html

Note the structure:

  • <style> block (copy verbatim)
  • HTML structure (preserve exactly)
  • Any vanilla JavaScript (will be replaced with React)

Step 2: Identify Dynamic Content

Ask: "What content comes from the database?"

Typical dynamic elements:

  • List items that repeat (.map())
  • Text that users enter (controlled inputs)
  • Counts, totals, timestamps
  • User-specific content

Everything else stays static.

Step 3: Create the React Component

import React from "react";
import { useFireproofClerk } from "use-fireproof";

export default function App() {
  const { database, useLiveQuery, useDocument } = useFireproofClerk("app-db");

  // Hooks for dynamic data
  const { doc, merge, submit } = useDocument({ /* initial shape */ });
  const { docs } = useLiveQuery("type", { key: "item" });

  return (
    <>
      {/* CSS copied VERBATIM from design.html */}
      <style>{`
        /* Paste entire <style> block here unchanged */
      `}</style>

      {/* HTML structure preserved, only syntax converted */}
      {/* Dynamic content replaced with {expressions} */}
    </>
  );
}

Step 4: Handle Dark Mode Override (If Needed)

The Vibes template has dark mode support. If your design is light-only, add this CSS override:

/* Force light theme regardless of system preference */
html, body, #container, #container > div {
    background-color: var(--your-bg-color) !important;
}

Note: Avoid targeting [style*="position: fixed"] as this will style the VibesSwitch toggle button.

Step 4b: Scope CSS to Avoid VibesSwitch/VibesPanel Conflicts

The template includes a VibesSwitch toggle button and VibesPanel admin menu that sit outside your app container. Broad CSS selectors can accidentally style these components.

Watch for these problematic patterns:

ProblematicWhySafe Alternative
button {...}Styles VibesSwitch toggle.app button {...} or #container button {...}
* {...} (with colors/backgrounds)Cascades everywhereScope to specific containers
[style*="position: fixed"]Targets VibesSwitchTarget by class/ID instead
body > divMay match menu wrapperUse #container > div

If your design has global button/element styles:

  1. Wrap your app content in a container with a class: <div className="app">...</div>
  2. Scope broad rules: button {}.app button {}
  3. Or use #container which is the template's app root

The template already protects components with:

button[aria-controls="hidden-menu"] { background: transparent !important; }
#hidden-menu { /* menu-specific variable resets */ }

But defense-in-depth is better—scope your CSS to avoid conflicts.

Step 5: Assemble and Test

node "/path/to/vibes-skill/scripts/assemble.js" app.jsx index.html

Open in browser and visually diff against the design reference. They should be pixel-identical except for dynamic content.


Anti-Patterns (DO NOT DO THESE)

Anti-PatternWhy It's WrongCorrect Approach
Translate colors to OKLCHChanges the designUse exact hex values from reference
Restructure HTML "for React"Breaks layoutPreserve structure, only change syntax
"Improve" the CSSNot your jobCopy verbatim
Add your own classesIntroduces driftUse exact classes from reference
Interpret the "vibe"Creates divergenceBe literal, not interpretive
Skip vanilla JS analysisMiss functionalityUnderstand what it does, then React-ify

Transformation Checklist

Before writing code, verify:

  • Read the entire design.html file
  • Identified all <style> blocks (will copy verbatim)
  • Identified dynamic content (lists, inputs, user data)
  • Identified vanilla JS functionality (will convert to React)
  • Noted any custom fonts (add to imports if needed)
  • Checked for dark/light theme assumptions

During transformation:

  • CSS pasted unchanged (no "improvements")
  • HTML structure preserved exactly
  • Only syntax converted (class→className, etc.)
  • Dynamic content uses {expressions} and .map()
  • Vanilla JS replaced with React hooks and handlers
  • Dark mode override added if design is light-only

After assembly:

  • Visual comparison with design reference
  • All interactive elements work
  • Data persists on refresh
  • No console errors
  • VibesSwitch toggle (bottom-right) displays correctly with no background box
  • VibesPanel menu opens when toggle is clicked
  • Menu buttons are correctly styled (not inheriting app button styles)

Example: Static List → Dynamic List

Design HTML:

<ul class="item-list">
  <li class="item">First item</li>
  <li class="item">Second item</li>
</ul>

React with Fireproof:

const { docs } = useLiveQuery("type", { key: "item" });

<ul className="item-list">
  {docs.map(item => (
    <li key={item._id} className="item">{item.text}</li>
  ))}
</ul>

Note: Only the content changed. The classes, structure, and styling are identical.


Example: Static Form → Controlled Form

Design HTML:

<form>
  <input type="text" class="input" placeholder="Enter text...">
  <button class="btn">Submit</button>
</form>

React with Fireproof:

const { doc, merge, submit } = useDocument({ text: "", type: "item" });

<form onSubmit={submit}>
  <input
    type="text"
    className="input"
    placeholder="Enter text..."
    value={doc.text}
    onChange={(e) => merge({ text: e.target.value })}
  />
  <button type="submit" className="btn">Submit</button>
</form>

Note: Same structure, same classes, same placeholder. Only added React bindings.


Integration with Vibes Assembly

This skill produces an app.jsx that works with the standard Vibes assembly:

# In the working directory
node "/path/to/vibes-skill/scripts/assemble.js" app.jsx index.html

The assembly script:

  • Inserts your JSX into the Vibes template
  • Handles Clerk authentication wrapper
  • Sets up import maps for React and Fireproof
  • Configures Connect if .env is present

What's Next?

After transforming a design reference, present these options using AskUserQuestion:

Question: "Design reference transformed! What's next?"
Header: "Next"
Options:
- Label: "Test locally"
  Description: "Open index.html in browser to verify it matches the design exactly"

- Label: "Deploy to Cloudflare (/cloudflare)"
  Description: "Push the app live to Cloudflare Workers"

- Label: "Make adjustments"
  Description: "Fine-tune specific elements while preserving the design"

- Label: "I'm done"
  Description: "Wrap up - files are saved locally"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.34%
按下载量换算46

Claude

29.62%
按下载量换算38

Cursor

15.64%
按下载量换算20

Gemini CLI

9.25%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills