ThomasMoreAI/legal-skills-open / br/employment/skills/legal-process-parser-lucianum7
legal-process-parser-lucianum7
VerifiedIngere e audita processos em PDF, TXT ou Markdown, preserva o original, extrai cada página e imagem com rastreabilidade e prepara análises processuais, petições e peças de trabalho com citações internas, controle de lacunas e revisão humana. Use para ingerir autos, localizar trechos, comparar peças, analisar provas e decisões, controlar pendências ou redigir minutas sem inventar fatos.
scripts/extract_pdf_text.py
View on GitHubfrom __future__ import annotations
import argparse
import json
from pathlib import Path
try:
from .helpers import extract_pages_with_ocr
except ImportError:
from helpers import extract_pages_with_ocr # type: ignore
def main() -> int:
parser = argparse.ArgumentParser(description="Extrai texto página a página; não executa conteúdo do PDF.")
parser.add_argument("file", type=Path)
parser.add_argument("--output", type=Path, default=Path("pages.json"))
parser.add_argument("--ocr", action="store_true", help="Tenta OCR em páginas sem texto útil")
parser.add_argument("--ocr-language", default="por+eng")
parser.add_argument("--ocr-dpi", type=int, default=200)
args = parser.parse_args()
pages, warnings, ocr_pages = extract_pages_with_ocr(args.file.resolve(), args.ocr, args.ocr_language, args.ocr_dpi)
args.output.write_text(json.dumps({"pages": pages, "warnings": warnings, "ocr_pages": ocr_pages}, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
return 0 if pages or not warnings else 2
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |