Command Palette

Search for a command to run...

Назад к скиллам
скилл № 63233

xbrl

Guide for working with XBRL, the standard for digital business and financial reporting -- reading and writing instance documents, Inline XBRL (iXBRL)…

БесплатноБез исполняемых скриптов
maragudkот maragudk★ 30 звёзд на GitHub

Установить xbrl в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

XBRL

XBRL is the global standard for digital business reporting: a way to state facts about a business so software can find them without reading prose. Regulators in most of the world now mandate it, which means the data arrives whether or not you asked for it in a convenient shape.

This file is the overview and a router. Deep detail lives in references/.

Mental model

XBRL splits a business report in two:

  • The report (an instance, or in OIM language an XBRL report) holds the facts: the numbers and text a company actually reported.
  • The taxonomy holds the definitions: what fsa:Revenue means, what type it has, what it is called in Danish, what it sums into, which dimensions may qualify it.

A fact is a value plus the coordinates that say what it is a value of. In the XML syntax those coordinates are spread across three places:

<fsa:Revenue contextRef="c1" unitRef="DKK" decimals="-3">12450000</fsa:Revenue>

<xbrli:context id="c1">
  <xbrli:entity>
    <xbrli:identifier scheme="http://www.dcca.dk/cvr">12345678</xbrli:identifier>
  </xbrli:entity>
  <xbrli:period>
    <xbrli:startDate>2025-01-01</xbrli:startDate>
    <xbrli:endDate>2025-12-31</xbrli:endDate>
  </xbrli:period>
</xbrli:context>

<xbrli:unit id="DKK">
  <xbrli:measure>iso4217:DKK</xbrli:measure>
</xbrli:unit>

Read as: this entity, over this period, reported revenue of 12,450,000 DKK, accurate to the nearest thousand.

The modern framing, from the Open Information Model (OIM), is cleaner and worth adopting internally even when you parse XML: a fact is a value, a decimals, and a set of dimensions. Five are built in for ordinary facts — concept, entity, period, unit, language (a sixth, noteId, exists only on footnote facts) — and any others come from the taxonomy. Contexts and units are XML plumbing for grouping dimensions; they carry no meaning of their own. Two contexts with different ids but identical content are the same coordinates.

Everything else in XBRL is elaboration on that: dimensions add coordinates, linkbases add meaning, iXBRL wraps it in HTML, and the OIM formats re-serialise it.

Which format am I holding?

Looks like It is Notes
Root <xbrl> or <xbrli:xbrl> xBRL-XML instance (XBRL 2.1) The classic. Facts are elements.
Root <html> with xmlns:ix="http://www.xbrl.org/2013/inlineXBRL" Inline XBRL 1.1 A report you can open in a browser with facts woven in. What regulators mandate today.
<html> with ix bound to .../2008/inlineXBRL Inline XBRL 1.0 Older, different namespace, rarer.
JSON with /documentInfo/documentType = https://xbrl.org/2021/xbrl-json xBRL-JSON Flat, friendly, rarely published in the wild.
JSON with documentType https://xbrl.org/2021/xbrl-csv plus CSV files xBRL-CSV Bulk/regulatory returns. Metadata JSON + data tables.
ZIP with a single top dir containing reports/ Report package .xbri = one iXBRL doc set, .xbr = one XML/JSON report, .zip = unconstrained.
ZIP with META-INF/taxonomyPackage.xml Taxonomy package A taxonomy plus a URL rewrite catalog.
.xsd importing http://www.xbrl.org/2003/instance Taxonomy schema Concept definitions.
<linkbase> in the .../2003/linkbase namespace Linkbase Labels, presentation, calculation, definition, references.

An iXBRL document is not an instance. It maps to one (the "target document"). Refuse to parse it as an instance rather than silently returning zero facts — that failure mode is very hard to debug downstream.

The one architectural decision: how much taxonomy do you need?

This dominates everything else about an XBRL integration, so make it consciously and early.

Without the taxonomy you can read, from the instance alone: every fact's concept (as a namespace + local name), its raw value string, its context (entity, period, dimensions), its unit, and its claimed accuracy. That is enough for storage, diffing, provenance, and any analysis where you already know which concepts you care about. It needs no network access, no schema resolution, and no XML Schema validation. A competent instance reader is a few hundred lines.

Only with the taxonomy can you get: human-readable labels in any language, the data type of a concept (and therefore whether a value is a number, a date, or a text block), periodType and balance (debit/credit), presentation order and hierarchy, calculation relationships, dimensional validity, which member is a dimension's default, and enumeration domains.

Resolving a taxonomy means DTS discovery: follow schemaRef, then every import, include, linkbaseRef, roleRef, arcroleRef, and locator href transitively. For a real filing that is dozens to hundreds of remote documents. Taxonomy packages exist precisely so you can do it offline.

Three sane postures:

  1. Instance-only. Treat concepts as o
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/dimensions.md
  • references/inline-xbrl.md
  • references/instance.md
  • references/oim.md
  • references/parsing.md
  • references/programmes.md
  • references/taxonomy.md

FAQ

Что делает скилл xbrl?

Guide for working with XBRL, the standard for digital business and financial reporting -- reading and writing instance documents, Inline XBRL (iXBRL), xBRL-JSON and xBRL-CSV, taxonomies and linkbases, dimensions, contexts, units, and facts. Use this skill whenever the user touches XBRL in any form -- parsing or generating an instance, extracting figures from a filing or annual report, handling `xbrli:context`, `contextRef`, `unitRef`, `decimals`/`precision`, `ix:nonFraction`, `ix:nonNumeric`, `ix:hidden`, `xbrldi:explicitMember`, `xbrldi:typedMember`, hypercubes, DTS discovery, taxonomy or report packages, or the Open Information Model. Triggers even when the word "XBRL" never appears -- ESEF, iXBRL, SEC EDGAR company facts, `us-gaap:`/`ifrs-full:`/`dei:` prefixed tags, financial statement tagging, or a file arriving as `.xbrl`/`.xbri`/`.xbr` are all enough.

Как установить скилл xbrl?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл xbrl запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить xbrl с