Agent Skills › github/replica › interpreting-html

interpreting-html

GitHub

将渲染后的HTML类名映射回源代码,用于解析CSS Modules、Fluent UI和Griffel生成的样式,辅助Playwright DOM检查及浏览器样式调试。

starters/coreai/.agents/skills/interpreting-html/SKILL.md github/replica

Trigger Scenarios

检查Playwright DOM输出 在浏览器中调试样式 逆向工程粘贴的HTML

Install

npx skills add github/replica --skill interpreting-html -g -y
More Options

Non-standard path

npx skills add https://github.com/github/replica/tree/main/starters/coreai/.agents/skills/interpreting-html -g -y

Use without installing

npx skills use github/replica@interpreting-html

指定 Agent (Claude Code)

npx skills add github/replica --skill interpreting-html -a claude-code -g -y

安装 repo 全部 skill

npx skills add github/replica --all -g -y

预览 repo 内 skill

npx skills add github/replica --list

SKILL.md

Frontmatter
{
    "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."
}

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.

Version History

  • f19c050 Current 2026-11-07 08:51

Same Skill Collection

.github/extensions/replica-prototype/skills/replica-pick-and-polish/SKILL.md
.github/extensions/replica-prototype/skills/replica-publish-prototype/SKILL.md
.github/extensions/replica-prototype/skills/review-hub-feedback/SKILL.md
.github/skills/code-review/SKILL.md
.github/skills/write-tests/SKILL.md
starters/coreai/.agents/skills/coreai-ds-fluentui-react/SKILL.md
starters/coreai/.agents/skills/css-styling/SKILL.md
starters/coreai/.agents/skills/icons/SKILL.md
starters/coreai/.agents/skills/lint/SKILL.md
starters/coreai/.agents/skills/new-variant/SKILL.md
starters/coreai/.agents/skills/react-components/SKILL.md
starters/coreai/.agents/skills/routing/SKILL.md
starters/coreai/.agents/skills/start-app/SKILL.md
starters/coreai/.agents/skills/state-management/SKILL.md
starters/shared/.agents/context-templates/SKILL.md
starters/shared/.agents/skills/accessibility-audit/SKILL.md
starters/shared/.agents/skills/add-seed-data/SKILL.md
starters/shared/.agents/skills/agent-browser/SKILL.md
starters/shared/.agents/skills/browser-canvas-validation/SKILL.md
starters/shared/.agents/skills/component-design-system-review/SKILL.md
starters/shared/.agents/skills/create-prototype/SKILL.md
starters/shared/.agents/skills/developer-handoff/SKILL.md
starters/shared/.agents/skills/prepare-feedback-proposals/SKILL.md
starters/shared/.agents/skills/product-design/SKILL.md
starters/shared/.agents/skills/prototype-controls/SKILL.md
starters/shared/.agents/skills/responsive-audit/SKILL.md
starters/shared/.agents/skills/review-hub-feedback/SKILL.md
starters/shared/.agents/skills/setup-skills/SKILL.md
starters/shared/.agents/skills/visual-design-review/SKILL.md
starters/coreai/.agents/skills/features-variants/SKILL.md

Metadata

Files
0
Version
f19c050
Hash
aca9c60c
Indexed
2026-11-07 08:51

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 09:46
浙ICP备14020137号-1