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

update-ui-inventory更新用户界面库存

Agent Skill

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

总安装

1,616

周安装

66

GitHub Stars

4

下载量

517
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/autumnsgrove/groveengine --skill update-ui-inventory

简介

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

  • 适合让 Agent 整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出和对齐。
  • 安装前建议确认权限范围和维护状态,以及是否会触发文件读写。

SKILL.md

Update UI Inventory Skill

When to Activate

Activate this skill when:

  • Adding new UI components to the engine
  • Removing or deprecating components
  • The component-inventory CI check fails
  • You want to verify docs match the actual component count
  • After merging PRs that add/remove components

Files Involved

FilePurpose
.github/component-inventory.jsonSource of truth for component counts
docs/design-system/COMPONENT-REFERENCE.mdUser-facing component documentation
libs/engine/src/lib/ui/components/Actual component source files

Inventory Structure

The inventory tracks 13 component categories:

{
	"components": {
		"total": 186,
		"breakdown": {
			"primitives": 45,
			"nature": 64,
			"ui": 29,
			"typography": 11,
			"chrome": 6,
			"terrarium": 7,
			"gallery": 4,
			"charts": 4,
			"content": 4,
			"states": 4,
			"forms": 3,
			"indicators": 3,
			"icons": 2
		}
	}
}

Step-by-Step Process

1. Count Components in Each Category

Run these commands to get actual counts:

# Count .svelte files in each category
for dir in primitives nature ui typography chrome terrarium gallery charts content states forms indicators icons; do
  count=$(find libs/engine/src/lib/ui/components/$dir -name "*.svelte" 2>/dev/null | wc -l | tr -d ' ')
  echo "$dir: $count"
done

2. Compare with Inventory

Read the current inventory and compare:

cat .github/component-inventory.json

3. Identify Discrepancies

Look for:

  • New components: Files exist but aren't in the count
  • Removed components: Count includes files that no longer exist
  • Moved components: Component relocated to different category

4. Update Inventory JSON

Edit .github/component-inventory.json:

{
  "lastUpdated": "YYYY-MM-DD",
  "lastAuditedBy": "claude/<context>",
  "components": {
    "total": <sum of all categories>,
    "breakdown": {
      "<category>": <new count>,
      ...
    }
  }
}

5. Update Component Reference

Edit docs/design-system/COMPONENT-REFERENCE.md:

  1. Update the intro line: > 186 components organized by category...
  2. Update Quick Links (the anchor links include counts): - [ui/ - Core UI Components](#ui---core-ui-components-29)
  3. Update section headers: ## ui/ - Core UI Components (29)
  4. Add new component to relevant table (if significant): For Glass components, add to "Other Glass Components" table: ` | GlassNewComponent | Description of what it does | `
  5. Update the last updated date at the bottom: _Last updated: YYYY-MM-DD_

6. Commit Changes

git add .github/component-inventory.json docs/design-system/COMPONENT-REFERENCE.md
git commit -m "docs: update component inventory

- Update <category> count: X -> Y
- Add <ComponentName> to COMPONENT-REFERENCE.md
- Bump total: A -> B"

Quick Reference: Counting Commands

# Single category count
find libs/engine/src/lib/ui/components/ui -name "*.svelte" | wc -l

# List all files in a category (to identify new ones)
ls libs/engine/src/lib/ui/components/ui/*.svelte

# Find Glass components specifically
ls libs/engine/src/lib/ui/components/ui/ | grep -i glass

# Total across all categories
find libs/engine/src/lib/ui/components -name "*.svelte" | wc -l

Documentation Guidelines

When adding components to COMPONENT-REFERENCE.md:

Glass Components (Always Document)

Glass components define Grove's visual language - always add them to the "Other Glass Components" table with a clear description.

Standard Components

Add to the "Standard Components" table if it's a general-purpose wrapper.

Specialized Components

For category-specific components (nature, charts, etc.), add to the appropriate section if it's significant or has unique props worth documenting.

Example: Adding a New Glass Component

After adding GlassStatusWidget.svelte:

  1. Count confirms ui went from 28 to 29
  2. Update inventory: "ui": 29, "total": 186, "lastUpdated": "2026-01-21"
  3. Update COMPONENT-REFERENCE.md:

- Line 3: > 186 components... - Line 13: - [ui/ - Core UI Components](#ui---core-ui-components-29) - Line 74: ## ui/ - Core UI Components (29) - After line 209, add to table: ` | GlassStatusWidget | Real-time status widget with auto-refresh | - Last line: *Last updated: 2026-01-21*`

CI Integration

The .github/workflows/component-inventory.yml workflow:

  • Runs on PRs touching libs/engine/src/lib/ui/components/**
  • Counts actual components vs inventory
  • Fails if there's a mismatch
  • Provides helpful output showing discrepancies

When CI fails, run this skill to fix the mismatch.

Checklist

Before finishing:

  • All category counts match actual file counts
  • Total equals sum of all categories
  • lastUpdated date is today
  • COMPONENT-REFERENCE.md counts match inventory
  • New significant components added to appropriate documentation table
  • Quick Links anchors updated if section headers changed
  • Changes committed with descriptive message

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.74%
按下载量换算190

Claude

31.57%
按下载量换算163

Cursor

18.78%
按下载量换算97

Gemini CLI

9.02%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills