interpreting-html
Skill117 starsChanged 10 days agoMITView on GitHub
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.
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When the site is rendered to HTML, you can identify several aspects of the app code via HTML properties:
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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_45correspond to class names applied from CSS Modules.- For example,
class="_headerWrapper_16arl_15"in HTML comes fromclassName={styles.headerWrapper}in React.
- For example,
- Class names prefixed with
fui-are derived from Fluent UI components.- These are Fluent component root elements. For example,
fui-Buttonis a<Button/>. - These are Fluent component sub-elements if they contain the
__delimiter (BEM style). For example,fui-Button__iconcomes from<Button icon={<SomeIcon20Regular/>}/>.
- These are Fluent component root elements. For example,
- Class names that follow the pattern
f123abcare Griffel-generated atomic classes. Reset classes use anr…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-labelattributes and text content often appear as literal strings in this prototype, so searching them can help locate the corresponding JSX. For example,Create agentappears 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.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- starters/coreai/AGENTS.mdAGENTS.md
- starters/minimal/AGENTS.mdAGENTS.md
- replica-pick-and-polishSkill
- replica-publish-prototypeSkill
- review-hub-feedbackSkill
- code-reviewSkill
- write-testsSkill
- coreai-ds-fluentui-reactSkill
- css-stylingSkill
- features-variantsSkill
- iconsSkill
- lintSkill
- new-variantSkill
- react-componentsSkill
- routingSkill
- start-appSkill
- state-managementSkill
- context-templatesSkill
- accessibility-auditSkill
- add-seed-dataSkill
- agent-browserSkill
- browser-canvas-validationSkill
- component-design-system-reviewSkill
- create-prototypeSkill
- developer-handoffSkill
- prepare-feedback-proposalsSkill
- product-designSkill
- prototype-controlsSkill
- responsive-auditSkill
- review-hub-feedbackSkill
- setup-skillsSkill
- visual-design-reviewSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

