alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation
Claude Code and agent skill by alizainx/intelligence-systems-skills
Trust tier 2
- community
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-distillationSKILL.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-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; ...'
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
- SKILL.md in the repositoryCheckingskills/accessibility-tree-dom-distillation/SKILL.md
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
[](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/accessibility-tree-dom-distillation)