OpenClaw Skill Reduces Accessibility Tree Tokens from 600K to 1.3K

A developer has created an OpenClaw skill that addresses token bloat in accessibility trees when scraping modern web pages. The skill uses machine learning to rank and prune elements before sending data to the LLM.
Token Variance Problem
The developer observed massive token variance depending on the page content when running OpenClaw:
- slickdeals.com: 24,567 elements → ~598K tokens
- ycombinator.com: 681 elements → ~16K tokens
- httpbin.org: 34 elements → ~1.5K tokens
Ad-heavy sites were particularly problematic, with slickdeals generating 600K tokens primarily from tracking pixels and ad iframes.
Solution: ML-Based Element Ranking
The skill implements ML-based element ranking that keeps only the top ~50 actionable elements (configurable). This approach reduces slickdeals.com from approximately 598,000 tokens to about 1,300 tokens.
Skill Details
The skill is available as:
- OpenClaw Skill: https://clawhub.ai/rcholic/predicate-snapshot
- GitHub Repository: https://github.com/PredicateSystems/openclaw-predicate-skill
This approach specifically targets pruning the accessibility (A11y) tree before sending it to the LLM, which is a common bottleneck when working with complex modern websites.
📖 Read the full source: r/clawdbot
👀 See Also

ACO System: Open-Source Multi-Agent Pipeline from GitHub Issue to Merged PR
ACO System is an open-source multi-agent framework that autonomously runs a full software pipeline—from GitHub Issue to merged PR—using six specialized AI agents. Features a deterministic Architect gate that blocks hallucinations.

claude-sessions: Terminal UI for Browsing Claude Code Transcripts
claude-sessions is an open-source terminal UI tool that scans local Claude Code transcript files, allowing developers to browse, search, and resume past sessions. Built with Claude Code itself, it features WASD navigation, keyword search, and one-click session resumption.

Browser39: A Headless Web Browser for AI Agents
Browser39 is a headless web browser designed specifically for AI agents that converts web pages to token-optimized Markdown locally, runs JavaScript, manages cookies and sessions, queries the DOM, and fills forms. It's a single binary with no external browser needed, no fees, and no external service.

OpenClaw Smart Router Open-Sourced for Automatic Model Selection
A developer has open-sourced a Smart Router for OpenClaw that automatically classifies queries by complexity and routes them to optimal models, saving 60-80% on API costs compared to always using premium models like Claude or GPT-4o.