Convert PDFs, URLs, or documents into Obsidian-compatible reference documentation
Converts documents into Obsidian-compatible reference documentation with structured analysis and indexing.
/plugin marketplace add cameronsjo/claude-marketplace/plugin install essentials@cameronsjo<pdf-path|url|document-description>Convert PDFs, URLs, or documents into Obsidian-compatible reference documentation for the zen security library.
$ARGUMENTS - Path to PDF file, URL, or document descriptionBased on $ARGUMENTS:
pdftotext to extract, then read in chunks (600-1000 lines)Identify document type and extract:
Write to: docs/references/<document-name>.md
Required structure:
---
title: "Document Title"
aliases:
- short-name
- alternative-name
tags:
- relevant-tag
- domain-tag
source: "URL or citation"
spec_version: "X.Y" (if applicable)
created: YYYY-MM-DD
status: active
---
# Document Title
> **One-line summary** - What this document covers.
---
## Overview
2-3 paragraphs explaining the document's purpose and relevance.
---
## [Core Sections]
Use Mermaid diagrams for:
- Architecture (graph TB/LR)
- Sequences (sequenceDiagram)
- State machines (stateDiagram-v2)
Use GFM tables for:
- Configuration options
- API endpoints
- Error codes
- Comparisons
---
## zen Platform Relevance
How does this relate to the zen platform?
- Integration points with existing components
- Applicability to Apple/Banana agents, MCP servers
- Considerations or limitations
---
## Related Documents
- [[related-doc-1]] - Brief description
- [[related-doc-2]] - Brief description
---
## References
- [Source Link](url)
- [Related Spec](url)
---
## Key Takeaways
1. Numbered list
2. Of main insights
3. From this document
Add entry to docs/references/00-INDEX.md:
Ensure document uses:
[[doc-name]])[text](url))For large PDFs that exceed read limits:
# Extract to text
pdftotext -layout "/path/to/document.pdf" "/tmp/document.txt"
# Check size
wc -l /tmp/document.txt
Then read in chunks:
Before completing:
/doc-to-reference /path/to/security-spec.pdf
/doc-to-reference https://github.com/org/repo
/doc-to-reference https://example.com/whitepaper.html
All reference docs go to:
~/projects/example/docs/references/
IN SCOPE for zen security library:
OUT OF SCOPE (suggest alternative location):
If document is out of scope, suggest moving to ~/Projects/industry-research/ instead.