baixar-converter

baixar-converter is a command for Claude Code from georgemarmelstein/superjurista-dev. It costs 11 tokens per session (576 once invoked), scanned A, original, MIT.

Pipeline que lista processos do PJe, baixa seus PDFs e os converte em arquivos de texto. PJe é a plataforma eletrônica usada para tramitar processos judiciais no Brasil.

In plain words
What is it for?
Serve para baixar uma quantidade definida de processos em um modo escolhido, salvar os PDFs e gerar arquivos TXT para leitura e análise.
Why use it?
Automatiza a sequência de captura da sessão, busca, download e conversão, com verificações para detectar sessões expiradas ou arquivos ausentes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python .claude/skills/pje-download/scripts/listar_processos.py --cookies pje_session.json --modo $2 --limite $1 --output processos.json.

Part of the superjurista-dev plugin — 11 skills, 22 commands, 7 agents shipped together

Good fit Serve para baixar uma quantidade definida de processos em um modo escolhido, salvar os PDFs e gerar arquivos TXT para leitura e análise.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/georgemarmelstein/superjurista-dev
agentmods
npx agentmods add commands/georgemarmelstein/superjurista-dev/baixar-converter

Made for: Claude Code.

Or install superjurista-dev, the plugin that ships this one along with the rest of its 11 skills, 22 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for baixar-converter

README.md
[![agentmods](https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/baixar-converter/github.svg)](https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/baixar-converter)
Your own site
<a href="https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/baixar-converter"><img src="https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/baixar-converter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for baixar-converter

Your own site · 80×15
<a href="https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/baixar-converter"><img src="https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/baixar-converter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00576
Opus 5 $0.00005 $0.00288
Sonnet 5 $0.00002 $0.00115
Haiku 4.5 $0.00001 $0.00058

Measured 9d ago against content hash 1a69fcf98cab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

baixar-converter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

scaffold/commands/baixar-converter.md · 96 lines

What it actually says

/baixar-converter

Baixa processos do PJE E converte para TXT.

Argumentos

$1 = quantidade (padrao: 1)
$2 = modo (padrao: sentenca)

EXECUCAO OBRIGATORIA

Etapa 1: Capturar sessao (CONTEXTO ISOLADO)

Usar skill capturar-sessao-pje que roda em contexto isolado:

Invocar skill: capturar-sessao-pje

A skill tenta Chrome MCP primeiro, e se falhar, pede HAR ao usuario.

Checkpoint: Arquivo pje_session.json existe?

Se a skill retornar falha, PARAR e informar usuario


Etapa 2: Listar processos

Executar EXATAMENTE:

python .claude/skills/pje-download/scripts/listar_processos.py --cookies pje_session.json --modo $2 --limite $1 --output processos.json

Checkpoint: Arquivo processos.json existe e contem processos?

Se erro "Expecting value" → Sessao expirou, voltar a Etapa 1.


Etapa 3: Baixar PDFs

Executar EXATAMENTE:

python .claude/skills/pje-download/scripts/baixar_pdfs.py --cookies pje_session.json --processos processos.json --output data/$2 --delay 2

Checkpoint: PDFs baixados em data/$2/?


Etapa 4: Converter para TXT

Para CADA processo baixado, executar EXATAMENTE:

python .claude/skills/converter-pdf/scripts/pdf_para_txt.py --input data/$2/[NUMERO]/[NUMERO].pdf --output data/$2/[NUMERO]/

Substituir [NUMERO] pelo numero real do processo.

Checkpoint: Arquivos .txt gerados?


Etapa 5: Relatorio

Informar:

  • Quantidade de processos baixados
  • Quantidade de PDFs convertidos
  • Caminhos dos arquivos
  • Estatisticas de conversao (paginas, caracteres)

Saida Esperada

data/[modo]/
├── processos.json
├── _download_log.json
└── [numero-processo]/
    ├── [numero].pdf
    ├── [numero].txt
    └── conversao_log.json
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 96 lines · 0 tokens per session scan A 1a69fcf98cab

Subscribe to this mod's changes

baixar-converter is a command published in the GitHub repository georgemarmelstein/superjurista-dev (22 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 576 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.