Agent skill

Fred Macro

by gauss314 in gauss314/skills

API gratuita de la Reserva Federal (FRED): 840K+ series macroeconómicas (GDP, CPI, tasas, empleo, M2, VIX, treasuries).

MITAuto-check passedData & Analytics

Install Fred Macro

skills CLI
$ npx skills add gauss314/skills --skill fred-macro -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install gauss314/skills fred-macro --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/gauss314/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/fred-macro .claude/skills/fred-macro && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fred-macro
GitHub stars
246
Token cost
~2.2k tokens
SKILL.md length
669 words
Files
6 (incl. scripts, references)
Skills in repo
32
Repo updated
First seen
Licence
MIT

At a glance

API gratuita de la Reserva Federal (FRED): 840K+ series macroeconómicas (GDP, CPI, tasas, empleo, M2, VIX, treasuries).

  • Works in 3 steps: Descargar una serie (Python) → Buscar series por palabra clave → Usando pandas
  • Data & Analytics work in your project
  • SKILL.md covers Autenticación, Rate Limits, Endpoints Principales and Formato de Respuesta, plus 5 more sections
  • Runs Python scripts from its folder; reaches api.stlouisfed.org; needs API_KEY and FRED_API_KEY

What it does

Fred Macro is an agent skill from gauss314/skills. API gratuita de la Reserva Federal (FRED): 840K+ series macroeconómicas (GDP, CPI, tasas, empleo, M2, VIX, treasuries).

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/API_REFERENCE.md`, `references/SERIES_REFERENCE.md` and `scripts/download_multiple.py`).

It sits in Data & Analytics. The repository describes itself as: Financial market data consumption skills for claude code and AI agents. The licence is MIT.

When your agent uses it

  • Data & Analytics work in your project

Example prompts

  • “/fred-macro”

Requirements

  • Python 3
  • A credential in API_KEY
  • A credential in FRED_API_KEY

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Descargar una serie (Python)
  2. Buscar series por palabra clave
  3. Usando pandas

What it can do on your machine

Read from SKILL.md and the folder at commit 5156f81. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.stlouisfed.org

    Also links to:

    • fred.stlouisfed.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY
    • FRED_API_KEY
    • TU_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fred Macro loads about 2.2k tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 33 tokens; SKILL.md has 669 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from gauss314/skills at commit 5156f81, republished under its MIT licence (© gauss314). 669 words, ~2,165 tokens.

Download SKILL.mdSave it as .claude/skills/fred-macro/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
fred-macro
description
API gratuita de la Reserva Federal (FRED): 840K+ series macroeconómicas (GDP, CPI, tasas, empleo, M2, VIX, treasuries).
license
MIT
metadata.category
finanzas, api, macroeconomia, federal-reserve, eeUU
metadata.language
es
metadata.source
https://fred.stlouisfed.org/docs/api/fred/

FRED Macro — Federal Reserve Economic Data API

API gratuita y oficial de la Reserva Federal de St. Louis (FRED) con 840,000+ series temporales macroeconómicas: PIB, inflación (CPI/PCE), tasas de interés, empleo, M2, VIX, treasuries, hipotecas y más.

Base URL: https://api.stlouisfed.org/fred Documentación oficial: fred.stlouisfed.org/docs/api/fred/


Autenticación

Obtener API Key (GRATIS)
  1. Ir a: https://fred.stlouisfed.org/docs/api/api_key.html
  2. Crear cuenta gratuita (email + contraseña)
  3. Solicitar API key (se genera instantáneamente)
  4. No requiere tarjeta de crédito
Usar la API Key
python
import os
API_KEY = os.getenv("FRED_API_KEY")  # Recomendado
# o directamente para pruebas:
# API_KEY = "TU_API_KEY_AQUI"

⚠️ NUNCA hardcodear la API key en código compartido/commits.


Rate Limits

LímiteValor
Requests por minuto120 req/min
Requests por díaIlimitado (sin límite diario explícito)
Máx observaciones por request100,000
Máx series por requestDepende del endpoint (generalmente 1)
CostoCompletamente GRATIS
Recomendaciones
  • Cachear respuestas localmente (los datos macroeconómicos cambian con poca frecuencia)
  • Usar observation_start y observation_end para limitar rangos
  • Implementar retry con backoff si se recibe HTTP 429 (Too Many Requests)
  • Para descargar muchas series, intercalar 0.5s entre requests

Endpoints Principales

Series y Observaciones
EndpointDescripciónAuth
GET /fred/series/observationsValores históricos de una serieAPI Key
GET /fred/series/searchBuscar series por textoAPI Key
GET /fred/seriesMetadatos de una serieAPI Key
GET /fred/series/categoriesCategorías de una serieAPI Key
GET /fred/series/releaseRelease asociado a una serieAPI Key
Categorías y Releases
EndpointDescripción
GET /fred/categoryInformación de una categoría
GET /fred/category/childrenSubcategorías
GET /fred/category/relatedCategorías relacionadas
GET /fred/category/seriesSeries en una categoría
GET /fred/releaseInformación de un release
GET /fred/release/datesFechas de un release
GET /fred/release/seriesSeries en un release
Tags (etiquetas)
EndpointDescripción
GET /fred/tagsBuscar tags
GET /fred/related_tagsTags relacionados
GET /fred/tags/seriesSeries con un tag específico
GET /fred/series/tagsTags de una serie
Fuentes (Sources)
EndpointDescripción
GET /fred/sourcesLista de fuentes de datos
GET /fred/sourceInformación de una fuente
Mapas de Calendario
EndpointDescripción
GET /fred/series/updatesSeries actualizadas recientemente
GET /fred/seasonal/adjustmentsOpciones de ajuste estacional

Formato de Respuesta

Por defecto devuelve XML. Se puede cambiar con &file_type=json:

json
{
  "realtime_start": "2026-06-01",
  "realtime_end": "2026-06-01",
  "observation_start": "1954-07-01",
  "observation_end": "2026-06-01",
  "units": "lin",
  "count": 864,
  "observations": [
    {
      "realtime_start": "2026-06-01",
      "realtime_end": "2026-06-01",
      "date": "1954-07-01",
      "value": "."
    },
    {
      "realtime_start": "2026-06-01",
      "realtime_end": "2026-06-01",
      "date": "1954-10-01",
      "value": "126.8"
    }
  ]
}

Nota: valores "." indican dato no disponible (N/A).


Categorías de Series

Las series FRED están organizadas en categorías (ids numéricos):

IDCategoríaEjemplos
0Todas las categorías (raíz)—
32991Population, Employment, & Labor MarketsUNRATE, PAYEMS, NFP
32992National Income & Product AccountsGDP, GDPC1, GNP
32993Consumer Price Indexes (CPI)CPIAUCSL, CPILFESL
32994Producer Price Indexes (PPI)PPIACO, PPIFIS
32995Interest RatesFEDFUNDS, DGS10, DGS2
32996Money, Banking, & FinanceM2SL, M1SL, TOTBKCR
32997International TradeBOPGSTB
33000U.S. Regional DataEstadísticas estatales
33001Academic DataDatos académicos

Ver referencia completa en references/SERIES_REFERENCE.md.


Show full SKILL.md (262 more words)Show less

Uso Rápido

1. Descargar una serie (Python)
python
import requests

API_KEY = "TU_API_KEY"
url = "https://api.stlouisfed.org/fred/series/observations"
params = {
    "series_id": "GDP",
    "api_key": API_KEY,
    "file_type": "json",
    "observation_start": "2020-01-01",
    "observation_end": "2025-12-31"
}
r = requests.get(url, params=params)
data = r.json()
for obs in data["observations"]:
    if obs["value"] != ".":
        print(obs["date"], obs["value"])
2. Buscar series por palabra clave
python
params = {
    "api_key": API_KEY,
    "file_type": "json",
    "search_text": "inflation",
    "search_type": "full_text",  # o "series_id"
    "limit": 10
}
r = requests.get("https://api.stlouisfed.org/fred/series/search", params=params)
3. Usando pandas
python
import pandas as pd
import requests

def fetch_fred(series_id, api_key, start="2020-01-01"):
    url = "https://api.stlouisfed.org/fred/series/observations"
    params = {"series_id": series_id, "api_key": api_key,
              "file_type": "json", "observation_start": start}
    r = requests.get(url, params=params)
    df = pd.DataFrame(r.json()["observations"])
    df["date"] = pd.to_datetime(df["date"])
    df["value"] = pd.to_numeric(df["value"], errors="coerce")
    return df.set_index("date")["value"]

gdp = fetch_fred("GDP", API_KEY)
cpi = fetch_fred("CPIAUCSL", API_KEY)
fedfunds = fetch_fred("FEDFUNDS", API_KEY)

Scripts Disponibles

ScriptDescripción
fetch_series.pyDescarga una o más series FRED en CSV/JSON/Parquet
search_series.pyBusca series FRED por texto, categoría o tag
download_multiple.pyDescarga batches de series predefinidas por categoría

Series Esenciales (Headlines)

SerieDescripciónFrecuencia
GDPPIB Nominal (Billions $)Trimestral
GDPC1PIB Real (Billions chained $)Trimestral
CPIAUCSLIPC General (CPI All Items)Mensual
CPILFESLIPC Subyacente (Core CPI)Mensual
PCEPILFEPCE Subyacente (Core PCE)Mensual
FEDFUNDSTasa de Fondos FederalesDiaria
DFFTasa de Fondos Federales (efectiva)Diaria
DGS10Treasury a 10 añosDiaria
DGS2Treasury a 2 añosDiaria
T10Y2YSpread 10y-2y (curva invertida)Diaria
UNRATETasa de DesempleoMensual
PAYEMSNóminas no agrícolas (Nonfarm Payrolls)Mensual
M2SLM2 Money SupplyMensual
M1SLM1 Money SupplyMensual
VIXCLSVIX (volatilidad S&P 500)Diaria
BAA10YSpread BAA - 10y (credit spread)Diaria
TOTALSAVentas MinoristasMensual
INDPROProducción IndustrialMensual
HOUSTViviendas IniciadasMensual
MORTGAGE30USTasa Hipoteca 30 añosSemanal

Referencia completa: references/SERIES_REFERENCE.md (100+ series documentadas).


Buenas Prácticas

  1. Cachear datos: los datos macro no cambian frecuentemente; guardar en Parquet/CSV local
  2. Usar file_type=json: más fácil de parsear que XML
  3. Filtrar por fecha: usar observation_start para evitar descargar historia innecesaria
  4. Manejar valores ".": representan datos no disponibles (NaN)
  5. Rate limiting: 120 req/min = 1 request cada 0.5s como mínimo
  6. API Key: usar variable de entorno FRED_API_KEY
  7. Citar fuente: obligatorio incluir "This product uses the FRED API but is not endorsed or certified by the Federal Reserve Bank of St. Louis" en apps comerciales

© gauss314, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/fred-macro of gauss314/skills.

  • SKILL.md
  • references/API_REFERENCE.md
  • references/SERIES_REFERENCE.md
  • scripts/download_multiple.py
  • scripts/fetch_series.py
  • scripts/search_series.py

Open the folder on GitHubat commit 5156f81

Compare with similar skills

Fred Macro next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fred Macro compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fred Macro this skillgauss314/skills246—~2.2kAutomated safety check: PassMIT
Exploratory Data Analysisspacering-net/codeg3.8k15 repos~3.6kAutomated safety check: PassMIT
MatplotlibzLanqing/codex-claude-academic-skills4.6k18 repos~2.9kAutomated safety check: PassMIT
Scikit LearnzLanqing/codex-claude-academic-skills4.6k17 repos~3.9kAutomated safety check: PassBSD-3-Clause
Chart Visualizationbytedance/deer-flow83k2 repos~840Automated safety check: PassMIT
TimesFM Forecastinggoogle-research/timesfm34k—~4.7kAutomated safety check: PassApache-2.0

Similar skills

  • Exploratory Data Analysis

    spacering-net/codeg

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    3.8k GitHub starsUsed in 15 repos~3.6k tokens
    Data & AnalyticsAuto-check passed
  • Matplotlib

    zLanqing/codex-claude-academic-skills

    Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 18 repos~2.9k tokens
    Data & AnalyticsAuto-check passed
  • Scikit Learn

    zLanqing/codex-claude-academic-skills

    Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 17 repos~3.9k tokens
    Data & AnalyticsAuto-check passed
  • Chart Visualization

    bytedance/deer-flow

    Picks a suitable chart type from 26 options for your data, maps the data to that chart's parameters and generates a chart image through a JavaScript script.

    83k GitHub starsUsed in 2 repos~840 tokens
    Data & AnalyticsAuto-check passed
  • TimesFM Forecasting

    google-research/timesfm

    Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.

    34k GitHub stars~4.7k tokensUpdated 9 days ago
    Data & AnalyticsAuto-check passed
  • Sandbox Bench

    vercel/next.js

    Official

    Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…

    143k GitHub stars~4.1k tokensUpdated today
    Data & AnalyticsAuto-check passed

More from gauss314/skills

All 32 skills in this repo
  • Backtesting

    gauss314/skills

    Academic backtesting framework for quantitative research. An agent skill from gauss314/skills.

    246 GitHub stars~2.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Google Finance

    gauss314/skills

    Datos de Google Finance via batchexecute (API RPC interna sin auth ni API key).

    246 GitHub stars~3.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Historyofmarket

    gauss314/skills

    History of Market (historyofmarket.com) — API publica con 88 datasets historicos de indices US desde 1871.

    246 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Indec

    gauss314/skills

    Datos macro y sociales de Argentina via la API oficial Series de Tiempo del Estado (apis.datos.gob.ar/series).

    246 GitHub stars~3k tokensUpdated 3 mo ago
    Auto-check passed
  • Morningstar

    gauss314/skills

    Morningstar Screener via API JSON publica: descarga masiva de 53 universes (102K+ listings, 39 paises, NYSE/Nasdaq/BCBA/etc) con 33 campos (precio, market cap, ratios, retornos…

    246 GitHub stars~2.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Option Pricing

    gauss314/skills

    Pricing completo de opciones europeas y americanas. An agent skill from gauss314/skills.

    246 GitHub stars~4.7k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Fred Macro

What does Fred Macro do?

API gratuita de la Reserva Federal (FRED): 840K+ series macroeconómicas (GDP, CPI, tasas, empleo, M2, VIX, treasuries). Fred Macro is an agent skill from gauss314/skills. API gratuita de la Reserva Federal (FRED): 840K+ series macroeconómicas (GDP, CPI, tasas, empleo, M2, VIX, treasuries).

When should I use Fred Macro?

Fred Macro fits situations like: data & Analytics work in your project.

How do I install Fred Macro in Claude Code?

Run `npx skills add gauss314/skills --skill fred-macro -a claude-code`. Or copy the skill folder (skills/fred-macro in gauss314/skills) into .claude/skills/fred-macro in your project. Claude Code loads it when a task matches its description.

How do I install Fred Macro in Codex?

Run `npx skills add gauss314/skills --skill fred-macro -a codex`. Or copy the skill folder (skills/fred-macro in gauss314/skills) into .agents/skills/fred-macro in your project. Codex loads it when a task matches its description.

Can I use Fred Macro in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add gauss314/skills --skill fred-macro -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fred-macro, .gemini/skills/fred-macro, .github/skills/fred-macro and .opencode/skills/fred-macro in your project.

What does Fred Macro need to run?

Going by SKILL.md and its folder, Fred Macro needs Python for the scripts in its folder and credentials named API_KEY, FRED_API_KEY and TU_API_KEY. Our summary lists: Python 3; A credential in API_KEY; A credential in FRED_API_KEY.

Does Fred Macro access the network?

SKILL.md names 2 domains. In commands or code: api.stlouisfed.org; the agent is likely to contact it when it follows the instructions. As links in the text: fred.stlouisfed.org. This is read from the text; nothing was executed.

Is Fred Macro safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Fred Macro use?

Fred Macro is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fred Macro use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.6k tokens, read only when the agent opens those files.

What are the alternatives to Fred Macro?

Skills that share tags, products or a category with Fred Macro: Exploratory Data Analysis (spacering-net/codeg, 3.8k stars), Matplotlib (zLanqing/codex-claude-academic-skills, 4.6k stars), Scikit Learn (zLanqing/codex-claude-academic-skills, 4.6k stars) and Chart Visualization (bytedance/deer-flow, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fred Macro?

gauss314 (a GitHub user) maintains it in gauss314/skills, which has 246 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on June 14, 2026.

Source: gauss314/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.