safe-dom-traversal
OfficialSafely navigate DOM trees.
Authorkreuzberg-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a robust mechanism for navigating Document Object Model (DOM) trees without encountering errors like panics or crashes, ensuring stable and predictable tree traversal.
Core Features & Use Cases
- Safe DOM Navigation: Implements parent-child-sibling navigation and depth-first traversal with safety checks.
- Depth Limit Enforcement: Prevents infinite loops or excessive resource consumption by enforcing a maximum traversal depth.
- Use Case: When processing complex or potentially malformed HTML structures, this skill ensures that the parsing and navigation logic remains resilient and does not fail.
Quick Start
Safely traverse the DOM tree starting from the document root, processing elements and enforcing a depth limit.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: safe-dom-traversal Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#safe-dom-traversal Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.