A framework for creating documentation specifically optimized for LLM consumption, RAG retrieval, and token efficiency.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-docs
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-docs using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Agent Docs provides a structured methodology for writing documentation that AI agents can consume with maximum efficiency and accuracy. By implementing the Hybrid Context Hierarchy, this approach ensures that agents have the right context at the right time—minimizing token waste while achieving significantly higher pass rates on complex tasks compared to standard documentation. It moves beyond human-centric writing to focus on machine-readability, primacy bias mitigation, and high signal-to-noise ratios.
This framework is essential for developers building with Openclaw Skills who need their agents to navigate large codebases without getting lost in the middle of long context windows. By following these standards, you can transform a project's documentation into a high-performance asset for any AI-driven development workflow.
To start using this framework with your Openclaw Skills, initialize the core documentation files in your project root:
# Create the primary context file for AI agents
touch AGENTS.md
# Initialize the machine-readable index for external tools
touch llms.txt
# Create a directory for secondary reference material
mkdir -p docs/reference
The framework organizes documentation into three distinct tiers to manage the tradeoff between context depth and token cost:
| Tier | Filename | Content Type | Token Budget |
|---|---|---|---|
| Layer 1 | AGENTS.md |
Security rules, build commands, and doc index | 2,000 – 4,000 |
| Layer 2 | docs/**/*.md |
Implementation details and API reference | 1,000 – 5,000 per chunk |
| Layer 3 | External | Edge cases and third-party documentation | On-demand retrieval |
| Index | llms.txt |
Compressed map of all available resources | < 8 KB |
Loading
A decentralized protocol for AI agents to discover, negotiate, and execute backlink trades or purchases without intermediaries.

A comprehensive Notion API integration providing full CRUD capabilities for pages, databases, and content blocks.

A specialized tool for searching, listing, and exporting media from the macOS Photos.app library using script-driven SQLite queries.

A powerful integration for macOS that allows AI agents to control playback, manage library content, and handle AirPlay routing through AppleScript and the MusicKit API.

A specialized web search skill designed for AI agents to discover URLs, conduct technical research, and generate cited summaries from structured web results.

A browser-based automation tool for extracting and summarizing public X (Twitter) content into clean markdown without requiring an account.








































