Co-Pilot / 辅助式
更新于 a month ago

interface-design

DDammyjay93
1.4k
dammyjay93/interface-design
82
Agent 评分

💡 摘要

界面设计通过在会话之间保存设计决策,帮助创建一致且有意图的用户界面.

🎯 适合人群

UI/UX设计师前端开发者产品经理设计系统工程师敏捷团队

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析严重风险

风险:Critical。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

Interface Design


What This Does

When you build UI with Claude, design decisions get made: spacing values, colors, depth strategy, surface elevation. Without structure, those decisions drift across sessions.

Interface Design helps you:

  1. Craft — Principle-based design that produces professional, polished interfaces
  2. Memory — Save decisions to .interface-design/system.md, load automatically
  3. Consistency — Every component follows the same principles throughout the session

Make choices once. Apply them consistently.

Before & After

Without interface-design:

  • Every session starts from scratch
  • Button heights drift (36px, 38px, 40px...)
  • Random spacing values (14px, 17px, 22px...)
  • No consistency across components

With interface-design:

  • System loads automatically each session
  • Patterns reused (Button: 36px, Card: 16px pad)
  • Spacing on grid (4px, 8px, 12px, 16px)
  • Consistent depth and surface treatment throughout

See the difference: interface-design.dev/examples.html


Installation

Plugin (Recommended)

# Add the marketplace /plugin marketplace add Dammyjay93/interface-design # Install the plugin /plugin menu

Select interface-design from the menu. Restart Claude Code after.

Gets you:

  • Principle-based craft for every UI component
  • Automatic system.md loading every session
  • Per-component design checkpoint
  • Commands (/interface-design status, audit, extract)

Manual (Advanced)

git clone https://github.com/Dammyjay93/interface-design.git cd interface-design cp -r .claude/* ~/.claude/ cp -r .claude-plugin/* ~/.claude-plugin/

Restart Claude Code.


How It Works

The Flow

When you build UI with interface-design:

If system.md exists:

✓ Reads skill files and principles
✓ Loads .interface-design/system.md
✓ Applies established patterns
✓ States design choices before each component
✓ Offers to save new patterns

If no system.md:

1. Reads skill files and principles
2. Assesses project context
3. Suggests direction, asks for confirmation
4. States design choices before each component
5. Builds with consistent principles
6. Offers to save system

Example: First Session

You: "Build a user dashboard with metrics cards"

Claude:
This feels like a data-heavy dashboard — I'd suggest:
- Depth: Borders-only (clean, technical)
- Surfaces: Subtle elevation shifts
- Spacing: 8px base

Does this direction fit?

[You: y]

Depth: borders-only
Surfaces: 7% → 9% → 11% lightness scale
Borders: rgba(255,255,255,0.06)
Spacing: 8px base

[Builds dashboard with consistent depth, spacing, surfaces]

Want me to save these patterns to .interface-design/system.md?

[You: y]

✓ System saved

Example: Second Session

You: "Add a settings page"

Claude:
✓ Loaded system.md

Depth: borders-only
Surfaces: using established scale
Borders: rgba(255,255,255,0.06)
Spacing: 8px base

[Builds settings page matching existing system]

Want me to save any new patterns?

The system remembers across sessions.


System File

After establishing direction, your decisions live in .interface-design/system.md:

# Design System ## Direction Personality: Precision & Density Foundation: Cool (slate) Depth: Borders-only ## Tokens ### Spacing Base: 4px Scale: 4, 8, 12, 16, 24, 32 ### Colors --foreground: slate-900 --secondary: slate-600 --accent: blue-600 ## Patterns ### Button Primary - Height: 36px - Padding: 12px 16px - Radius: 6px - Usage: Primary actions ### Card Default - Border: 0.5px solid - Padding: 16px - Radius: 8px

This file loads automatically at session start. Claude sees it and maintains consistency.


Commands

/interface-design:init # Start building with design principles /interface-design:status # Show current system /interface-design:audit <path> # Check code against system /interface-design:extract # Extract patterns from existing code

Design Directions

The skill infers direction from project context, but you can customize:

| Direction | Feel | Best For | |-----------|------|----------| | Precision & Density | Tight, technical, monochrome | Developer tools, admin dashboards | | Warmth & Approachability | Generous spacing, soft shadows | Collaborative tools, consumer apps | | Sophistication & Trust | Cool tones, layered depth | Finance, enterprise B2B | | Boldness & Clarity | High contrast, dramatic space | Modern dashboards, data-heavy apps | | Utility & Function | Muted, functional density | GitHub-style tools | | Data & Analysis | Chart-optimized, numbers-first | Analytics, BI tools |


Examples

See live examples at interface-design.dev/examples.html

For system file templates, see reference/examples/:


Migration from claude-design-skill

This repo was renamed from claude-design-skill.

All old URLs redirect automatically.

If you installed the old skill:

# Uninstall old rm -rf ~/.claude/skills/design-principles # Install new plugin /plugin marketplace add Dammyjay93/interface-design /plugin menu

Your system.md files (if any) continue to work — just rename .ds-engineer/ to .interface-design/.


Philosophy

Decisions compound. A spacing value chosen once becomes a pattern. A depth strategy becomes an identity.

Consistency beats perfection. A coherent system with "imperfect" values beats a scattered interface with "correct" ones.

Memory enables iteration. When you can see what you decided and why, you can evolve intentionally instead of drifting accidentally.


License

MIT — See LICENSE


五维分析
清晰度9/10
创新性7/10
实用性8/10
完整性9/10
可维护性8/10
优缺点分析

优点

  • 确保会话之间的设计一致性。
  • 保存设计决策以供将来使用。
  • 促进专业界面的制作。
  • 提供结构化的UI设计方法。

缺点

  • 可能需要初始设置工作。
  • 新用户的学习曲线。
  • 仅限于特定类型的界面。
  • 依赖于Claude Code环境。

相关技能

flutter-claude-code

A
toolCo-Pilot / 辅助式
82/ 100

“看起来很能打,但别让配置把人劝退。”

design-tokens-skill

A
toolCo-Pilot / 辅助式
82/ 100

“看起来很能打,但别让配置把人劝退。”

claude-designer-skill

A
toolCo-Pilot / 辅助式
82/ 100

“看起来很能打,但别让配置把人劝退。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 Dammyjay93.