Token导航 LogoToken导航

Agent Skill · 前端设计

design-engineer-mindset(设计工程师思维)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

design-engineer-mindset 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 4,828。

总安装 792周安装 33GitHub Stars 21下载 264核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sanky369/vibe-building-skills --skill design-engineer-mindset

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

培养兼具设计与工程思维的复合型人才,理解浏览器渲染原理。适合分析动画性能瓶颈、优化交互反馈机制及解决视觉一致性难题。强调代码即设计媒介的理念,拒绝用近似手段替代精确实现。应持续关注渲染管线细节,确保动效流畅且不牺牲首屏加载速度。

design-engineer-mindset 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/design-engineer-mindset

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sanky369/vibe-building-skills --skill design-e…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

design-engineer-mindset 怎么安装?

在终端执行 npx skills add https://github.com/sanky369/vibe-building-skills --skill design-engineer-mi…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

design-engineer-mindset 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

design-engineer-mindset 需要什么权限?

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

design-engineer-mindset 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

design-engineer-mindset 用的人多吗?

公开数据是累计安装 792 次,近一周安装 33 次,下载 264 次,GitHub 21 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

design-engineer-mindset 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
design-engineer-mindset

设计工程师思维 · 本页

79221操作浏览器MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

The Design Engineer Mindset

Overview

The Design Engineer is a unified role that bridges the traditional gap between design and implementation. Unlike a designer who hands off static mockups, or a developer who approximates designs, the Design Engineer understands that the medium of digital design is code.

This skill teaches you to think like a design engineer: understanding rendering pipelines, animation performance, and the physics of the browser as your design material.

The Implementation Gap

The Traditional Problem

In traditional workflows:

  1. Designer creates static mockup in Figma
  2. Designer hands off to developer
  3. Developer approximates the design in code
  4. Details are lost in translation

Result: The final product never matches the design. Subtle animations are removed. Spacing is approximated. Interactions feel wrong.

The Design Engineer Solution

The Design Engineer understands that:

  • The medium is code, not pixels
  • Rendering pipelines matter
  • Animation performance is design
  • Implementation fidelity is non-negotiable

Result: Design is preserved through implementation. Quality is baked in.

Understanding the Browser as Design Material

The Rendering Pipeline

To design with code, you must understand how browsers render.

1. Parse HTML/CSS/JS
2. Build DOM tree
3. Compute styles (CSSOM)
4. Layout (calculate positions)
5. Paint (rasterize pixels)
6. Composite (combine layers)

Each step takes time. Understanding this pipeline lets you optimize.

Layout Thrashing

Avoid reading and writing layout properties in rapid succession.

// Bad - Layout thrashing
for (let i = 0; i < 100; i++) {
  element.style.width = (i * 10) + 'px';  // Triggers layout
  const width = element.offsetWidth;  // Reads layout
}

// Good - Batch reads and writes
const widths = [];
for (let i = 0; i < 100; i++) {
  widths.push((i * 10) + 'px');
}
widths.forEach((width, i) => {
  elements[i].style.width = width;  // Batch writes
});

GPU Acceleration

Use transforms and opacity for animations (GPU-accelerated) instead of position/size changes (CPU-intensive).

/* Bad - CPU-intensive */
.box {
  animation: moveLeft 1s;
}

@keyframes moveLeft {
  from { left: 0; }
  to { left: 100px; }
}

/* Good - GPU-accelerated */
.box {
  animation: moveLeft 1s;
}

@keyframes moveLeft {
  from { transform: translateX(0); }
  to { transform: translateX(100px); }
}

Animation Performance

Measuring Animation Performance

Use DevTools to measure frame rate.

// Measure FPS
let lastTime = performance.now();
let frames = 0;

const measureFPS = () => {
  const currentTime = performance.now();
  if (currentTime >= lastTime + 1000) {
    console.log(`FPS: ${frames}`);
    frames = 0;
    lastTime = currentTime;
  }
  frames++;
  requestAnimationFrame(measureFPS);
};

measureFPS();

60fps Target

Aim for 60 frames per second (16.67ms per frame).

// Use requestAnimationFrame for smooth animations
const animate = () => {
  // Do animation work here (must complete in < 16.67ms)
  requestAnimationFrame(animate);
};

animate();

Easing Functions

Choose easing functions that match the physics of the interaction.

// Linear - constant speed
const linear = (t) => t;

// Ease-out - starts fast, slows down (natural deceleration)
const easeOut = (t) => 1 - Math.pow(1 - t, 3);

// Ease-in - starts slow, speeds up (natural acceleration)
const easeIn = (t) => Math.pow(t, 3);

// Ease-in-out - accelerates then decelerates
const easeInOut = (t) => t < 0.5
  ? 4 * t * t * t
  : 1 - Math.pow(-2 * t + 2, 3) / 2;

Design Tokens as Code

Tokens Define the System

Design tokens are the single source of truth for design decisions.

// Design tokens
const tokens = {
  spacing: {
    xs: '4px',
    sm: '8px',
    md: '16px',
    lg: '24px',
    xl: '32px',
    xxl: '48px',
  },
  colors: {
    primary: '#0EA5E9',
    secondary: '#64748B',
    error: '#EF4444',
    success: '#10B981',
  },
  typography: {
    h1: {
      fontSize: '48px',
      fontWeight: 700,
      lineHeight: 1.2,
    },
    body: {
      fontSize: '16px',
      fontWeight: 400,
      lineHeight: 1.6,
    },
  },
  shadows: {
    sm: '0 1px 2px rgba(0, 0, 0, 0.05)',
    md: '0 4px 6px rgba(0, 0, 0, 0.1)',
    lg: '0 10px 15px rgba(0, 0, 0, 0.1)',
  },
};

Tokens in CSS

Use CSS variables to implement tokens.

:root {
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Colors */
  --color-primary: #0EA5E9;
  --color-secondary: #64748B;
  --color-error: #EF4444;
  --color-success: #10B981;

  /* Typography */
  --font-size-h1: 48px;
  --font-size-body: 16px;
  --font-weight-bold: 700;
  --font-weight-normal: 400;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Use tokens */
.button {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-md);
}

Component Architecture from a Design Engineer Perspective

Atomic Design with Performance in Mind

// Atoms - Single, indivisible elements
const Button = ({ variant = 'primary', ...props }) => (
  <button className={`button button-${variant}`} {...props} />
);

// Molecules - Simple groups of atoms
const FormField = ({ label, ...props }) => (
  <div className="form-field">
    <label>{label}</label>
    <input {...props} />
  </div>
);

// Organisms - Complex groups of molecules
const Form = ({ onSubmit, fields }) => (
  <form onSubmit={onSubmit}>
    {fields.map(field => <FormField key={field.name} {...field} />)}
    <Button type="submit">Submit</Button>
  </form>
);

Performance-Conscious Components

// Memoize to prevent unnecessary re-renders
const MemoizedButton = React.memo(Button);

// Use useCallback to preserve function identity
const handleClick = useCallback(() => {
  // Handle click
}, []);

// Use useMemo for expensive calculations
const memoizedValue = useMemo(() => {
  return expensiveCalculation(data);
}, [data]);

Interaction Fidelity

Translating Animations to Code

When a designer creates an animation in Figma, the Design Engineer must translate it to code with precision.

Designer's Animation:

  • Duration: 300ms
  • Easing: ease-out
  • From: opacity 0, translateY(-20px)
  • To: opacity 1, translateY(0)

Design Engineer's Code:

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.element {
  animation: slideIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

Micro-interactions with Precision

// Precise micro-interaction
const handleButtonClick = () => {
  // 1. Immediate visual feedback (ripple effect)
  showRipple();

  // 2. Optimistic state update
  setIsLoading(true);

  // 3. Network request
  fetch('/api/action')
    .then(() => {
      // 4. Success feedback
      showSuccess();
      setIsLoading(false);
    })
    .catch(() => {
      // 5. Error recovery
      showError();
      setIsLoading(false);
    });
};

Design System Implementation

Living Design Systems

A Design Engineer maintains a living design system where code is the source of truth.

// Design system component library
export const Button = ({ variant, size, ...props }) => {
  const variantStyles = {
    primary: 'bg-blue-600 text-white',
    secondary: 'bg-gray-200 text-gray-900',
  };

  const sizeStyles = {
    sm: 'px-3 py-1 text-sm',
    md: 'px-4 py-2 text-base',
    lg: 'px-6 py-3 text-lg',
  };

  return (
    <button
      className={`${variantStyles[variant]} ${sizeStyles[size]} rounded-lg`}
      {...props}
    />
  );
};

// Document in Storybook
export default {
  title: 'Components/Button',
  component: Button,
};

export const Primary = () => <Button variant="primary">Click me</Button>;
export const Secondary = () => <Button variant="secondary">Click me</Button>;

Quality Assurance Through Implementation

Visual Regression Testing

// Use tools like Percy or Chromatic to catch visual regressions
describe('Button Component', () => {
  it('should match design', () => {
    cy.mount(<Button variant="primary">Click me</Button>);
    cy.percySnapshot('button-primary');
  });
});

Performance Testing

// Measure component performance
describe('Performance', () => {
  it('should render in < 16ms', () => {
    const start = performance.now();
    render(<LargeList items={1000} />);
    const duration = performance.now() - start;
    expect(duration).toBeLessThan(16);
  });
});

The Design Engineer Workflow

1. Understand the Design Intent

Before implementing, understand *why* the design is the way it is.

Why is this button 44px tall?
→ Touch target size (minimum 44x44px)

Why is this animation 300ms?
→ Fast enough to feel responsive, slow enough to feel intentional

Why is this spacing 24px?
→ Follows 8-point grid system

2. Implement with Fidelity

Implement the design exactly as intended, not approximately.

/* Exact implementation */
.button {
  height: 44px;  /* Not 40px or 48px */
  padding: 12px 24px;  /* Exact spacing */
  animation-duration: 300ms;  /* Exact timing */
  border-radius: 8px;  /* Exact radius */
}

3. Measure and Optimize

Measure performance and optimize without sacrificing quality.

// Measure
const metrics = measurePerformance();

// Optimize
if (metrics.fps < 60) {
  useGPUAcceleration();
  batchDOMUpdates();
  reduceComplexity();
}

// Verify
const newMetrics = measurePerformance();
console.assert(newMetrics.fps >= 60);

4. Iterate and Refine

Work with designers to refine based on implementation learnings.

Designer: "This animation should feel snappier"
Engineer: "Let's reduce duration from 300ms to 200ms"
Both: "Test and verify"

How to Use This Skill with Claude Code

Implement with Fidelity

"I'm using the design-engineer-mindset skill. Can you help me:
- Implement this design exactly as specified
- Use GPU-accelerated animations
- Measure and optimize performance
- Ensure 60fps animations"

Build a Design System

"Can you help me build a design system?
- Define design tokens
- Create component library
- Document in Storybook
- Set up visual regression testing"

Optimize Animation Performance

"Can you optimize these animations?
- Use transforms instead of position
- Batch DOM updates
- Measure FPS
- Ensure 60fps"

Integration with Other Skills

  • interaction-physics — Animation implementation
  • performance-optimization — Performance measurement
  • component-architecture — Component design
  • design-foundation — Design tokens

Key Principles

1. Code is Design Material Understand the browser as your design tool.

2. Fidelity Matters Implement designs exactly, not approximately.

3. Performance is Design Animation performance affects user perception.

4. Measure Everything Data-driven optimization.

5. Iterate and Refine Work with designers to improve through implementation.

Checklist: Are You Thinking Like a Design Engineer?

  • I understand the rendering pipeline
  • I use GPU-accelerated animations
  • I measure FPS and optimize
  • I implement designs with fidelity
  • I use design tokens consistently
  • I batch DOM updates
  • I prevent layout thrashing
  • I test visual regressions
  • I measure performance
  • I iterate with designers

The Design Engineer mindset transforms implementation from approximation to precision.

平台分布

Claude Code

26.68%
按下载量换算70

Codex

24.59%
按下载量换算65

Gemini CLI

17.48%
按下载量换算46

OpenCode

12%
按下载量换算32

Antigravity

7.87%
按下载量换算21

trae

3.56%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills