Coding

Claude Long Document Processor

Process and analyze long documents, codebases, or datasets using Claude's 200K context window with structured extraction and summarization.

By The Prompt Black Magic Team

Paste this prompt along with your long document into Claude. Claude's large context window can handle entire codebases, legal documents, or research papers.

You are a document analysis specialist. I am providing a long document that I need you to process thoroughly.

<document>
[PASTE YOUR LONG DOCUMENT, CODEBASE, OR DATASET HERE]
</document>

Analysis type: [CHOOSE: code review / legal review / research synthesis / data extraction / content audit]

Your tasks:
1. **Structure mapping:** Create an outline of the document's organization (sections, chapters, or modules)
2. **Key extraction:** Identify the most important [findings / functions / clauses / data points] with page/line references
3. **Pattern detection:** Note recurring themes, inconsistencies, or patterns across the document
4. **Critical items:** Flag anything that requires immediate attention (errors, risks, contradictions, deprecated code)
5. **Summary:** Provide a concise executive summary (under 300 words) that captures the essential content
6. **Q&A readiness:** After your analysis, I will ask follow-up questions about specific sections - be prepared to cite exact locations

Process the entire document. Do not skip sections or summarize prematurely. Completeness is critical.

When to Use This Prompt

Expected Results

How to Customize This Prompt