corpus-investigation

Investigate large corpora to produce metadata schemas and RAG-ready ingestion plans.

4|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/percy-raskova/marxists.org-rag-db --skill corpus-investigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: corpus-investigation
Source: https://github.com/percy-raskova/marxists.org-rag-db/tree/main/.claude/skills/corpus-investigation
Command: npx skills add https://github.com/percy-raskova/marxists.org-rag-db --skill corpus-investigation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables systematic, reproducible investigation of very large document corpora (100GB+) using a token-efficient methodology. It outputs structured section analyses, metadata schemas, and RAG guidance to help design scalable knowledge bases without exhaustive reading.

Core Features & Use Cases

  • 5-phase investigation framework (Reconnaissance, Stratified Sampling, Pattern Verification, Edge Case Analysis, Synthesis) to produce a complete Section Analysis Document.
  • Stratified sampling across size, time, type, and depth to minimize token usage while preserving representative patterns.
  • Computational pattern verification using grep, find, and other shell tools to quantify coverage across thousands of files without exhaustive reading.
  • Output-ready Section Analysis Document with 5-layer metadata schema and RAG integration recommendations for teams building large-scale knowledge bases.

Quick Start

To begin, say: "Investigate the corpus at /path/to/corpus/". Claude will activate this skill and return a comprehensive Section Analysis Document with reproducible commands and patterns.

Frequently Asked Questions about corpus-investigation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I investigate large document corpora for RAG pipeline design?

Corpus investigation uses stratified sampling and shell-based pattern verification across 100GB+ archives to extract metadata schemas and chunking strategies. This token-efficient approach produces a Section Analysis Document with RAG-ready ingestion plans without exhaustive reading of every document.

What's the best way to analyze mixed HTML and PDF datasets at scale?

A 5-phase investigation framework—Reconnaissance, Stratified Sampling, Pattern Verification, Edge Case Analysis, and Synthesis—systematically analyzes mixed formats across thousands of files. Grep and shell tools quantify coverage and patterns while minimizing token usage, outputting structured metadata and RAG guidance.

Can I use shell tools to verify patterns across large document sets?

Yes. Computational pattern verification using grep, find, and similar shell tools quantifies structural coverage and patterns across thousands of files without token-intensive reading, making it practical for corpora exceeding 100GB.

How do I create a metadata schema for knowledge base ingestion?

The Section Analysis Document includes a 5-layer metadata schema derived from representative sampling patterns. This schema defines section structure, content types, and chunking boundaries, serving as a blueprint for RAG pipeline configuration and knowledge base design.

What sampling strategy minimizes token usage while preserving corpus patterns?

Stratified sampling across size, time, type, and depth dimensions selectively represents the corpus landscape with minimal tokens. This approach preserves structural and content patterns while dramatically reducing analysis scope on massive document collections.

Do I need to read every document to understand corpus structure?

No. Token-efficient investigation uses representative sampling and computational pattern verification to infer structure across thousands of files. The Section Analysis Document captures layout, metadata, and chunking guidance without exhaustive document review.