alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation

Claude Code and agent skill by alizainx/intelligence-systems-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Ultra-low-token DOM-to-Accessibility-Tree (AXTree) distillation (`90%+` token reduction), interactive element indexing (`[id]`), and viewport pruning.

Install

npx vskill@latest install alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation

SKILL.md

The same SKILL.md was published earlier as alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation.

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; ...'

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation/badge)](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation)

Something wrong with this skill or its page? Tell us.