agentleFS
janbrusjanbrus/pxwebapi-skills/ssb-pxwebapi-v2-skill/CLAUDE.md

pxwebapi-skills / ssb-pxwebapi-v2-skill

CLAUDE.md18 starsChanged 6 days agoMITView on GitHub

This is not an application codebase. It is a Claude Code Skill package that teaches Claude how to query Statistics Norway (SSB) via the public PxWebApi v2 at https://data.ssb.no/api/pxwebapi/v2. There is no application runtime — changes here are documentation/prompt edits that get loaded when the ssb-pxwebapi-v2 skill triggers. There is a build step and a test suite, but they are unusual: scripts/build_zip.sh packages the distributable, and the Python checkers under scripts/ treat every example URL, POST body and table ID…

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use valueCodes (camelCase) consistently in GET examples — matches the OpenAPI spec and the POST body shape, even though the API is …

    line 77
  2. Very specific:

    Keep references/*.md focused.

    line 78
  3. Very specific:

    If you added a file to references/ or assets/, update the file tree in README.md too (it's hand-maintained.

    line 88
  4. Distinctive:

    Update the version column for this skill in the root README.md (both the Norwegian and the English table).

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

This is not an application codebase. It is a Claude Code Skill package that teaches Claude how to query Statistics Norway (SSB) via the public PxWebApi v2 at https://data.ssb.no/api/pxwebapi/v2. There is no application runtime — changes here are documentation/prompt edits that get loaded when the ssb-pxwebapi-v2 skill triggers.

There is a build step and a test suite, but they are unusual: scripts/build_zip.sh packages the distributable, and the Python checkers under scripts/ treat every example URL, POST body and table ID written in the markdown as an assertion to verify against the live SSB API, and run the code template in assets/code/ with its default selection. Prose is the fixture set; drift upstream at SSB fails the build.

Upstream source of truth: https://github.com/janbrus/pxwebapi-skills/tree/main/ssb-pxwebapi-v2-skill (the repo was renamed from ssb-api-v2-examples; old URLs redirect)

Commands

Requires Python 3.12+ and zip/unzip. The checkers are stdlib only, with one exception: check_examples.py imports and runs the code template assets/code/hent_uttrekk.py, which needs requests and pandas. Without them the template is skipped with a warning and the rest runs; with the environment variable CI set (GitHub Actions, which installs both) a missing package is an error.

# Verify every example URL, GET/POST query and table ID in SKILL.md + references/ + docs/,
# and run the code template in assets/code/
python3 scripts/check_examples.py            # add --quiet to hide OK lines

# Verify references/common-tables.md rows against /tables/{id}
python3 scripts/check_common_tables.py --quiet
python3 scripts/check_common_tables.py --md references/common-tables.md   # check a single file
python3 scripts/check_common_tables.py --workers 4                        # parallel; the threads share one window

# Both in one go: two processes don't share a window, so run them 61 s apart
python3 scripts/check_common_tables.py --quiet && sleep 61 && python3 scripts/check_examples.py --quiet

# Rebuild the distribution zip (required before committing content changes)
scripts/build_zip.sh                  # writes ./ssb-pxwebapi-v2-skill.zip
scripts/build_zip.sh /tmp/fresh.zip   # write elsewhere, e.g. to diff against the committed zip

At most half the rate limit, for tests too (maintainer's rule). Every request either checker sends, retries and Klass included, takes a slot in scripts/ratewindow.py's sliding window: 20 per 60 s, a slot held 61 s. A fixed pause can't keep that, which is why --delay was removed in 1.7.0. Each run ends with «N kall, høyst K per 60 s (budsjett 20)», and check_examples.py warns once if x-ratelimit-policy in the responses it already gets isn't 40;w=60s. The pair takes about 8 min. A curl check or sweep sent to data.ssb.no meanwhile shares the same per-IP quota.

There is no single-test flag; scope a run by pointing check_common_tables.py --md at one file, and use --quiet to hide OK lines. Both checkers exit non-zero on errors; check_common_tables.py warnings (title drift, stale lastPeriod) do not fail CI.

.github/workflows/check-tables.yaml runs two jobs — check (both Python scripts) and zip-sync (rebuilds the zip and diff -rs it against the committed one) — on push/PR touching SKILL.md, README.md, CHANGELOG.md, references/**, assets/**, docs/**, scripts/** or the zip, and by hand via workflow_dispatch (Actions tab → Run workflow). There is no scheduled run: the Monday cron was removed on 2026-10-13 (maintainer's call), so SSB-side drift with no local change surfaces only on the next push or manual run. Run both checkers locally before a release.

The /savedqueries safety rule

check_examples.py deliberately never issues POST /savedqueries — that would create persistent state on SSB's servers. Such examples are JSON-syntax-validated only. Keep this exemption if you extend the checker, and never "verify" a saved-query example by actually posting it. Since 1.6.2 the one POST /savedqueries example lives in references/saved-queries.md; the GET /savedqueries/10119120 lines beside it are real GETs and are checked.

Layout

  • SKILL.md — the skill entrypoint. Frontmatter (name, description, license, metadata.version) controls when the skill auto-triggers; the body is the operational guide Claude follows. Keep triggers (Norwegian + English keywords for Norwegian official statistics) in the description. Structure: data-integrity rule → routing to sibling skills/tools → endpoint table → tool selection → language → 6-step workflow (Steg 1–6) → pitfalls → worked examples → fallback (which also carries the pointer to troubleshooting.md).

Since 1.5.0 the file is deliberately deduplicated: each rule has one primary occurrence in SKILL.md plus pointers, and detail lives in references/. Before adding a paragraph, grep for the term — if it already appears, extend the existing occurrence or the reference file instead of writing a second one. Terms worth grepping: elimination, noteMandatory, top(), Lagre, rate limit, KOSTRA, KOK. Since 1.6.5 the Dataintegritet bullets state the rule only. The detail behind them lives in common-tables.md (14746 alternatives, when not to use SSB's ready-made per-capita figures) and troubleshooting.md (discontinued and removed tables, successor via the table note or SSB's endringsside). That was the maintainer's call on 2026-10-23, so don't move it back.

  • references/ — deeper reference material loaded on demand. Every file except the three shortest (search-syntax.md, mcp-tools.md, saved-queries.md) opens with an Innhold list that mirrors its H2 headings; update it when you add or rename a section:
    • json-stat2.md — table of contents, then «Slik leser du et uttrekk» (seven numbered rules, actions only, row-major indexing in rule 2), then the format: Dataset structure and indexing, a field table, extension at dimension and dataset level, status/note/link, what json-stat2 does not carry, tools. Since 1.6.2 rules come first and the format sections only describe; keep that split. Every field that comes from the PX file names its PX keyword in parentheses (measuringType ← STOCKFA, noteMandatory ← NOTEX, status ← DATASYMBOL…/DATANOTECELL; source: PxTools/PCAxis.Serializers, JsonStat2Serializer.cs), and the extension.px keys are PX keywords in lower case. SSB never sets noteMandatory or categoryNoteMandatory at dimension level (0 of 89, 2026-10-11) although the PxWebApi spec has them — notes per variable and per value are never mandatory at SSB, so don't reintroduce them as rules
    • api-details.md — SSB-specific operational info (publishing times, rate-limit headers, license)
    • codelists-and-filters.md — codelist/filter syntax: codelist[Var]=agg_…, top(n)/from(x)/range(a,b), wildcards, plus the outputValues[Var] parameter and the finding that it is not load-bearing at SSB (identical data for aggregated, single and omitted; an invalid value returns HTTP 200 unvalidated — verified 2026-08-30). Don't reintroduce it as a requirement. Note prefixes: agg_KommFylker uses F-, agg_KommSummer uses K-, the age groups use F00-04; such codes give 400 without codelist[Var], and valueMap (not the agg_ prefix) tells whether a list sums. Includes KPI/COICOP groupings (vs_CoiCop2018Kpi01, agg_CoiCop2018Kpi011) — COICOP 2018 is UNSD's international classification, the codelists are SSB's own. Since 1.6.2 the order is: table of contents → general codelist rules → filter expressions (both within the first ~100 lines, because some agents only read the head of a file) → SSB-specific sections. Keep the headings «Regionale nivåer under kommune: bydel, delområde, grunnkrets» and «Næringskoder: SN2007 → SN2025» verbatim — SKILL.md, troubleshooting.md and klass-vardok.md point to them by name
    • saved-queries.md — saved queries: SSB's recommendation (a plain API URL with top()/from() for automation) first, then the POST /savedqueries body (outputFormat and outputFormatParams both mandatory), the GET endpoints, and old v1-era ssb.no/statbank/sq/{id} IDs still served via the API. Moved out of SKILL.md Steg 6 in 1.6.2 because saved queries are of marginal interest to users (maintainer's call, 2026-10-10); Steg 6 keeps the recommendation and a pointer. Don't move the detail back
    • search-syntax.md — pure Lucene query parser reference for /tables?query= (PxWebApi uses Lucene.Net under the hood). Non-Lucene search parameters (pastDays, includeDiscontinued) and Norwegian term choice belong in SKILL.md Steg 2, not here
    • klass-vardok.md — SSB's Klass (classifications) and VarDok (variable definitions) via URNs in link.describedby and ready-made link.related links, plus deriving the statistics shortname from paths before metadata is fetched. That derivation only holds when every path shares the third node; for the 504 cross-listed tables (KOSTRA plus e.g. 10484, 14662) extension.metaid is the answer and paths[0] is wrong for 76 of 450 active ones (sweep 2026-10-03). subjectCode narrows the candidates but leaves 178 of 504 ambiguous, and the isPrimaerPlassering flag from ssb.no's subject tree adds nothing on top (same 178), so don't build a heuristic on either. Since 1.6.5 it also has the date lookups changes, codesAt and correspondsAt (131 → 112 replaces knowing the yearly KOSTRA table ID). In changes the change date must fall strictly between from and to (from inclusive, to exclusive, and a change needs the day before in range too), or the answer is 0 rows with no error. Klass URLs carry no .json suffix — SSB deprecated it (API guide §1.7.1, 2026) — and Klass picks the format from Accept (text/html alone gives 500). check_examples.py GETs Klass URLs too since 1.6.5
    • kostra.md — KOSTRA (municipal reporting, 385 active tables identified by the kostrahoved node in paths, not by search): KOK…/KOS… variable IDs instead of Region, special region codes (EAK, EAKUO, EKG01–17, EAFK…, EAB), codelists chosen by label because agg_KOGkommuneregion… IDs vary per table, all dimensions mandatory, aggregallowed: false, estimated/weighted national figures, unrevised figures 15 March → revised 15 June with no status flag, KOSTRA groups in Klass 112. Facts verified 2026-09-20. KOSTRA tables and KOS… codes churn with reporting requirements, so re-sweep every March/June and expect example URLs here to break more often than elsewhere; never hard-code agg_KOG… IDs in examples. 13526 and 12134 are the checker's KOSTRA fixtures. Since 1.6.6 the file opens with a table of contents and then «Sjekkliste før du svarer» (rules before description, as in json-stat2.md); the successor lookup points to «Avsluttet tabell» in troubleshooting.md instead of restating it
    • output-formats.md — json-stat2, csv, xlsx, html, px, parquet and parameters (UseCodesAndTexts, IncludeTitle, heading/stub pivoting). Holds the full parquet column contract (value/ContentsCode_{code} plus the _symbol columns that carry status), and since 1.6.3 the recommendation to use xlsx when data goes into Excel (numeric cells; Excel picks the decimal mark, whatever lang). SKILL.md only points here. Since 1.6.6 the order is: table of contents → the formats → xlsx → CSV → outputFormatParams → heading/stub → Power Query → parquet last, because the format is beta (maintainer, 2026-10-27). The parquet section keeps only what changes the agent's behaviour; closed bugs and their verification live in DEVLOG.md
    • common-tables.md — well-known table IDs (KPI, befolkning, etc.); the machine-checked table (| id | title | frekvens | … |) is parsed by check_common_tables.py, so keep the column order. The Innhold list at the top names every ## topic with keywords; add a line there when you add a topic
    • troubleshooting.md — common errors and fixes; also the canonical list of SSB's standardtegn (., .., : plus the pre-2021 symbols) under «NULL-verdier i data» — json-stat2.md points here rather than repeating them. The short footnote texts, in Norwegian and English, are in assets/standardtegn.json (see assets/ below). It is the lookup from an error to its cause: it may repeat a rule in one line with a pointer, but the rule lives in the topic file. When you change a rule, grep for the other copy — in 1.6.5 the successor lookup changed here while kostra.md kept the old order until 1.6.6. Keep the headings «NULL-verdier i data», «Data ser "feil ut" over tid» and «Avsluttet tabell» — json-stat2.md and kostra.md point to them by name
    • mcp-tools.md — mapping between pxweb-mcp MCP tools (@jarib/pxweb-mcp) and API endpoints, plus limitations (lossy search_tables, no codelist[Var] in fetch_metadata, no outputFormatParams) and the --url config caveat. Facts are version-bound — re-verify against the package source when it ships a new major version.
  • CHANGELOG.md and DEVLOG.md — two logs for two readers, both in Norwegian. CHANGELOG.md ships in the zip and tells users what is different in the answers: a few bullets per version, no sweep counts, no sibling checks. DEVLOG.md is the maintainer's record and is not shipped: what changed, what was verified live and when, and every sibling-check outcome. It is the old CHANGELOG.md, split off on 2026-10-05, when it had grown to nearly twice the size of SKILL.md. Every version appears in both. The CHANGELOG.md header links to DEVLOG.md by full GitHub URL, because a relative link is dead inside the zip.
  • evals/eval-scenarios.md — maintainer-internal behavioral fixtures: typical user questions with the expected table ID and endpoint sequence. Run via the skill-creator skill after larger edits to SKILL.md or references/. This layer catches routing regressions (picking discontinued 03013 instead of 14700); the Python checkers catch factual regressions. When an eval fails, run check_examples.py first — the table may have changed, not the skill.
  • evals/trigger-eval.json — trigger fixtures for the frontmatter description: 20 queries in skill-creator's run_eval.py format (query, should_trigger, plus id and the expected route), 10 that should trigger and 10 near-misses that belong to a sibling skill or to none. The behavioral evals hand the agent the skill and the checkers test URLs, so only this layer notices a skill that stops triggering. Unpatched run_eval.py undercounts here: it counts calls to its temporary copy, but the installed skill (a symlink to this folder, same description) takes them — detect the installed skill by name instead, and run claude -p in a neutral directory, because the model sees its cwd and a path that names the skill biases it. Run it with a pxweb-mcp server connected — that is the condition that discriminates, because with MCP tools available a model can go straight to them without loading the skill. A server name without «pxweb» or «ssb» is untested. Results, with model and date, go in DEVLOG.md (1.6.4 holds the current baseline).
  • docs/ — user-facing but deliberately outside the zip: brukerveiledning.md (how to use the skill: prerequisites, the *.ssb.no allowlist, example questions, troubleshooting, MCP setup) and instruks-kort.md (for users without a paid plan, since 1.7.0: a plain-text kjerne in a code block, at most 1 450 characters so it fits ChatGPT's custom-instructions field, plus an utvidelse below the --- line for project instructions and Gems. It assumes GET only, and a model that cannot fetch sends the user to Statistikkbanken to pick values, press «Lagre», open the address shown under «GET URL» (button and label confirmed by the maintainer, 2026-11-11) and paste the response — never a search result or metadata, which are too large to paste and not realistic use (maintainer, 2026-11-11). POST, curl, MCP and saved queries were cut on purpose — maintainer's call 2026-11-11 — so it no longer serves as an API system prompt; don't add them back, and count the kjerne after every edit). They are for platforms and readers that never load the zip, and keeping them out also stops a model from loading the condensed copy as if it were the skill. skillkart-arbeidsflyt.svg (the Steg 1–6 workflow: endpoints per step, routing to sibling skills, the /data response as the only source of numbers) and skillkart-sjekk-og-pakking.svg (the check/zip pipeline) are hand-drawn and are the only copy of each drawing: skillkart.html wraps them with <img> and prose, and brukerveiledning.md embeds the workflow SVG so GitHub renders it. Each SVG carries its own <style> and an opaque background, since GitHub serves it as an image and no page CSS or web font reaches it — size text for wide fallback fonts like DejaVu Sans. Both name the version they were drawn from; no checker reads .svg or .html. llms.txt is a draft proposal to SSB for data.ssb.no/llms.txt (llmstxt.org v2, English): it links to SSB's own docs, not to this repo's files, so keep it standalone. v2 rules to keep: free-text rules go before the first H2 with no heading of their own, every H2 section is a pure - [name](url): note list, and links should point to LLM-friendly content (raw GitHub, JSON, .md versions where they exist). check_examples.py scans docs/*.md and docs/*.txt, so their example URLs stay live-checked.
  • assets/svarmal.no.md, assets/svarmal.en.md and assets/standardtegn.json — the layout of an answer with figures, and the status-symbol texts. They ship in the zip (since 1.7.0); the opening line of SKILL.md Steg 5 tells the agent to read the template before writing an answer, and the status bullet points to the JSON. The templates have placeholders only, no table IDs or numbers, so nothing in them can be reused «from memory» or leak into evals (maintainer, 2026-11-19). check_examples.py doesn't scan them, and would skip the { lines anyway. Their source lines have the wording from «Språk» in SKILL.md and, for several tables, from ssb-chart, but each table number is a markdown link to https://www.ssb.no/statbank/table/{id} (/en/statbank/ in English), which replaced a table-and-link bullet under «Slik ble tallene hentet» (maintainer, 2026-11-22). «Språk» stays plain text, because the same line is kilde() in hent_uttrekk.py, which prints to a terminal and is checked verbatim. Change the wording in all three together. They use the passive voice («Slik ble tallene hentet»), not the first person (maintainer). The footnote line is a placeholder on purpose: the symbol texts live only in standardtegn.json, keyed by the status code as json-stat2 sends it, because a hard-coded line had already drifted from the JSON. The texts are SSB's short ones from both standardtegn pages (read 2026-11-19), except :, which is the maintainer's wording («Vises ikke av hensyn til konfidensialitet», SSB says «… av konfidensialitetshensyn») — don't change it back
  • assets/code/ — code templates the agent copies and fills in; shipped in the zip, pointed to from SKILL.md Steg 5 (since 1.7.0). hent_uttrekk.py is requests + pandas: a json-stat2 POST, its own row-major decoder giving a code column and a _tekst column per variable plus value (null stays NaN) and status, the notes with noteMandatory marked, the source line, kan_summeres() (reads extension.px.aggregallowed; main() warns when it is false, and the module docstring tells the agent to check it before summing — added after a Sonnet eval on 2026-11-18 lost the warning because agents using the template stopped reading json-stat2.md), and a call window at half the limit (20 slots, each held 61 s; the check uses _kall.maxlen, so setting BUDSJETT after import cannot switch the window off). Not pyjstat, which the notebooks in the repo root use: it drops status and gives codes or texts, not both (maintainer's choice, 2026-11-18). check_examples.py runs it (check_template()): offline against a made-up dataset — category.index out of position order, a null with status, a number with a flag, status as object and as list — and then one POST with the template's own TABELL and UTVALG, whose table also joins the discontinued check. Row positions are worked out from each row's codes (index × stride), not in the template's product order, so the check is not the decoder agreeing with itself; keep it that way. The live call takes a slot in the checker's window (mod._ta_plass = WINDOW.take), which works because hent() looks _ta_plass up at call time — don't bind it as a default argument. The check catches drift at SSB and breakage in pandas; whether an agent keeps status, notes and source when it adapts the template is still a job for the evals. Importing it locally creates __pycache__/; it is git-ignored, and build_zip.sh skips it so the zip matches the CI build.
  • scripts/, .github/ — repo-internal tooling, deliberately excluded from the distribution.

Editing guidance

  • The Dataintegritet section at the top of SKILL.md outranks everything else in the skill: never state a number not fetched from the API in that conversation, never blend other sources, never interpolate. Don't weaken or relocate it — the rest of the workflow assumes it.
  • Preserve the bilingual (Norwegian primary, English secondary) trigger surface in SKILL.md frontmatter — removing keywords will cause the skill to stop firing for real user queries.
  • The API base URL and endpoint table in SKILL.md are the canonical contract; if an endpoint is added/changed upstream, update SKILL.md first, then cross-check references/api-details.md.
  • Examples should use real, currently-published SSB table IDs. check_examples.py fails on any table with discontinued: true, so replace rather than annotate dead IDs.
  • For example URLs/queries, hit the live API and confirm HTTP 200 (or just run check_examples.py). Codelist prefixes are easy to forget: agg_KommFylker requires F- codes, agg_KommSummer requires K- codes. A 400 response usually means a missing prefix or a missing required variable (Tid/ContentsCode are never eliminable) — read the title field, which is the diagnostic; detail is set only for Too many cells selected, Unsupported output format and Saved query not found, and then repeats the title (2026-10-28).
  • Use valueCodes (camelCase) consistently in GET examples — matches the OpenAPI spec and the POST body shape, even though the API is case-insensitive.
  • Keep references/*.md focused; SKILL.md should stay the overview and defer detail to references rather than duplicating it.
  • Keep SKILL.md lean: add only what helps many users or tables. One-table quirks and discrepancies SSB already explains in a note go to references, DEVLOG or chat (maintainer, 2026-10-13). But a line that repeats a rule can stay where the agent acts — beside an example or in the step it is about — and a line may only be cut if its content stands elsewhere (maintainer, 2026-10-14, when trimming for 1.6.3).
  • Dates in the skill files go on snapshot facts only, written on the fact itself («per 2026-10-24», «0 av 89 (2026-10-11)»): counts, «gjeldende» IDs, observed SSB behaviour — they tell the agent the number may be stale and the API wins. The record of what was verified when belongs in DEVLOG.md. Don't add new «Verifisert …:» lead-ins before URL lists; check_examples.py checks every example URL, Klass included, on each run. Existing lead-ins mostly also date numbers in the same paragraph, so leave them (maintainer, 2026-10-24).
  • check_examples.py extracts POST bodies by brace-counting, so a JSON body in the docs must not contain { or } inside string values, and must not be interrupted by a closing code fence.

Release checklist (every content change)

  1. Bump metadata.version in SKILL.md frontmatter (semver: PATCH for fact fixes, MINOR for new content). A version that isn't bumped lies about copies being current. SKILL.md also states the version in prose ("Denne kopien er v…") — update both.
  2. Add a DEVLOG.md entry. Existing entries record the verification date and whether the sibling SCB skill was affected; follow that pattern. Then add the user entry in CHANGELOG.md, derived from it: what is different in the answers, in a few bullets, with corrections marked Rettet:. Same version and date in both files.
  3. Rebuild the zip with scripts/build_zip.sh — the zip-sync CI job fails otherwise.
  4. If you added a file to references/ or assets/, update the file tree in README.md too (it's hand-maintained; build_zip.sh globs references/*.md and every file under assets/ except __pycache__/, so the file ships either way).
  5. If you changed a rule in SKILL.md, check whether docs/instruks-kort.md still says the same thing — it repeats the rules in short form and names the version it builds on (docs/brukerveiledning.md names a version too). If you changed a step, an endpoint or a routing target, redraw docs/skillkart-arbeidsflyt.svg as well. Neither is in the zip, so zip-sync will not catch them drifting.
  6. Update the version column for this skill in the root README.md (both the Norwegian and the English table). It is outside the skill folder and outside the zip, so nothing checks it.

The zip and the README file tree contain user-facing files only: SKILL.md, README.md, CHANGELOG.md, references/, assets/, plus LICENSE in the zip. Never add scripts/, .github/, CLAUDE.md, DEVLOG.md or evals/ to either; docs/ is user-facing but stays out of the zip (see Layout).

LICENSE (MIT) lives in the repo root and covers the whole repo; build_zip.sh copies it into the package because MIT requires the notice to travel with every copy, and the zip is the copy that gets handed out. Don't add a per-skill LICENSE — edit the root one, and rebuild all six zips when it changes (every zip-sync workflow has LICENSE in its paths: filter). SKILL.md frontmatter carries license: MIT. LICENSE has complete terms (the optional Agent Skills field — keep it short, it names the file beside SKILL.md in the zip); never put licence text in the body, which is loaded on every trigger.

Related sibling skills

A parallel scb-pxwebapi-v2 skill exists for Sweden's SCB. The two APIs share the PxWebApi v2 shape — when fixing a bug in one, check whether the other needs the same fix, and record the outcome of that check in DEVLOG.md (including "does not apply", with the date). It stays out of CHANGELOG.md, which is about this skill's answers.

A third-party norges-bank-api skill (github.com/avocodetoast/norges-bank-api-skill, SDMX — not PxWebApi) covers Norges Bank data, and ssb-histstat covers digitised historical statistics from before the Statistikkbank era. SKILL.md Steg 1 routes such questions there; Steg 5 and Fallgruver require answers to comment only on the fetched SSB numbers — cross-references are routing, never data blending from other sources. Keep these references when editing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.