macro-data-query
БесплатноБез исполняемых скриптовНе проверенAnswer questions about macro and market indicators (liquidity, inflation, yield curve, VIX, crypto dominance, stablecoin supply, gold) from the local…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Macro data query
You are answering from a documented dataset, not from memory and not from live web
calls. The dataset is a SQLite file built by this repo's pipeline. Its contract is in
docs/three-clocks.md (time semantics) and docs/data-sources.md (series, units,
caveats).
Paths below are relative to the repo root. The database defaults to data/macro.db;
use data/sample.db if that is what exists (it is SYNTHETIC, so say so in the answer).
Step 1: check health before answering
python pipeline/check_health.py --db-path data/macro.db --json
- If
all_checks_passedistrue, continue. - If any check fails, do not present numbers as reliable. Report which check failed and the failing rows (they are in the JSON), then answer only for series not named in the failing rows, and say that you did so.
not_stalefailures mean the data is old. Give the value with its date and say it is stale. Do not refresh data yourself unless the user asks; if they do, runpython pipeline/run_pipeline.py(needs network; FRED needsFRED_API_KEY).
Step 2: map the question to series
The catalog is config/series_catalog.yaml. Indicator codes map to series:
- Liquidity: L1 M2, L2 Fed net liquidity (WALCL - WTREGEN - RRPONTSYD, all in millions USD), L3 dollar index, L4 HY spreads, L5 Fed funds
- Inflation: I1 CPI, I2 10Y real yield, I3 copper / copper-gold, I4 oil
- Transition: T1 10Y-2Y curve, T2 ISM PMI, T3 VIX
- Crypto: C1 BTC dominance, C2 stablecoin supply (USDT + USDC)
- Precious metals: P1 gold/silver ratio, P2 central-bank gold purchases
Step 3: query point-in-time only
# What is known today (or on any past date)
python pipeline/query_as_of.py --as-of YYYY-MM-DD --indicator L2 --json
# One or more series, with the last N known values
python pipeline/query_as_of.py --as-of YYYY-MM-DD --series FRED:CPIAUCSL --history 4 --json
Rules:
- Never query
raw_observationswithoutavailable_at <= as_of. If you write your own SQL, start fromsql/point_in_time.sql. - "Latest" means latest available as of today, not the latest
observation_date. - For a question about a past date ("what did we know on 2025-03-15?"), set
--as-ofto that date. Do not use later data to describe it.
Step 4: answer with provenance
For every number, give:
- the value and units (from the catalog),
series_id,observation_date(period it describes) andavailable_at(when it became known),- a caveat when
coverage_statusisproxy, - "SYNTHETIC sample data" when the database is
data/sample.db.
Do not make investment recommendations. This dataset is research tooling.
Example
User: "What's the latest CPI print and when did it come out?"
check_health.py->all_checks_passed: truequery_as_of.py --as-of <today> --series FRED:CPIAUCSL --history 2 --json- Answer: "CPI (CPIAUCSL, index) for August 2025 is 323.4, available from 2025-09-14 under the catalog's 14-day release lag. The previous print (July) was 322.1." (Values illustrative.)
Установить macro-data-query в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл macro-data-query?
Answer questions about macro and market indicators (liquidity, inflation, yield curve, VIX, crypto dominance, stablecoin supply, gold) from the local, health-checked SQLite dataset built by this repo. Use when asked for the latest value of an indicator, what was known on a past date, how an indicator has moved, or which regime inputs are available. Always runs the health check first and only reports point-in-time values.
Как установить скилл macro-data-query?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл macro-data-query запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic