datajud

datajud is a skill for Claude Code, Codex from rvsanches/skills-datajud-djen. It costs 186 tokens per session (1,549 once invoked), scanned A, original, MIT.

A practical guide to DataJud, Brazil’s national database of court-case information maintained by the National Council of Justice. Its public API provides case details and movement history through Elasticsearch, a search system for structured data.

In plain words
What is it for?
Use it to find court-case metadata and procedural updates by court and process number. Use a different service for court decisions, summonses, or publications.
Why use it?
It explains how to query Brazilian court records and points out that the API does not include decisions, notices, or publications. That distinction matters when tracking deadlines or official communications.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find court-case metadata and procedural updates by court and process number. Use a different service for court decisions, summonses, or publications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rvsanches/skills-datajud-djen/datajud
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rvsanches/skills-datajud-djen --skill datajud
Clone the repo
git clone --depth 1 https://github.com/rvsanches/skills-datajud-djen

Made for: Claude Code, Codex.

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 datajud

README.md
[![agentmods](https://agentmods.dev/badge/skills/rvsanches/skills-datajud-djen/datajud/github.svg)](https://agentmods.dev/skills/rvsanches/skills-datajud-djen/datajud)
Your own site
<a href="https://agentmods.dev/skills/rvsanches/skills-datajud-djen/datajud"><img src="https://agentmods.dev/badge/skills/rvsanches/skills-datajud-djen/datajud/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 datajud

Your own site · 80×15
<a href="https://agentmods.dev/skills/rvsanches/skills-datajud-djen/datajud"><img src="https://agentmods.dev/badge/skills/rvsanches/skills-datajud-djen/datajud.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00186 $0.01549
Opus 5 $0.00093 $0.00775
Sonnet 5 $0.00037 $0.00310
Haiku 4.5 $0.00019 $0.00155

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

Security

Grade A, and why

datajud scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST 'https://api-publica.datajud.cnj.jus.br/api_publica_tjsp/_search' \
skills/datajud/SKILL.md · 109 lines

How it starts

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

API Pública do DataJud (CNJ)

O DataJud é a base nacional de metadados processuais do CNJ. A API Pública (https://api-publica.datajud.cnj.jus.br) expõe esses dados via Elasticsearch Search API: um índice por tribunal, consultas em Query DSL.

O que ela devolve: metadados do processo (classe, órgão julgador, grau, data de ajuizamento, assuntos) e a lista de movimentações (andamentos). O que ela não devolve: teor de decisões, intimações ou publicações — para comunicações que disparam prazo, use a API do DJEN (skill djen).

Documentação oficial: https://datajud-wiki.cnj.jus.br/api-publica/. Este guia registra o que a wiki não conta, aprendido operando a API em produção (projeto Judis, 2025-2026).

Início rápido

curl -X POST 'https://api-publica.datajud.cnj.jus.br/api_publica_tjsp/_search' \
  -H 'Authorization: APIKey <CHAVE_PUBLICA>' \
  -H 'Content-Type: application/json' \
  -d '{"query": {"match": {"numeroProcesso": "00000012320268260100"}}}'
  • A chave pública está em https://datajud-wiki.cnj.jus.br/api-publica/acesso/. O esquema do header é literalmente APIKey (não Bearer).
  • O número do processo vai sem máscara: 20 dígitos.
  • O alias (api_publica_tjsp) é derivável do próprio número CNJ — ver abaixo.

As 7 regras de ouro (aprendidas em produção)

  1. Consulte sempre pelo alias do tribunal, nunca pelo curinga. api_publica_* faz fan-out em ~90 índices, não termina dentro do limite de ~60s do gateway do CNJ e retorna 504 de qualquer origem (medido: 0/27 sucessos em 2026-07). O alias específico responde em 10-35s mesmo com o cluster degradado. O alias é derivável dos dígitos J.TR do número CNJ — função pronta em references/consultas.md.

  2. Dimensione timeouts para dezenas de segundos, não para poucos. A API é cronicamente saturada: respostas de sucesso levando 10-40s são normais (medido: 200 OK aos 41,5s). Timeout de 15s "estoura sempre". Valores que funcionam: ~35s por tentativa em fluxo interativo, ~75s em batch. Acima de ~60s o gateway corta com 504 — esperar mais que isso por uma mesma tentativa não traz resposta.

Read the full file on GitHub · 109 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 109 lines · 186 tokens per session scan A 141669581286

Subscribe to this mod's changes

datajud is a skill published in the GitHub repository rvsanches/skills-datajud-djen (18 stars, last pushed 1mo ago), licensed MIT. It adds 186 tokens to every session and 1,549 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

contingencia-report

Gera relatórios estruturados de contingência jurídica para uso em balanços, auditoria e compliance. Use quando o usuário precisar classificar processos por probabilidade de perda (provável/possível/remota) conforme CPC art. 95-96 e IAS 37 / CPC 25, calcular impacto financeiro no passivo contingente, ou preparar…

autodevx/legal-skills · 107 tokens

contrato-review

Analisa contratos brasileiros identificando cláusulas problemáticas, riscos jurídicos e oportunidades de negociação. Use quando precisar fazer due diligence contratual, revisar minutas antes de assinatura, identificar cláusulas abusivas ou desequilibradas, verificar conformidade com CC/2002, CDC, LGPD ou legislação…

autodevx/legal-skills · 101 tokens

audiencia-classifier

Classifica publicações de audiência judicial por tipo e modalidade. Use quando receber textos de intimações, pautas de audiência ou publicações do diário de justiça e precisar categorizar automaticamente em INICIAL/INSTRUÇÃO/JULGAMENTO/CONCILIAÇÃO × PRESENCIAL/VIRTUAL/HÍBRIDA. Aplicável a publicações de qualquer…

autodevx/legal-skills · 104 tokens

Geração de RIPD (Relatório de Impacto à Proteção de Dados)

Gera o Relatório de Impacto à Proteção de Dados Pessoais (RIPD) conforme exigido pela LGPD (Art. 38), descrevendo o tratamento, identificando riscos, propondo medidas de mitigação e documentando a base legal aplicável.

autodevx/legal-skills · 74 tokens

Triagem e Resposta a Solicitações de Titulares (LGPD)

Classifica solicitações de titulares de dados pessoais recebidas pelo canal de privacidade, verifica prazo legal de resposta, identifica o direito exercido (Art. 18 LGPD) e gera minuta de resposta formal adequada ao pedido.

autodevx/legal-skills · 61 tokens

cnj-parser

Valida, normaliza e extrai componentes de números de processos judiciais brasileiros no formato CNJ (NNNNNNN-DD.AAAA.J.TT.OOOO). Use quando receber números de processo em formatos variados (com ou sem máscara, colados de sistemas diferentes), precisar validar dígitos verificadores, identificar tribunal, instância e…

autodevx/legal-skills · 102 tokens