Communitygithub.com

baronguyen001/ai-automation-skills

OCR 바이너리 없이 AI 다운스트림을 위해 PDF에서 텍스트와 간단한 표 형태의 행을 추출합니다. 사용자가 PDF 읽기, PDF를 텍스트로 변환, 명세서/보고서에서 간단한 표 추출, 또는 LLM 파이프라인에 PDF 콘텐츠 공급을 요청할 때 사용하세요.

ai-automation-skills란 무엇인가요?

이 스킬은 요약, 분류, 또는 구조화된 추출 전에 디지털 PDF에서 기계가 읽을 수 있는 텍스트를 추출해야 하는 워크플로에 사용됩니다. 순수 Python PDF 라이브러리(pypdf 또는 pdfminer.six)를 활용하므로 OCR 바이너리가 필요하지 않으며, 스캔된 문서에는 적합하지 않습니다. 주요 기능으로 페이지 경계 보존, 간단한 줄 기반 테이블 감지, 긴 PDF의 경우 페이지/범위별로 LLM에 보낼 텍스트를 제한하는 기능이 포함됩니다. `extract.py` 헬퍼를 통해 명확한 오류 메시지를 제공하며, 추출 가능한 텍스트가 없는 PDF에 대해 빈 프롬프트를 보내지 않도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/baronguyen001/ai-automation-skills/tree/HEAD/skills/pdf-text-extract

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

PDF 텍스트 추출

이 스킬은 요약, 분류 또는 구조화된 추출 전에 워크플로가 디지털 PDF에서 기계가 읽을 수 있는 텍스트가 필요할 때 사용하세요. 헬퍼는 사용 가능한 경우 순수 Python PDF 라이브러리를 사용하며, 다운스트림 정리를 위한 간단한 줄 기반 테이블 감지기를 포함합니다.

호출 시점

  • 사용자가 "이 PDF에서 텍스트 추출", "PDF를 AI에 공급", "이 보고서에서 표 추출", "이 명세서 읽기"라고 말할 때.
  • PDF에 이미 선택 가능한 텍스트가 포함되어 있고 OCR이 필요하지 않을 때.

호출하지 말아야 할 때

  • PDF가 스캔된 이미지인 경우. 대신 OCR 워크플로를 사용하세요.
  • 사용자가 병합된 셀과 레이아웃 충실도를 갖춘 픽셀 완벽한 표 재구성이 필요할 때.

구체적인 예시

사용자 입력:

Gemini가 요약할 수 있도록 이 PDF에서 텍스트와 대략적인 표를 추출해줘.

출력:

# assets/extract.py를 프로젝트에 복사한 다음:
from extract import extract_pdf

doc = extract_pdf("downloads/report.pdf")
print(doc["text"][:2000])
for table in doc["tables"]:
    print(table["page"], table["rows"][:3])

대상 프로젝트에 pypdf 또는 pdfminer.six를 설치하세요. OCR 바이너리가 필요하지 않으며, PDF에 추출 가능한 텍스트가 없을 때 헬퍼가 명확하게 실패합니다.

적용 패턴

  1. 먼저 디지털 텍스트 추출을 선호하세요. 소스가 스캔된 경우에만 OCR을 추가하지 마세요.
  2. 다운스트림 프롬프트가 페이지 번호를 인용할 수 있도록 페이지 경계를 보존하세요.
  3. 테이블 추출을 간단하게 유지하세요. 탭이나 반복된 공백으로 행을 분할한 후, 이후 스키마 패스가 열을 정규화하도록 하세요.
  4. PDF가 긴 경우 페이지/범위별로 LLM에 보낼 텍스트를 제한하세요.
  5. 텍스트가 없으면 빈 프롬프트를 다운스트림에 보내는 대신 명확하게 실패하세요.

참조: assets/extract.py.

출처

저자의 자동화 프로젝트 전반에 걸친 프로덕션 사용에서 얻은 경험을 바탕으로 합니다. v1.0.0. 함께 보기: [[gemini-structured-output]], [[csv-report-writer]], [[s3-uploader]].

→ Trawlkit으로 완전한 실행 가능한 봇을 구축하세요.

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

baronguyen001/ai-automation-skills

Schedule any script to run on a recurring schedule on Windows (Task Scheduler) or Linux (cron) - register, list, and remove jobs from one command, with logging to a file and a guard against overlapping runs. Use for schedule a script, run nightly, set up a cron job, windows task scheduler, or run on a timer.

baronguyen001/ai-automation-skills

Turn a run's list of result dicts into a schema'd CSV and a Markdown table from one column spec - declare columns once, emit both, with stable ordering and safe escaping, stdlib only, no pandas. Use when the user asks to write results to CSV, export a report, make a markdown summary table, or save a run's output as a spreadsheet.

baronguyen001/ai-automation-skills

Strip HTML to clean plain text with the standard library only (no BeautifulSoup/lxml): drops script/style, turns block tags into line breaks, and collapses whitespace. Use when the user wants readable text from an HTML page/email, to clean scraped HTML before sending it to an LLM, or to build a text index from web content.

baronguyen001/ai-automation-skills

Persist records between scheduled runs as append-only JSON Lines (one object per line) with streaming reads and optional key-based dedup, stdlib only. Use when the user wants to log run results to JSONL, append events to a file, dedup records by id across runs, or keep a simple durable history without a database.

baronguyen001/ai-automation-skills

Rotate a pool of HTTP/SOCKS proxies with round-robin selection, failure tracking, and a cooldown that benches dead proxies before retrying. BYO proxy list via env - none are shipped. Use for rotate proxies, spread requests across proxies, avoid IP bans, retry through a different proxy, or proxy health check.

baronguyen001/ai-automation-skills

Parse an RSS 2.0 or Atom feed into normalized item dicts (title, link, id, published, summary) with the standard library only - no feedparser. Use when the user asks to read an RSS/Atom feed, poll a blog/news feed, extract feed entries, or watch a site that publishes a feed.

baronguyen001/ai-automation-skills

Upload and download run artifacts from S3-compatible storage with BYO bucket and credentials from env. Use when the user asks to store scraper output, archive reports, publish artifacts to object storage, fetch a prior run file, or use MinIO/R2/Spaces/S3 without hardcoding credentials.

baronguyen001/ai-automation-skills

Draft a short-form TikTok/Reels/Shorts or long-form video script from a topic and creator persona file - hook variants, beat-structured body, CTA, b-roll cues, caption overlays, and [STORY]/[NUMBER] slots so the model never fabricates personal facts. Use for write a video script, tiktok script, youtube script, or /shortform-script.

baronguyen001/ai-automation-skills

Give scheduled scripts memory between runs with one SQLite file - a seen-set for dedup, a key/value cursor to resume where you left off, and order-preserving new-item filtering. Use for dedup across runs, don't re-alert the same item, remember the last id, resume a scraper, or persist state between cron runs.

관련 스킬