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

visual-validator视觉验证器

Agent Skill

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

总安装

190

周安装

8

GitHub Stars

37

下载量

67
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:visual-validator(视觉验证器)
来源仓库:https://github.com/majesticlabs-dev/majestic-marketplace
仓库路径:skills/visual-validator
安装命令:
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill visual-validator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill visual-validator

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及页面改动时应通过截图或浏览器预览检查表现。
  • 安装命令:npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill visual-validator
  • 注意:涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

SKILL.md

Visual Validator

Audience: Developers who have made UI modifications and need visual verification.

Goal: Rigorously verify UI modifications through systematic visual analysis, with a default assumption that the modification goal has NOT been achieved until proven otherwise.

Core Principle

Default assumption: The modification goal has NOT been achieved until proven otherwise.

  • Be highly critical and look for flaws, inconsistencies, or incomplete implementations
  • Ignore code hints or implementation details - base judgments solely on visual evidence
  • Only accept clear, unambiguous visual proof that goals have been met

Validation Process

0. Load Design System (if available)

DESIGN_SYSTEM_PATH = /majestic:config toolbox.build_task.design_system_path ''

If DESIGN_SYSTEM_PATH is not empty, read the design system file at that path.

If design system found: Use its specifications for compliance verification. If not found: Use generic design principles only.

1. Objective Description First

Describe exactly what you observe in the visual evidence without making assumptions:

  • Start with "From the visual evidence, I observe..."
  • Describe colors, positions, sizes, and states factually

2. Goal Verification

Compare each visual element against the stated modification goals:

  • For rotations: Confirm aspect ratio changes
  • For positioning: Verify coordinate differences
  • For sizing: Confirm dimensional changes
  • For colors: Measure contrast ratios

3. Reverse Validation

Actively look for evidence that the modification failed rather than succeeded:

  • Challenge whether apparent differences are actually the intended differences
  • Question whether "looks different" equals "looks correct"

4. Accessibility Assessment

Verify visual accessibility compliance:

  • Color contrast ratios meet WCAG standards (4.5:1 for normal text, 3:1 for large)
  • Focus indicators are visible and clear
  • Text scaling maintains readability
  • Visual hierarchy supports information architecture

5. Design System Compliance

If design system was loaded in Step 0, verify against its specific specifications:

Color Verification

  • Primary colors match design system HEX values
  • Semantic colors used correctly (error = destructive, success = positive)
  • Base colors match design system (backgrounds, borders, text)
  • No off-brand or arbitrary colors used

Typography Verification

  • Font families match design system font stack
  • Type scale follows design system sizes (H1, H2, body, caption)
  • Font weights match specifications (400, 500, 600, etc.)
  • Line heights follow design system values

Spacing Verification

  • Component padding matches design system (e.g., p-4, p-6)
  • Gaps follow design system grid (4px base, 8px, 16px, etc.)
  • No arbitrary spacing values (13px, 7px)

Component Verification

  • Button sizes match design system specifications (height, padding)
  • Button states implemented per design system (hover, focus, active, disabled)
  • Input sizes match design system specifications
  • Input states implemented per design system (focus, error, success)
  • Card styling matches design system (radius, shadow, padding)
  • Alert styling follows design system semantic colors

Border Radius Verification

  • Border radius values match design system scale
  • Consistent radius per component type (buttons, inputs, cards)

Shadow Verification

  • Shadow/elevation values match design system scale
  • Appropriate elevation for component type

If NO design system loaded, use generic checks:

  • Typography matches system specifications
  • Colors use consistent palette values
  • Spacing follows apparent grid system
  • Components match existing library patterns

Verification Checklist

Before declaring success, confirm:

  • Described actual visual content objectively
  • Avoided inferring effects from code changes
  • Validated measurements for size/position/rotation changes
  • Checked color contrast ratios meet WCAG standards
  • Verified focus indicators and keyboard navigation visuals
  • Assessed responsive breakpoint behavior
  • Validated loading states and transitions
  • Confirmed design system token compliance
  • Actively searched for failure evidence
  • Questioned whether "different" equals "correct"

Output Format

Structure your validation report as:

## Visual Validation Report

### Observed State
From the visual evidence, I observe...
[Factual description of what is visible]

### Goal Assessment
| Goal | Status | Evidence |
|------|--------|----------|
| [Goal 1] | pass/warning/fail | [Specific observation] |

### Accessibility Check
- Contrast: [Pass/Fail with ratios]
- Focus indicators: [Present/Missing]
- Responsive: [Tested breakpoints]

### Design System Compliance
**Design System:** `[path or "None loaded"]`

| Category | Status | Evidence |
|----------|--------|----------|
| Colors | pass/warning/fail | [e.g., "Primary buttons use #000000 as specified"] |
| Typography | pass/warning/fail | [e.g., "H1 uses text-4xl font-semibold"] |
| Spacing | pass/warning/fail | [e.g., "Card padding is p-6 as specified" or "14px gap detected, spec requires 16px"] |
| Components | pass/warning/fail | [e.g., "Button height 40px matches md specification"] |
| States | pass/warning/fail | [e.g., "Hover and focus states implemented correctly"] |
| Border Radius | pass/warning/fail | [e.g., "Buttons use rounded-lg as specified"] |
| Shadows | pass/warning/fail | [e.g., "Cards use shadow-md elevation"] |

**Compliance Summary:** [X/7 categories pass]

### Verdict
[ACHIEVED / PARTIALLY ACHIEVED / NOT ACHIEVED]

### Issues Found
1. [Issue with specific location and design system reference]

### Recommendations
1. [Specific fix needed with design system reference]
   - Current: [what was observed]
   - Expected: [what design system specifies]
   - Fix: [specific change needed]

Behavioral Guidelines

  • Maintain skeptical approach until visual proof is provided
  • Document findings with precise, measurable observations
  • Never declare success without concrete visual evidence
  • If uncertain, explicitly state uncertainty and request clarification
  • Provide constructive feedback for improvement

Taking Screenshots

When using browser tools for visual validation:

  1. Use browser_snapshot to get element references
  2. Use browser_screenshot to capture the target area
  3. Analyze the screenshot against stated goals
  4. Document observations factually before making judgments

Example Validations

  • "Verify the new button meets accessibility contrast requirements"
  • "Confirm the modal overlay properly blocks background interaction"
  • "Assess whether error message styling follows design system"
  • "Validate responsive navigation collapses at mobile breakpoints"
  • "Check that dark theme maintains visual hierarchy"

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.92%
按下载量换算23

Claude

31.57%
按下载量换算21

Cursor

20.45%
按下载量换算14

Gemini CLI

9.32%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills