Agent Skills › videojs/video.js › review-html-component-design

review-html-component-design

GitHub

审查 HTML 组件设计,评估边界、API、可复用性、生命周期及无障碍访问。通过追踪数据流和 bundle 成本,确保组件符合最佳实践并最小化变更。

.agents/skills/review-html-component-design/SKILL.md videojs/video.js

触发场景

审查 HTML 组件设计方案 评估 Web Component API 与边界

安装

npx skills add videojs/video.js --skill review-html-component-design -g -y
更多选项

非标准路径

npx skills add https://github.com/videojs/video.js/tree/main/.agents/skills/review-html-component-design -g -y

不安装直接使用

npx skills use videojs/video.js@review-html-component-design

指定 Agent (Claude Code)

npx skills add videojs/video.js --skill review-html-component-design -a claude-code -g -y

安装 repo 全部 skill

npx skills add videojs/video.js --all -g -y

预览 repo 内 skill

npx skills add videojs/video.js --list

SKILL.md

Frontmatter
{
    "name": "review-html-component-design",
    "description": "Review HTML component designs. Use for boundaries, APIs, opt-outs, and bundles."
}

HTML component design review

Read the proposal, nearby records, and relevant HTML code, tests, exports, and package metadata.

  1. Ask whether the proposal is a reusable primitive or app/skin composition before adding an element or part.
  2. Trace ownership and data flow across core, DOM behavior, and the element. Check lifecycle and cleanup.
  3. Review light-DOM anatomy, element and CSS APIs, and whether each addition has a consumer. Leave visual structure to CSS. If the surface spans independent features, separate them into another element or controller. Treat descendant selectors, :has(), and other complex selectors introduced by composition as a likely sign of a weak primitive boundary or missing data-* or CSS custom-property hooks.
  4. Exercise omission, replacement, styling, behavior, and registration opt-outs.
  5. Weigh API complexity against bundle cost and verify side-effect boundaries. Check accessibility and interaction constraints.

Use packages/html/src/ui/, definition entries, and package metadata as evidence. Report findings by severity with the smallest change.

Where local precedent is insufficient, consult Open UI for anatomy and API questions, Lit for element composition, WAI-ARIA APG for interaction patterns, and webpack for tree shaking.

Example

Input: “Review this HTML chapter-menu design.”

Output: Prioritized findings about boundaries, APIs, opt-outs, lifecycle, accessibility, and bundle cost.

版本历史

  • 8a0a3d8 当前 2026-10-20 08:03

同 Skill 集合

.agents/skills/change-spf-behavior/SKILL.md
.agents/skills/commit-pr/SKILL.md
.agents/skills/configure-vite-plus/SKILL.md
.agents/skills/create-html-component/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-react-component/SKILL.md
.agents/skills/create-skill/SKILL.md
.agents/skills/create-spf-behavior/SKILL.md
.agents/skills/design-api/SKILL.md
.agents/skills/document-spf-feature/SKILL.md
.agents/skills/document-spf-use-case/SKILL.md
.agents/skills/implement-accessible-ui/SKILL.md
.agents/skills/implement-spf-feature/SKILL.md
.agents/skills/implement-spf-use-case/SKILL.md
.agents/skills/implement-ui-transition/SKILL.md
.agents/skills/investigate-issue/SKILL.md
.agents/skills/maintain-agent-docs/SKILL.md
.agents/skills/maintain-tests/SKILL.md
.agents/skills/maintain-vjsc-skin-gaps/SKILL.md
.agents/skills/review-accessibility/SKILL.md
.agents/skills/review-api/SKILL.md
.agents/skills/review-branch/SKILL.md
.agents/skills/review-docs/SKILL.md
.agents/skills/review-html-component/SKILL.md
.agents/skills/review-react-component-design/SKILL.md
.agents/skills/review-react-component/SKILL.md
.agents/skills/write-api-reference/SKILL.md
.agents/skills/write-design-doc/SKILL.md
.agents/skills/write-docs/SKILL.md
.agents/skills/write-html-component-design/SKILL.md
.agents/skills/write-locale-translations/SKILL.md
.agents/skills/write-react-component-design/SKILL.md
.agents/skills/write-rfc/SKILL.md
.agents/skills/create-rolldown-plugin/SKILL.md
.agents/skills/create-vite-plugin/SKILL.md
.agents/skills/create-vjsc-component/SKILL.md
.agents/skills/transform-rolldown-code/SKILL.md

元信息

文件数
0
版本
8a0a3d8
Hash
b4c4a995
收录时间
2026-10-20 08:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 02:58
浙ICP备14020137号-1