<< All versions

Skill v1.0.0

currentAutomated scan100/100
alizainx/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-200k tokens 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,500 tokens) 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 exact backendNodeId / CSS handles so the agent emits click(1) or type(2, '...') in < 10 tokens.

3. Zero-Bug & Zero-Vulnerability Guards

  1. Strip invisible elements (display: none, visibility: hidden, opacity: 0, aria-hidden='true', zero-area bounding boxes width == 0 || height == 0) before serializing the page state.
  2. 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).
  3. Traverse open and closed Shadow DOM roots (element.shadowRoot) and same-origin <iframe> documents seamlessly into a unified coordinate/reference space.
  4. Compute a fast structural DOM diff (added, modified, removed interactive nodes) after each action so subsequent turns send only the delta (~200 tokens) when the URL has not changed.
  5. 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; ...'
All versions