<< All versions
Skill v1.0.0
currentAutomated scan100/100alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation
──Details
PublishedNovember 5, 2026 at 06:00 AM
Content Hashsha256:475a9f965103c581...
Git SHA4446b059cc96
──Files
Files (1 file, 2.0 KB)
SKILL.md2.0 KBactive
SKILL.md · 27 lines · 2.0 KB
name: accessibility-tree-dom-distillation id: ISS-121 token_budget: 700 chain_with: [web-agent-token-budget-compression, deterministic-css-xpath-locators, visual-grounding-som-bounding-boxes] description: "Ultra-low-token DOM-to-Accessibility-Tree (AXTree) distillation (90%+ token reduction), interactive element indexing ([id]), and viewport pruning." metadata: version: "1.0.0"
accessibility-tree-dom-distillation (ISS-121)
1. First-Principles Invariant
- AXTree Minimum-Token Distillation Law: Never feed raw HTML (
50k-200ktokens of nested<div>,<svg>, inline CSS, and tracking scripts) to an LLM or Web Agent; distill the live DOM into a pruned Accessibility + Interactive Element Tree (< 1,500tokens) retaining only visible, actionable nodes (role,name,value,[ref_id],bbox).
2. Fast-Pass Low-Token Protocol (Web & Coding Agents)
- Assign compact monotonic integer references (
[1] button 'Sign in',[2] textbox 'Email' [required]) mapped in memory to exactbackendNodeId/ CSS handles so the agent emitsclick(1)ortype(2, '...')in< 10tokens.
3. Zero-Bug & Zero-Vulnerability Guards
- Strip invisible elements (
display: none,visibility: hidden,opacity: 0,aria-hidden='true', zero-area bounding boxeswidth == 0 || height == 0) before serializing the page state. - Collapse redundant single-child wrapper
<div>/<span>chains and truncate long static table/list regions to top-$K$ rows plus a pagination summary (... 84 more rows). - Traverse open and closed Shadow DOM roots (
element.shadowRoot) and same-origin<iframe>documents seamlessly into a unified coordinate/reference space. - Compute a fast structural DOM diff (
added,modified,removedinteractive nodes) after each action so subsequent turns send only the delta (~200tokens) when the URL has not changed. - Verify that 100% of clickable/focusable targets on the page have a deterministic
[ref_id]mapping.
4. Verification Gate
python3 -c 'from html.parser import HTMLParser; ...'