From cerebro-documentos
Use quando quiser trabalhar com arquivos PDF — extrair texto/tabelas, juntar, dividir, preencher formulário, gerar PDF ou aplicar OCR. Ótimo para contratos e processos.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cerebro-documentos:documento-pdfThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Inspirada na skill oficial de PDF da Anthropic. Usa Python (já instalado).
Inspirada na skill oficial de PDF da Anthropic. Usa Python (já instalado).
/analisar-contrato, /resumir-processo).pip install pypdf pdfplumber reportlab
Extrair texto:
import pdfplumber
with pdfplumber.open("doc.pdf") as pdf:
texto = "\n".join((p.extract_text() or "") for p in pdf.pages)
Extrair tabelas: pagina.extract_tables() (pdfplumber).
Juntar / dividir:
from pypdf import PdfReader, PdfWriter
w = PdfWriter()
for f in ["a.pdf", "b.pdf"]:
for pg in PdfReader(f).pages:
w.add_page(pg)
with open("juntado.pdf", "wb") as out:
w.write(out)
Gerar PDF: reportlab (SimpleDocTemplate + Paragraph).
PDF escaneado (imagem) → OCR: pytesseract + pdf2image (requer o Tesseract instalado).
/analisar-contrato · /resumir-processo · /documento-word
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub kayquin/cerebro_ia --plugin cerebro-documentos