Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计未展示

ring%3apre-dev-design-validationRing%3apre 开发设计验证

Agent Skill

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

总安装

588

周安装

25

GitHub Stars

180

下载量

206
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:ring%3apre-dev-design-validation(Ring%3apre 开发设计验证)
来源仓库:https://github.com/lerianstudio/ring
仓库路径:skills/ring%3Apre-dev-design-validation
安装命令:
npx skills add https://github.com/lerianstudio/ring --skill ring:pre-dev-design-validation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lerianstudio/ring --skill ring:pre-dev-design-validation

简介

ring%3apre-dev-design-validation 用于界面设计、视觉规范和交互体验优化支持。

  • 它可协助生成 UI 方案、检查布局一致性和响应式表现,提升前端质量。
  • 使用时需结合品牌指南和设计系统,避免仅堆砌装饰性元素。
  • 涉及真实页面修改时,应通过截图或预览验证文本溢出和对齐问题。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Design Validation Gate

⛔ MANDATORY GATE - CANNOT BE SKIPPED

This gate is REQUIRED for all features with UI. No exceptions. No shortcuts.

Enforcement Points

EnforcementWhat Happens
TRD checks for design-validation.mdTRD skill will STOP if this file is missing or verdict is not VALIDATED
Commands enforce gate orderpre-dev-feature and pre-dev-full require this gate before TRD
Critical gaps = HARD STOPAny Section 1-2 failure blocks progression to TRD

Why This Gate Exists

Without ValidationWith Validation
Missing UI states discovered during codingAll states defined upfront
"Mobile later" becomes "Mobile never"Responsive specs locked in
Accessibility retrofitted expensivelyA11y baked in from start
10x implementation reworkDesign complete before code

Standards Loading (MANDATORY)

This skill is a validation/checklist skill and does NOT require WebFetch of language-specific standards.

Purpose: Design Validation verifies UX artifact completeness against a checklist. Technical standards are irrelevant at this stage—they apply during TRD (Gate 3) and implementation.

However, if validating component library alignment (Section 8), MUST reference the UI library's documentation to verify component availability and variant names.


Purpose

Verify that UX specifications are COMPLETE before investing in technical architecture.

This gate prevents:

  • Incomplete wireframes reaching implementation
  • Missing UI states causing implementation rework
  • Accessibility gaps discovered late
  • Responsive behavior undefined until coding

This is a VALIDATION gate, not a CREATION gate. It checks existing artifacts, does not create new ones.


Gate Entry Criteria

MUST have these artifacts before running this gate:

ArtifactLocationRequired For
prd.mddocs/pre-dev/{feature}/all features
ux-criteria.mddocs/pre-dev/{feature}/all features with UI
wireframes/docs/pre-dev/{feature}/wireframes/all features with UI
user-flows.mddocs/pre-dev/{feature}/wireframes/all features with UI
feature-map.mddocs/pre-dev/{feature}/Large track only

If artifacts do not exist -> STOP. Return to previous gate.


UI Detection

Feature has UI if PRD contains any of:

  • User stories with: "see", "view", "click", "navigate", "page", "screen", "button", "form"
  • Features involving: login, dashboard, settings, profile, reports, notifications
  • Any direct user-facing interaction

If feature has NO UI -> Skip this gate, proceed to TRD.


Validation Checklist

Section 1: Wireframe Completeness (CRITICAL)

CheckPass CriteriaFail Action
all screens definedEvery user-facing screen has a .yaml fileList missing screens
ASCII prototype presentEvery wireframe has ascii_prototype: sectionList wireframes without ASCII
Components specifiedEvery wireframe has components: with typesList incomplete wireframes
Route definedEvery wireframe has route: fieldList wireframes without routes

Section 2: UI States Coverage (CRITICAL)

CheckPass CriteriaFail Action
Loading stateEvery data-fetching screen defines loadingList screens missing loading
Error stateEvery data-fetching screen defines errorList screens missing error
Empty stateEvery list/table screen defines emptyList screens missing empty
Success stateEvery form/action screen defines successList screens missing success

State Detection Rules:

  • Screen has data_source: or API reference -> Needs loading/error states
  • Screen has type: table or type: list -> Needs empty state
  • Screen has type: form or type: button with action -> Needs success state

Section 3: Accessibility Specifications

CheckPass CriteriaFail Action
Keyboard navigationux-criteria.md has "Keyboard accessible" criteriaFlag missing
Screen reader supportux-criteria.md has "ARIA" or "screen reader" criteriaFlag missing
Contrast requirementsux-criteria.md specifies contrast ratioFlag missing
Focus managementModal/dialog wireframes specify focus behaviorList modals without focus spec

Section 4: Responsive Specifications

CheckPass CriteriaFail Action
Mobile layout definedWireframes with significant layout have mobile ASCIIList wireframes without mobile
Breakpoints documentedux-criteria.md specifies breakpoint behaviorFlag missing
Touch targets notedMobile wireframes consider 44x44px targetsFlag if not mentioned

Section 5: User Flow Completeness

CheckPass CriteriaFail Action
Happy path documenteduser-flows.md has primary success flowFlag missing
Error paths documenteduser-flows.md has at least one error flowFlag missing
Entry points definedFlows specify how user arrivesFlag missing
Exit points definedFlows specify where user goes afterFlag missing

Section 6: Content Specifications

CheckPass CriteriaFail Action
Button labels definedall buttons have explicit label:List buttons with generic labels
Error messages specifiedError states have specific messagesList generic error messages
Empty state CTAsEmpty states have actionable CTAsList empty states without CTA
Form validation messagesForm fields with validation have error textList fields without error text

Section 7: Design System (New Projects)

This section applies when: Project is new (no existing design system detected).

CheckPass CriteriaFail Action
design-system.md existsdocs/pre-dev/{feature}/design-system.md presentFlag: "Missing design-system.md"
Color palette definedPrimary, neutral, semantic colors documentedFlag: "Incomplete color palette"
Typography specifiedFont family, scale, line heights documentedFlag: "Missing typography specs"
Contrast validatedAccessibility contrast ratios calculatedFlag: "Missing contrast validation"
CSS variables listedAll required CSS custom properties documentedFlag: "Missing CSS variables"

Detection Rule: Project is "new" if:

  • No globals.css with CSS variables exists, OR
  • No tailwind.config.* with custom colors exists

Why This Matters:

  • Frontend engineers need design tokens before implementation
  • TRD references design-system.md for styling architecture
  • Missing design system = styling decisions made ad-hoc during coding

Section 8: Component Library Alignment (All UI Features)

This section validates that wireframes use components available in the project's UI library.

CheckPass CriteriaFail Action
UI library identifiedux-criteria.md specifies UI library (shadcn, Chakra, etc.)Flag: "Missing UI library specification"
Components exist in libraryall components: in wireframes exist in specified libraryList unavailable components
Variants match libraryButton variants, input types match library's variantsList incorrect variant usage
Custom components flaggedComponents not in library marked as custom: trueList unmarked custom components

Validation Process:

  1. Read UI library from ux-criteria.md: ui_library: shadcn/ui | Chakra UI | Material UI | Custom
  2. For each wireframe, check components: components: - type: Button # Exists in shadcn? ✅ variant: primary # Valid variant? ✅ - type: DataGrid # Exists in shadcn? ❌ (custom needed)
  3. Flag mismatches:

- Component doesn't exist → Needs custom: true or different component - Variant doesn't exist → Use correct library variant

Why This Matters:

  • Prevents wireframes specifying components that don't exist
  • Prevents implementation errors from incorrect variant names
  • Identifies custom component work needed before TRD

Validation Process

Phase 1: Artifact Discovery

1. Read docs/pre-dev/{feature}/prd.md
2. Detect if feature has UI (see UI Detection rules)
3. If no UI -> Skip validation, proceed to TRD
4. Read docs/pre-dev/{feature}/ux-criteria.md
5. Glob docs/pre-dev/{feature}/wireframes/*.yaml
6. Read docs/pre-dev/{feature}/wireframes/user-flows.md
7. If Large track: Read docs/pre-dev/{feature}/feature-map.md

Phase 2: Systematic Validation

FOR EACH section in checklist:
  FOR EACH check in section:
    - Evaluate against artifacts
    - Record PASS or FAIL
    - If FAIL: Record specific gaps with file locations

Phase 3: Verdict

ConditionVerdictAction
all checks PASSDESIGN VALIDATEDProceed to TRD
Any Section 1-2 check FAILCRITICAL GAPSReturn to UX gate, fix gaps
Only Section 3-6 checks FAILMINOR GAPSDocument gaps, user decides

Output Format

# Design Validation Report

## Feature: {feature_name}

## Validation Date: {date}

## Artifacts Validated

| Artifact | Status | Location |
|----------|--------|----------|
| PRD | Found/Not Found | docs/pre-dev/{feature}/prd.md |
| UX Criteria | Found/Not Found | docs/pre-dev/{feature}/ux-criteria.md |
| Wireframes | Found (N files) | docs/pre-dev/{feature}/wireframes/ |
| User Flows | Found/Not Found | docs/pre-dev/{feature}/wireframes/user-flows.md |

## Validation Results

### Section 1: Wireframe Completeness

| Check | Status | Details |
|-------|--------|---------|
| all screens defined | PASS/FAIL | N/N screens have wireframes |
| ASCII prototype present | PASS/FAIL | Details |
| Components specified | PASS/FAIL | Details |
| Route defined | PASS/FAIL | Details |

### Section 2: UI States Coverage

| Check | Status | Details |
|-------|--------|---------|
| Loading state | PASS/FAIL | Details |
| Error state | PASS/FAIL | Details |
| Empty state | PASS/FAIL | Details |
| Success state | PASS/FAIL | Details |

### Section 3: Accessibility Specifications

| Check | Status | Details |
|-------|--------|---------|
| Keyboard navigation | PASS/FAIL | Details |
| Screen reader support | PASS/FAIL | Details |
| Contrast requirements | PASS/FAIL | Details |
| Focus management | PASS/FAIL | Details |

### Section 4: Responsive Specifications

| Check | Status | Details |
|-------|--------|---------|
| Mobile layout defined | PASS/FAIL | Details |
| Breakpoints documented | PASS/FAIL | Details |
| Touch targets noted | PASS/FAIL | Details |

### Section 5: User Flow Completeness

| Check | Status | Details |
|-------|--------|---------|
| Happy path documented | PASS/FAIL | Details |
| Error paths documented | PASS/FAIL | Details |
| Entry points defined | PASS/FAIL | Details |
| Exit points defined | PASS/FAIL | Details |

### Section 6: Content Specifications

| Check | Status | Details |
|-------|--------|---------|
| Button labels defined | PASS/FAIL | Details |
| Error messages specified | PASS/FAIL | Details |
| Empty state CTAs | PASS/FAIL | Details |
| Form validation messages | PASS/FAIL | Details |

### Section 7: Design System (New Projects Only)

| Check | Status | Details |
|-------|--------|---------|
| design-system.md exists | PASS/FAIL/N/A | Details |
| Color palette defined | PASS/FAIL/N/A | Details |
| Typography specified | PASS/FAIL/N/A | Details |
| Contrast validated | PASS/FAIL/N/A | Details |
| CSS variables listed | PASS/FAIL/N/A | Details |

### Section 8: Component Library Alignment

| Check | Status | Details |
|-------|--------|---------|
| UI library identified | PASS/FAIL | Details |
| Components exist in library | PASS/FAIL | Details |
| Variants match library | PASS/FAIL | Details |
| Custom components flagged | PASS/FAIL | Details |

## Summary

| Section | Status | Critical? |
|---------|--------|-----------|
| Wireframe Completeness | PASS/FAIL | Yes |
| UI States Coverage | PASS/FAIL | Yes |
| Accessibility | PASS/FAIL | Yes |
| Responsive | PASS/FAIL | No |
| User Flows | PASS/FAIL | Yes |
| Content | PASS/FAIL | No |
| Design System (new projects) | PASS/FAIL/N/A | Yes (if applicable) |
| Component Library Alignment | PASS/FAIL | Yes |

## Verdict: [DESIGN VALIDATED | CRITICAL GAPS | MINOR GAPS]

### Critical Gaps (MUST fix before TRD)

[List each critical gap with:]
1. **Gap description**
   - File: `path/to/file`
   - Required: What needs to be added

### Minor Gaps (Recommended to fix)

[List each minor gap with:]
1. **Gap description**
   - File: `path/to/file`
   - Issue: What's missing or incomplete

## Next Steps

| Priority | Action | Gate |
|----------|--------|------|
| P0 | Fix critical gaps | Return to Gate 1/2 |
| P1 | Review minor gaps | Optional |
| - | Re-run validation | After fixes |
| - | Proceed to TRD | After validation passes |

Anti-Rationalization Table

RationalizationWhy It's WRONGRequired Action
"Error states are implementation details"Error states are UX decisions. Users experience errors.Specify all error states before TRD
"We'll figure out mobile layout during coding"Responsive is design decision, not implementation.Specify mobile layout now
"Loading state is just a spinner"Loading UX varies: skeleton, spinner, progressive.Specify loading behavior explicitly
"Accessibility can be added later"Retrofitting a11y is 10x more expensive.Include a11y specs from start
"These are minor gaps, let's proceed"Minor gaps compound. Fix them now.Fix gaps or explicitly accept risk
"The wireframe is self-explanatory"Self-explanatory to you does not mean clear to developer.Document all states explicitly
"This validation is slowing us down"Incomplete design slows implementation 10x more.Complete validation before TRD
"We have tight deadlines"Incomplete specs cause missed deadlines.Invest time now, save time later
"Designer already approved this"Designer approval does not equal completeness check.Run systematic validation
"We'll add states as we implement"Adding states during implementation causes scope creep.Define all states upfront

Pressure Resistance

User SaysYour Response
"Skip validation, design is good enough""Design validation prevents implementation rework. 'Good enough' does not equal complete."
"We don't have time for this gate""Incomplete design costs 10x in implementation. Time invested now saves time later."
"Just the critical sections, skip the rest""all sections exist because they prevent real problems. No cherry-picking."
"Error states are obvious, no need to specify""Obvious to you does not equal obvious to developer does not equal obvious to user. Specify them."
"Mobile can wait for v2""Mobile users are 60%+ of traffic. Responsive is not optional."
"Let's start TRD in parallel""TRD depends on complete design. Starting with gaps creates rework."
"The previous feature didn't need this""Each feature is validated independently. Past shortcuts don't justify current ones."
"I'll fix gaps after TRD""Fixing design after technical architecture causes cascade changes. Fix now."

Blocker Criteria - STOP and Report

ConditionAction
PRD not foundSTOP. Return to Gate 1 to create PRD.
Feature has UI but no ux-criteria.mdSTOP. Return to Gate 1 to create UX criteria.
Feature has UI but no wireframesSTOP. Return to Gate 1/2 to create wireframes.
Critical gaps found (Section 1-2)STOP. Return to UX gate to fix gaps.
Minor gaps found (Section 3-6)ASK USER. Proceed with documented risk or fix first?

Severity Calibration

SeverityCriteriaExamplesAction
CRITICALMissing Section 1-2 itemsNo wireframe for screen, no error state, no loading stateSTOP, return to previous gate
CRITICALMissing Section 7 items (new projects)No design-system.md, no color paletteSTOP, return to PRD creation
CRITICALMissing Section 8 itemsComponents don't exist in library, wrong variantsSTOP, fix wireframes
HIGHMissing Section 3-5 itemsNo a11y criteria, no mobile layout, no error flowDocument, strongly recommend fix
MEDIUMMissing Section 6 itemsGeneric button labels, missing CTA on empty stateDocument, recommend fix
LOWIncomplete but presentMobile layout exists but lacks touch target noteNote for future improvement

When Validation is Not Needed

Skip this gate when all conditions are true:

  • Feature is backend-only (no user-facing UI)
  • Feature is pure API/infrastructure
  • PRD explicitly states "No UI changes"
  • Feature is bug fix with no UX modifications

If any UI exists -> Validation is REQUIRED.


Metrics

MetricDescriptionTarget
validation_pass_rate% of features passing on first validation> 70%
critical_gaps_per_validationAverage critical gaps found< 2
validation_time_minutesTime to complete validation< 15
rework_reductionImplementation rework after validation-50%

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

34.46%
按下载量换算71

Claude

30.68%
按下载量换算63

Cursor

18.89%
按下载量换算39

Gemini CLI

8.25%
按下载量换算17

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills