Token导航 LogoToken导航

Agent Skill · 研究检索

validating-ui-features(验证用户界面功能)

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

validating-ui-features 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 67,317。

总安装 247周安装 10GitHub Stars 86下载 78核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:validating-ui-features(验证用户界面功能)
来源仓库:https://github.com/microsoft-foundry/foundry-agent-webapp
仓库路径:skills/validating-ui-features
安装命令:
npx skills add https://github.com/microsoft-foundry/foundry-agent-webapp --skill validating-ui-features
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/microsoft-foundry/foundry-agent-webapp --skill validating-ui-features

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

validating-ui-features 辅助界面设计、视觉规范和交互体验优化,提升产品可用性。适合生成 UI 方案、检查布局合理性与组件层级,需结合品牌和设计系统使用。通过 GitHub 安装,使用 npx skills add 命令添加指定仓库的技能模块。

涉及真实页面改动时应通过截图或浏览器预览验证文本溢出和对齐表现。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/validating-ui-features

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

validating-ui-features 怎么安装?

在终端执行 npx skills add https://github.com/microsoft-foundry/foundry-agent-webapp --skill validatin…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

validating-ui-features 支持哪些 AI 工具?

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

validating-ui-features 需要什么权限?

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

validating-ui-features 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

validating-ui-features 用的人多吗?

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

validating-ui-features 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
validating-ui-features

验证用户界面功能 · 本页

24786操作浏览器未明确通过

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

SKILL.md 原文

Validating UI Features

CRITICAL: Load this skill before running any UI validation tests.

Prerequisites

  • Local dev servers running (Backend: 8080, Frontend: 5173)
  • Playwright MCP tools available
  • Authenticated user session (MSAL popup completed)

Quick Test Commands

TestCommand
Start serversVS Code task: Start Dev (VS Code Terminals)
Navigatebrowser_navigate to http://localhost:5173
Check stateLook for 🔄 entries in browser console

Test 1: Theme Toggle (Settings Panel)

Purpose

Verify the Settings panel opens and theme switching works correctly.

UI Flow

ChatInput toolbar → Settings button (gear) → SettingsPanel drawer → ThemePicker dropdown

Steps

  1. Navigate to http://localhost:5173
  2. Wait for authentication and agent metadata load
  3. Find Settings button in ChatInput toolbar (gear icon, aria-label="Settings")
  4. Click Settings button
  5. Verify SettingsPanel drawer opens from right side
  6. Verify "Appearance" section visible with ThemePicker
  7. Click ThemePicker dropdown (currently shows "Light" or saved preference)
  8. Select "Dark" option
  9. Verify Theme changes:

- Background becomes dark (≈ rgb(32, 31, 30)) - Text becomes light - No console errors

  1. Select "Light" option
  2. Verify Theme changes back:

- Background becomes light (≈ rgb(255, 255, 255)) - Text becomes dark

  1. Select "System" option
  2. Verify Theme matches OS preference
  3. Close Settings panel (X button or click outside)

Console Evidence

// No errors should appear
// LocalStorage updated:
localStorage.getItem('ai-foundry-theme') // "Dark", "Light", or "System"

DOM Changes

  • <body> FluentProvider styles update
  • CSS variables change: --colorNeutralBackground1, --colorNeutralForeground1

Pass Criteria

  • Settings panel opens/closes without errors
  • All three theme options selectable
  • Visual theme changes immediately on selection
  • Theme persists after closing panel

Test 2: New Chat Button

Purpose

Verify the New Chat button clears messages and resets conversation state.

UI Flow

Send message → Wait for response → Click New Chat button → Verify reset

Prerequisites

  • At least one message exchange completed

Steps

  1. Send a test message: "Hello, testing new chat button"
  2. Wait for assistant response to complete (status: idle)
  3. Verify New Chat button is enabled (not grayed out)
  4. Click New Chat button (ChatAdd icon, aria-label="New chat")
  5. Verify immediate changes:

- Messages array cleared (empty chat area) - StarterMessages component visible (agent intro + prompts) - Input field focused and empty - New Chat button now disabled (no messages to clear)

Console Evidence

🔄 [timestamp] CHAT_CLEAR
Action: {type: CHAT_CLEAR}
Changes: {
  chat.messages.length: N → 0
}

Pass Criteria

  • Button disabled when no messages
  • Button enabled after first message
  • Click clears all messages instantly
  • StarterMessages reappear
  • conversationId reset to null
  • Input field receives focus
  • No console errors

Test 3: Cancel Stream (Stop Button)

Purpose

Verify streaming can be cancelled mid-response.

UI Flow

Send long prompt → While streaming → Click Stop button → Verify cancellation

Steps

  1. Start a new chat (or use existing)
  2. Send a prompt that triggers a long code response: Write a comprehensive Python script that calculates Fibonacci numbers using 5 different methods: recursive, memoized, iterative, matrix exponentiation, and Binet's formula. Include detailed docstrings, type hints, performance benchmarks, and unit tests for each method.
  3. Immediately observe:

- Status changes to streaming - Stop button becomes enabled (aria-label="Cancel response") - Send button becomes disabled - Text chunks appearing in assistant message

  1. Click Stop button while streaming is active
  2. Verify cancellation:

- Streaming stops immediately - Partial response preserved (not deleted) - Status returns to idle - Send button re-enabled - Stop button disabled again

Keyboard Shortcut

  • Press Escape key during streaming → should also cancel

Console Evidence

🔄 [timestamp] CHAT_CANCEL_STREAM
Action: {type: CHAT_CANCEL_STREAM}
Changes: {
  chat.status: streaming → idle,
  chat.streamingMessageId: "xxx" → undefined
}

Edge Cases

  • Very fast response may complete before cancel → OK, not an error
  • Multiple rapid clicks → should be idempotent

Pass Criteria

  • Stop button disabled when not streaming
  • Stop button enabled during streaming
  • Click stops stream immediately
  • Partial response text preserved
  • Status returns to idle
  • Escape key works as shortcut
  • No errors in console

Test 4: Markdown Code Block Rendering

Purpose

Verify code blocks render with syntax highlighting, line numbers, and copy button.

UI Flow

Send code request → Wait for response → Verify code block UI

Steps

  1. Start a new chat
  2. Send a code generation prompt: Write a Python function to calculate fibonacci numbers with proper type hints
  3. Wait for response to complete
  4. Verify code block structure:

- Container with dark background - Header bar showing "python" language label - "Copy" button in header - Line numbers on left side - Syntax highlighting (keywords, strings, comments in different colors)

  1. Click "Copy" button
  2. Verify code copied (paste somewhere to confirm)

Additional Test Prompts

From test-files/test-prompts.json:

[
  "Create a TypeScript interface for a user profile with nested preferences",
  "Show me a bash script to backup a PostgreSQL database",
  "Write a SQL query with a CTE to find duplicate customer records"
]

Expected Code Block DOM

<div class="codeBlock">
  <div class="codeHeader">
    <span class="codeLanguage">python</span>
    <button>Copy</button>
  </div>
  <div> <!-- SyntaxHighlighter -->
    <!-- Line numbers + highlighted code -->
  </div>
</div>

Syntax Highlighting Colors (vscDarkPlus theme)

ElementColor
Keywords (def, return, if)Purple/Blue
StringsOrange
CommentsGreen
Function namesYellow
TypesCyan

Pass Criteria

  • Language label displayed correctly
  • Copy button present and functional
  • Syntax highlighting applied
  • Line numbers visible
  • Long lines wrap (no horizontal overflow)
  • Multiple code blocks render independently

Test 5: Complex Markdown Rendering

Purpose

Verify tables, lists, headings, and text formatting render correctly.

Steps

  1. Send a complex markdown prompt: Create a comprehensive guide with: - A comparison table of React, Vue, and Angular - Numbered installation steps - A code example - Bold and italic text formatting - A blockquote with a tip
  2. Wait for response to complete
  3. Verify each element:

Expected Elements

ElementVerification
TableBorders visible, headers bold, rows alternate
Ordered listNumbers 1, 2, 3... with proper indentation
Unordered listBullets with proper indentation
Nested listSub-items indented further
Bold texttext renders with heavier weight
Italic text*text* renders with slant
Inline codecode has background highlight
BlockquoteLeft border, indented, lighter text
LinksUnderlined, opens in new tab

Pass Criteria

  • Tables render with visible structure
  • Lists have proper indentation
  • Text formatting (bold/italic) applied
  • Inline code visually distinct
  • Links functional and styled
  • No raw markdown visible

Test 6: Token Usage Info

Purpose

Verify response footer shows timing, token counts, and expandable usage details.

UI Flow

Send message → Wait for response → Verify footer → Click expand → Verify breakdown

Steps

  1. Send any message and wait for response to complete
  2. Verify response footer displays:

- Response time (e.g., 3575ms) - Total token count (e.g., 848 tokens) - Info icon button (aria-label="Show token usage details")

  1. Hover over info icon
  2. Verify usage details panel shows:

- "Usage Information" header - Input tokens (e.g., Input: 799 tokens) - Output tokens (e.g., Output: 49 tokens)

Console Evidence

Action: {type: CHAT_STREAM_COMPLETE, usage: Object}
// usage object: { promptTokens, completionTokens, totalTokens }

Pass Criteria

  • Response time displayed after completion
  • Total token count displayed
  • Info icon button present
  • Input/Output breakdown shows on hover
  • Values are non-zero numbers

Test Files Reference

FilePurpose
test-files/test-prompts.jsonPrompts for each test scenario
test-files/code-sample.mdExpected code block rendering
test-files/complex-response.mdExpected complex markdown
test-files/test.txtPlain text upload test
test-files/test.pngImage upload test

Troubleshooting

IssueLikely CauseSolution
Theme not changingThemeContext not receiving updateCheck FluentProvider wrapping
New chat button always disabledhasMessages prop falseCheck messages array binding
Cancel not workingAbortController not setCheck currentStreamAbort in ChatService
Code not highlightedLanguage not detectedCheck regex pattern in Markdown.tsx
Copy button not workingcopy-to-clipboard importCheck package installed
Table not renderingGFM plugin missingCheck remarkGfm in Markdown.tsx

Quick Validation Checklist

□ Theme Toggle
  □ Settings opens
  □ Dark theme works
  □ Light theme works
  □ System theme works
  □ Persists on refresh

□ New Chat
  □ Button disabled initially
  □ Enabled after message
  □ Clears messages
  □ Resets conversation

□ Cancel Stream
  □ Stop enabled during stream
  □ Cancels immediately
  □ Preserves partial response
  □ Escape key works

□ Code Blocks
  □ Language label
  □ Copy button works
  □ Syntax highlighting
  □ Line numbers

□ Complex Markdown
  □ Tables
  □ Lists
  □ Formatting
  □ Links

□ Token Usage
  □ Response time shown
  □ Token count shown
  □ Info icon present
  □ Input/Output breakdown on hover

平台分布

Codex

37.03%
按下载量换算29

Claude

31.17%
按下载量换算24

Cursor

20.54%
按下载量换算16

Gemini CLI

9.16%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills