← Back to list

capturepdf
by Alejfanjul
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: CapturePdf description: Capture PDF books to ai-brain sources. USE WHEN user wants to capture pdf, import pdf, add pdf book, process pdf for embeddings OR /capture-pdf OR /pdf.
CapturePdf
Captures PDF books and converts them to markdown for the ai-brain knowledge base.
How It Works
- Extracts text from all PDF pages
- Cleans content (removes tracking, formatting artifacts)
- Saves as markdown in
sources/ - Auto-commits to git
- Ready for embedding via
embed_sources.py
Usage
Basic (interactive - will prompt for author/title if not in PDF metadata):
python3 ~/ai-brain/scripts/capture_pdf.py /path/to/book.pdf
With metadata (recommended for cleaner filenames):
python3 ~/ai-brain/scripts/capture_pdf.py /path/to/book.pdf --author "Author Name" --title "Book Title"
Without auto-commit:
python3 ~/ai-brain/scripts/capture_pdf.py /path/to/book.pdf --no-commit
After Capture
Generate embeddings for the new content:
python3 ~/ai-brain/scripts/embed_sources.py
Examples
Example 1: Capture a fitness book
User: "/capture-pdf"
User provides: /home/user/downloads/531-forever.pdf
→ Runs capture script with --author "Jim Wendler" --title "5/3/1 Forever"
→ Creates sources/2026-01-18-jim-wendler-531-forever.md
→ Commits to git
→ User runs embed_sources.py to index
Example 2: Capture with prompts
User: "capture this pdf ~/books/some-book.pdf"
→ Runs capture script
→ Script prompts for author/title if not detected
→ Creates markdown in sources/
→ Ready for embeddings
Example 3: Batch capture
User: "I have 3 Wendler PDFs to capture"
→ Run capture script for each PDF
→ Then run embed_sources.py once at the end
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon