AGENT SKILL

HTML 类名源码映射

interpreting-html

将渲染或粘贴的 HTML 类名映射回源代码(CSS Modules、Fluent UI、Griffel)。使用时机:检查 Playwright DOM 输出、在浏览器中调试样式,或对粘贴的 HTML 进行反向工程。

License 许可
MIT
所属仓库
github/replica
最近更新
2026-11-15
Stars
★ 273
Forks
35

01 前言 Front Matter

name
interpreting-html
description
Map rendered/pasted HTML class names back to source code (CSS Modules, Fluent UI, Griffel). USE WHEN: inspecting Playwright DOM output, debugging styles in the browser, or reverse-engineering pasted HTML.

03 SKILL.md 正文

How to Interpret Pasted HTML Code

When the site is rendered to HTML, you can identify several aspects of the app code via HTML properties:

  • Class names with the pattern _camelCase_123ab_45 correspond to class names applied from CSS Modules.
    • For example, class="_headerWrapper_16arl_15" in HTML comes from className={styles.headerWrapper} in React.
  • Class names prefixed with fui- are derived from Fluent UI components.
    • These are Fluent component root elements. For example, fui-Button is a <Button/>.
    • These are Fluent component sub-elements if they contain the __ delimiter (BEM style). For example, fui-Button__icon comes from <Button icon={<SomeIcon20Regular/>}/>.
  • Class names that follow the pattern f123abc are Griffel-generated atomic classes. Reset classes use an r… hash, and sequence classes start with ___. These are auto-generated and are not authored source identifiers. For example: class="f11589ue f1q5o8ev f1pdflbu fkfq4zb". Do not search these hashes to locate authored styles.
  • data-* attributes may be authored in React, generated by a framework, or derived from dynamic state. Verify their origin before using them to locate source; do not assume their values are static.
  • aria-label attributes and text content often appear as literal strings in this prototype, so searching them can help locate the corresponding JSX. For example, Create agent appears directly in the agents route. Values may also come from props, data, or localization, so a rendered string does not always have an exact literal match in source.

Interpreting React Grab Context

The prototype's customized React Grab context is not raw DOM output. It decodes CSS Module class names to their local names and omits Fluent/Griffel classes. A cleaned class such as brandLink can therefore correspond to a hashed CSS Module class in the browser.

The in Component (path:line:column) entries describe component usage or rendering ancestry, not necessarily component definitions. Components that render passed-in children may appear in the ancestry even when another component created that JSX. Use the reported location to inspect the relevant call site or component body before deciding which source to edit.

04 同仓库更多 Skills

github
github/replica

create-prototype-from-production

Use when asked to copy, clone, replicate or recreate a live production website or web app as a Replica prototype from its URL, such as "create a prototype from https://example.com" or "replicate this site for a demo". Do not use for building a new design from a brief, or for changing an existing prototype.

★ 273
github
github/replica

页面视觉设计评审

visual-design-review

依据使用方自有的产品与设计系统指南,审查页面层级、分组、密度、操作及状态设计。当用户要求视觉设计评审、页面点评,或询问新页面是否清晰传达其任务时使用。

界面设计师视觉设计
★ 273
github
github/replica

技能共享源配置与上下文起草

setup-skills

配置共享源,并使用独立的 writer 起草上下文。普通/全新设置会提供用户指定包的安装,并复用内置浏览器能力,仅在确有证据表明必要检查存在缺口时才添加浏览器工具。适用于设置、源修复、编写上下文或刷新草稿。仅配置模式会跳过工具安装和编写;安装和激活需要单独批准。

AI 工程师插件与技能管理
★ 273
github
github/replica

Hub 反馈设计主题提炼

review-hub-feedback

通过发现、独立判断和综合归纳,审查 Hub 反馈以提炼可复用的设计主题。不进行诊断或优化。

界面设计师用户反馈处理
★ 273
github
github/replica

UI 响应式布局审计

responsive-audit

使用使用者上下文和浏览器工具,跨产品定义的视口审查 UI 布局、溢出和导航。当用户要求检查响应式、测试移动端布局或审查断点行为时使用。

软件开发工程师前端开发与界面实现
★ 273
github
github/replica

Replica 原型控件创建与绑定

prototype-controls

创建并连接 Replica 原型控件。当用户要求添加或修改下拉框、滑块、输入框、切换开关或操作按钮(用于配置变体、场景、可见 UI、应用状态或数据源)时使用,即使未使用画布术语也一样。涵盖声明、类型化绑定、默认值、条件、重置和动作。仅涉及产品 UI 表单字段和筛选器时,应使用 create-prototype。

界面设计师低代码应用开发
★ 273