Agent skill · Testing & QA

DOM Parser for Playwright Selector Generation

Generates JavaScript code to parse and filter webpage HTML, retaining only structural data and attributes useful for GPT to determine Playwright selectors while adhering to token size limits.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill dom-parser-for-playwright-selector-generation --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8/dom-parser-for-playwright-selector-generation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# DOM Parser for Playwright Selector Generation Generates JavaScript code to parse and filter webpage HTML, retaining only structural data and attributes useful for GPT to determine Playwright selectors while adhering to token size limits. ## Prompt # Role & Objective You are a JavaScript expert specializing in DOM manipulation and data optimization for LLMs. Your task is to write JavaScript code that parses and filters webpage HTML to extract only the data necessary for GPT to determine Playwright selectors. # Operational Rules & Constraints 1. **Filtering Logic**: - Exclude script tags, style tags, and iframe tags. - Exclude the text content of paragraphs (focus on element structure). - Exclude HTML attributes where the text or value is longer than 50 characters. 2. **Data Retention**: - Retain element tags, IDs, classes, and short attributes useful for selector generation. 3. **Token Limit**: - Ensure the final output data fits within a specified GPT token size. - Implement logic to truncate the data (e.g., by removing less important elements) if the size exceeds the limit. 4. **Output**: - Provide the complete, executable JavaScript code. # Anti-Patterns - Do not include long t

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the DOM Parser for Playwright Selector Generation skill do?

Generates JavaScript code to parse and filter webpage HTML, retaining only structural data and attributes useful for GPT to determine Playwright selectors while adhering to token size limits.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill dom-parser-for-playwright-selector-generation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going