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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Prompt
- Triggers
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.
