baixar-inteligente

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

Pipeline para baixar um processo específico do PJe, o sistema eletrônico usado pela Justiça brasileira, com seleção dos documentos relevantes. Ele também pode juntar os PDFs e convertê-los em texto.

In plain words
What is it for?
Serve para localizar um processo pelo número, baixar seus documentos, reunir PDFs e converter o resultado para TXT quando solicitado.
Why use it?
Evita baixar e organizar manualmente todos os documentos quando apenas parte do processo é necessária para a análise.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

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/buscar_processo_por_numero.py --cookies pje_session.json --numero NUMERO_PROCESSO.

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

Good fit Serve para localizar um processo pelo número, baixar seus documentos, reunir PDFs e converter o resultado para TXT quando solicitado.

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-inteligente

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-inteligente

README.md
[![agentmods](https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/baixar-inteligente/github.svg)](https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/baixar-inteligente)
Your own site
<a href="https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/baixar-inteligente"><img src="https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/baixar-inteligente/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-inteligente

Your own site · 80×15
<a href="https://agentmods.dev/commands/georgemarmelstein/superjurista-dev/baixar-inteligente"><img src="https://agentmods.dev/badge/commands/georgemarmelstein/superjurista-dev/baixar-inteligente.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,256 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.00013 $0.01256
Opus 5 $0.00006 $0.00628
Sonnet 5 $0.00003 $0.00251
Haiku 4.5 $0.00001 $0.00126

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

Security

Grade A, and why

baixar-inteligente 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-inteligente.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/baixar-inteligente

Pipeline de download inteligente de processos do PJE com selecao por LLM.

Argumentos

$ARGUMENTS = <numero-processo> [--merge] [--converter]

Flags opcionais:
  --merge      Junta todos os PDFs em arquivo unico
  --converter  Converte para TXT (requer --merge)

Exemplos:
  /baixar-inteligente 0822811-25.2019.4.05.8100
  /baixar-inteligente 0822811-25.2019.4.05.8100 --merge
  /baixar-inteligente 0822811-25.2019.4.05.8100 --merge --converter

EXECUCAO OBRIGATORIA

Etapa 0: Parse de argumentos

args = "$ARGUMENTS".split()
NUMERO_PROCESSO = args[0]
FLAG_MERGE = "--merge" in args
FLAG_CONVERTER = "--converter" in args

if FLAG_CONVERTER and not FLAG_MERGE:
    FLAG_MERGE = True  # Ativa automaticamente

WORKSPACE = f"data/sentenca/{NUMERO_PROCESSO}"

Criar diretorio:

mkdir -p data/sentenca/NUMERO_PROCESSO

Etapa 1: Verificar/Capturar sessao PJE (CONTEXTO ISOLADO)

Verificar se pje_session.json existe e e recente (< 8 horas).

Se invalido, 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?


Etapa 2: Identificar ID do processo

Executar EXATAMENTE:

python .claude/skills/pje-download/scripts/buscar_processo_por_numero.py --cookies pje_session.json --numero NUMERO_PROCESSO

Capturar o ID_PROCESSO retornado.


Etapa 3: Extrair indice completo

Executar EXATAMENTE:

python .claude/skills/pje-download/scripts/extrair_indice_completo.py --cookies pje_session.json --id-processo ID_PROCESSO --output WORKSPACE/indice_completo.json

Checkpoint: Arquivo contem lista de documentos?


Etapa 4: Selecao inteligente (Task tool)

Usar Task tool para spawnar agente seletor:

Task tool:
  subagent_type: general-purpose
  prompt: |
    Leia o indice em WORKSPACE/indice_completo.json

    Aplique a heuristica "mentalidade de juiz":
    - NUCLEAR: Sempre incluir (peticao inicial, sentenca, laudo, embargos)
    - SUBSTANTIVO: Analisar descricao (parecer, manifestacao)
    - TEMPORAL: Incluir se recente (ultimos 6 meses)
    - EXCLUIR: So com certeza absoluta

    REGRA DE OURO: Na duvida, inclua.

    Salve a selecao em WORKSPACE/selecao_documentos.json

Read the full file on GitHub · 202 lines

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 · 202 lines · 13 tokens per session scan A 77db27bad156

Subscribe to this mod's changes

baixar-inteligente is a command published in the GitHub repository georgemarmelstein/superjurista-dev (22 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 1,256 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.