搜索

PythonReactSEOPDF
GitHub Skill

command-interface-design-audit

Check existing code against your design system for spacing, depth, color, and pattern violations. Use this skill only when the user explicitly asks to invoke.

yanun0323☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

interface-design audit

Usage

/audit <path>     # Audit specific file/directory
/audit            # Audit common UI paths

What to Check

If .vscode/interface-design/system.md exists:

  1. Spacing violations

    • Find spacing values not on defined grid
    • Example: 17px when base is 4px
  2. Depth violations

    • Borders-only system → flag shadows
    • Subtle system → flag layered shadows
    • Allow ring shadows (0 0 0 1px)
  3. Color violations

    • If palette defined → flag colors not in palette
    • Allow semantic grays
  4. Pattern drift

    • Find buttons not matching Button pattern
    • Find cards not matching Card pattern

Report format:

Audit Results: src/components/

Violations:
  Button.tsx:12 - Height 38px (pattern: 36px)
  Card.tsx:8 - Shadow used (system: borders-only)
  Input.tsx:20 - Spacing 14px (grid: 4px, nearest: 12px or 16px)

Suggestions:
  - Update Button height to match pattern
  - Replace shadow with border
  - Adjust spacing to grid

If no system.md:

No design system to audit against.

Create a system first:
1. Build UI → establish system automatically
2. Run /extract → create system from existing code

Implementation

  1. Check for system.md
  2. Parse system rules
  3. Read target files (tsx, jsx, css, scss)
  4. Compare against rules
  5. Report violations with suggestions

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!