jsonstat

jsonstat is a skill for Claude Code, Codex from idescat/mcp. It costs 75 tokens per session (999 once invoked), scanned A, original, MIT.

A guide to reading JSON-stat 2.0 datasets, a format used by official statistics providers such as Eurostat and national statistics offices. It explains how to find a value in the format's shared data array.

In plain words
What is it for?
Use it to map a combination of dimensions—such as place, time, and measure—to the correct statistic in a JSON-stat response.
Why use it?
It prevents incorrect results caused by assuming categories are alphabetically ordered or by misreading the array layout.

Skill for Claude CodeCodex

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

Good fit Use it to map a combination of dimensions—such as place, time, and measure—to the correct statistic in a JSON-stat response.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/idescat/mcp/jsonstat
View source ↗ idescat/mcp
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 idescat/mcp --skill jsonstat
Clone the repo
git clone --depth 1 https://github.com/idescat/mcp

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 jsonstat

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/idescat/mcp/jsonstat"><img src="https://agentmods.dev/badge/skills/idescat/mcp/jsonstat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 999 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.00075 $0.00999
Opus 5.5 $0.00030 $0.00400
Sonnet 5.5 $0.00015 $0.00200
Haiku 4.5 $0.00007 $0.00100

Measured 2mo ago against content hash 40a0dc6260f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jsonstat 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 2mo 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.

jsonstat/SKILL.md · 89 lines

How it starts

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

Reading JSON-stat datasets

JSON-stat is a JSON format for statistical data used by official statistics providers (Idescat, Eurostat, national statistical institutes). Its key feature — and the most common source of mistakes — is that all cell values live in a single flat array whose order is determined by the dataset's dimensions. Follow this guide to read values reliably.

Dataset structure

A JSON-stat dataset ("class": "dataset") has these essential properties:

  • id: ORDERED list of dimension names. This order governs all position calculations (NOT the key order of the dimension object, which is irrelevant).
  • size: number of categories per dimension, in the same order as id.
  • dimension.{name}.category.index: 0-based position of each category code within the dimension. It comes in one of two forms:
    • an object {code: position}, e.g. {"M": 0, "F": 1}, or
    • a list [code0, code1, ...] (the position is the list index). ALWAYS use this index; never assume alphabetical or label order. If category.index is absent and category.label has a single key, the dimension has one category at position 0.
  • dimension.{name}.category.label: map from category code to human-readable label.
  • value: FLAT array with all cell values in row-major order: the LAST dimension of id varies fastest and the first varies slowest.
  • status: flags special values (e.g. provisional or confidential data). It can be a string (applies to all values), an array (parallel to value) or an object keyed by value position.

Reading the value of a category combination

To read the value for a specific combination of categories (one per dimension):

  1. For each dimension, take the position p of the chosen category from category.index.
  2. Compute each dimension's stride = product of the size of ALL later dimensions (in id order); the last dimension has stride = 1.
  3. offset = sum of (p × stride) over all dimensions.
  4. The value is value[offset].

Read the full file on GitHub · 89 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. 2mo ago First seen · 89 lines · 75 tokens per session scan A 40a0dc6260f1

Subscribe to this mod's changes

jsonstat is a skill published in the GitHub repository idescat/mcp (1 stars, last pushed 18d ago), licensed MIT. It adds 75 tokens to every session and 999 once invoked, about $0.0003 per session on Opus 5.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-09-04.

Related

jsonstat compared with skills from other repositories

jsonstat next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jsonstatidescat/mcpSkill118d agoMITA75Claude Code, Codex
arboretoK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA70Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA64Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill3.9ktodayApache-2.0A56Claude Code
ml-training-recipesOrchestra-Research/AI-Research-SKILLsSkill14k27d agoMITA88Claude Code