A structured and highly scalable Map-Reduce workflow designed to analyze, summarize, and extract deep insights from massive documents that exceed standard LLM context windows.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install map-reduce-llm
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 map-reduce-llm using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The map-reduce-llm skill provides an engineered blueprint for running structured Map-Reduce workflows on large datasets and extensive textual content. When long documents exceed an LLM's context window, simple querying fails, and pure RAG (Retrieval-Augmented Generation) missing out on holistic, global understanding. This framework bridges that gap by offering a programmatic, auditable approach to document synthesis using Openclaw Skills.
By leveraging intelligent chunking, independent mapping, and iterative reduction, this skill ensures that large-scale textual analysis retains high context fidelity without suffering from information loss or hallucinations. It is completely model-agnostic, supporting sequential, parallel, hierarchical, or agentic architectures to handle arbitrary text lengths seamlessly.
First, analyze your target file's properties to select your chunking layout.
# Inspect basic file properties and encoding
file -i big_document.txt
# Quick chunking by line count (1000 lines per file)
split -l 1000 -d --additional-suffix=.txt big_document.txt chunk_
# Efficient streaming split via StreamReader to save memory
$inputFile = "big_document.txt"
$linesPerChunk = 1000
$reader = [System.IO.StreamReader]::new($inputFile)
$chunkIndex = 0
$lineCount = 0
$writer = $null
try {
while (-not $reader.EndOfStream) {
if ($lineCount % $linesPerChunk -eq 0) {
if ($writer) { $writer.Dispose() }
$writer = [System.IO.StreamWriter]::new("chunk_{0:D3}.txt" -f $chunkIndex)
$chunkIndex++
}
$writer.WriteLine($reader.ReadLine())
$lineCount++
}
} finally {
if ($writer) { $writer.Dispose() }
$reader.Dispose()
}
The map-reduce-llm skill establishes a strict folder anatomy to maintain auditability. All generated outputs utilize explicit tracking frameworks for complete diagnostic traceability.
| Artifact | Type | Role |
|---|---|---|
chunk_*.txt |
Source File Parts | Semantically isolated text blocks extracted from the primary document. |
map_output_*.json |
Structured Mid-layer | Extracted bullet-points, metrics, or key-value entities per chunk. |
manifest.json |
Meta Registry | An index file matching every source chunk ID to its respective Map summary. |
final_report.md |
Final Output | The synthesized executive overview featuring direct chunk citations. |
Every claim generated during the reduction phase follows an explicit lineage pattern:
[Claim/Insight] -> Cites -> [Chunk ID] -> Verifiable against -> [Source Text Segment]
Loading
A sequential corporate eBay registration framework featuring advanced queue scheduling, resource monitoring, and anti-detect browser integration.

An AI-powered e-commerce assistant that parses product links, scrapes details across multiple platforms, performs multi-dimensional comparisons, and generates interactive HTML reports.

An AI-powered emergency preparedness and systemic crisis analysis skill based on the definitive account of the 2018 Camp Fire.

An advanced strategic planning agent skill that programmatically audits, refines, and synchronizes annual business plan (BP) goals using structured JSON contracts.

An AI agent skill based on Ray Kroc's autobiography that guides entrepreneurs through business scaling, operational systems, and relentless persistence.

An AI-powered cognitive framework skill that applies computer science algorithms—like the 37% rule and Gittins Index—to solve complex real-life decisions.








































