efficientcontext/contextpilot/openclaw

Claude Code and agent skill by efficientcontext/contextpilot

Trust tier 3
  • community
Source check pending

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

Optimize document ordering in LLM context for better retrieval performance

Install

npx vskill@latest install efficientcontext/contextpilot/openclaw

SKILL.md

ContextPilot Integration

You have ContextPilot enabled as a transparent proxy. All your LLM API requests are automatically routed through ContextPilot, which reorders documents in your context window for optimal retrieval performance.

What ContextPilot Does

When your request contains multiple documents (in system prompts or tool results), ContextPilot:

  1. Extracts documents from XML tags (<documents>, <files>, etc.), numbered lists, separators, or markdown headers
  2. Clusters documents by semantic similarity using hierarchical clustering
  3. Reorders documents to minimize attention distance between related content
  4. Reconstructs the request preserving the original format

Supported Document Formats

  • XML tags: <documents><document>...</document></documents>, <files><file>...</file></files>
  • Numbered: [1] doc [2] doc [3] doc
  • Separator: docs separated by --- or ===
  • Markdown headers: sections split by # or ## headers

How to Verify

Check the X-ContextPilot-Result response header:

X-ContextPilot-Result: {"intercepted":true,"documents_reordered":true,"total_documents":5,"sources":{"system":1,"tool_results":1}}

Configuration Headers

Send these headers with your API requests to control behavior:

HeaderValuesDefault
X-ContextPilot-Enabledtrue/falsetrue
X-ContextPilot-Modeauto/xml_tag/numbered/separator/markdown_headerauto
X-ContextPilot-Scopeall/system/tool_resultsall
X-ContextPilot-Alphafloat0.001

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

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

Source

Popularity

Repository stars
111
Repository forks
6
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 May 2026, 5 months ago.

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/efficientcontext/contextpilot/openclaw/badge)](https://verified-skill.com/skills/efficientcontext/contextpilot/openclaw)

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