corpus-status

Reports IAJUS corpus coverage statistics from the Postgres read-model via MCP.

3|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/rafaelob/iajus-plugin-public --skill corpus-status-rafaelob
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: corpus-status
Source: https://github.com/rafaelob/iajus-plugin-public/tree/main/plugins/iajus-juris/skills/corpus-status
Command: npx skills add https://github.com/rafaelob/iajus-plugin-public --skill corpus-status-rafaelob

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Legal researchers need to know what the IAJUS database actually covers before trusting search results: how many decisions exist per tribunal, which years are covered, and how much legislation is indexed. This Skill answers those quantitative coverage questions directly from the read-model, with an as_of timestamp per section, instead of guessing or extrapolating. ## Core Features & Use Cases - Corpus panorama: Calls the MCP tool obter_estatisticas_base to report decisions per tribunal with year ranges, legislation by sphere and status, and qualified precedents (súmulas, temas, IRDR) by vigência. - Honest measurement contract: Reads the desfecho envelope (erro, sem_resultado, nao_terminou, parcial, medida_indisponivel) before any count, so a failed or partial query is never reported as absence. - Use Case: A user asks "quantos acórdãos do TJRJ existem na base e cobrimos 2023-2026?" The Skill queries secao="orgaos" and reports the decision count and year range exactly as the read-model returned them, with the as_of freshness stamp. ## Quick Start Ask the assistant what the IAJUS base currently covers for a given tribunal and year range, and it will report the measured counts with their as_of timestamps.

Frequently Asked Questions about corpus-status

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check what the IAJUS database covers?▼

Ask what is in the base or request coverage for a specific tribunal. The Skill calls obter_estatisticas_base via MCP and returns decisions per tribunal with year ranges, legislation by sphere and status, and qualified precedents, each with an as_of timestamp.

How many court decisions does IAJUS have for a specific tribunal?▼

Query with secao="orgaos" to get the tribunal list ordered by decision volume, including decisoes count and ano_min/ano_max year range per tribunal. Use the family and top parameters to scope and limit the list.

Does a zero result mean the IAJUS base has no data?▼

Not necessarily. A total of zero only means measured absence when desfecho is sem_resultado. Values like erro, nao_terminou, or medida_indisponivel mean the query did not measure the corpus, so no absence can be concluded.

What is the difference between obter_estatisticas_base and obter_cobertura_legislacao?▼

obter_estatisticas_base gives the general corpus panorama: volumes per tribunal, year ranges, and legislation by sphere and status. obter_cobertura_legislacao maps state and municipal legislation readiness per UF, detailed in the consultar-legislacao-estadual skill.

Why does the corpus report show different as_of values per section?▼

Each section carries its own freshness marker: a rollup timestamp when precomputed, or "live" when aggregated during the call. Sections can legitimately have different as_of values, and the Skill reports each one as returned.