macro-briefing

macro-briefing is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 48 tokens per session (1,056 once invoked), scanned A, original, MIT.

A tool that collects financial market prices and historical OHLCV data—open, high, low, close, and volume—for currencies, indices, commodities, energy, and crypto. It stores the data in SQLite and can report snapshots or currency-strength rankings.

In plain words
What is it for?
Use it to fetch price snapshots, backfill historical market data, query OHLCV bars, rank currency strength, and inspect database statistics.
Why use it?
It provides a repeatable local source for market data instead of collecting individual prices manually. Stored history makes it easier to query recent bars and compare instruments.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/collect.py && python3 scripts/briefing.py --format telegram.

Good fit Use it to fetch price snapshots, backfill historical market data, query OHLCV bars, rank currency strength, and inspect database statistics.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex
agentmods
npx agentmods add skills/jansenanalytics/claudex/macro-briefing

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 macro-briefing

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/macro-briefing.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/macro-briefing)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/macro-briefing"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/macro-briefing.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 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.00048 $0.01056
Opus 5 $0.00024 $0.00528
Sonnet 5 $0.00010 $0.00211
Haiku 4.5 $0.00005 $0.00106

Measured 3d ago against content hash 3c5943ebda1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

macro-briefing 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 3d 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.

skills/macro-briefing/SKILL.md · 115 lines

How it starts

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

Macro Briefing

Quick Start

Collect + brief (one-liner)

SKILL_DIR="$(dirname "$(realpath "$0")")/.."  # resolve from scripts/
python3 scripts/collect.py && python3 scripts/briefing.py --format telegram

Collect only (stores to DB)

python3 scripts/collect.py --db data/macro.db

Generate briefing from latest DB snapshot

python3 scripts/briefing.py --format telegram --session europe

Scripts

scripts/collect.py — Data Collector

Fetches all market data via yfinance + economic calendar via FairEconomy API. Stores in SQLite (data/macro.db by default). No API keys required.

Flags:

  • --db PATH — custom DB path (default: data/macro.db)
  • --no-db — skip DB storage, just collect
  • --json — output raw JSON to stdout

Dependency: pip3 install yfinance (pandas, curl_cffi auto-installed)

scripts/briefing.py — Briefing Formatter

Reads latest snapshot from DB (or JSON stdin) and formats for delivery.

Flags:

  • --format telegram|plain|json — output format
  • --session asia|europe|us — filter calendar events by session window
  • --db PATH — custom DB path
  • --stdin — read JSON from stdin instead of DB
  • --json-input PATH — read from JSON file

Formats:

  • telegram — Markdown with emoji, ready for Telegram message
  • plain — stripped plain text
  • json — structured JSON for programmatic use by other skills

scripts/query.py — Database Query API

Historical queries for analysis, backtesting, and other skills.

Commands:

  • ticker DXY --days 30 [--csv] — single ticker history
  • yields --days 60 [--csv] — yield curve history
  • spread 10y3m --days 180 — spread history
  • snapshot [--date 2026-03-01] — full snapshot (latest or by date)
  • calendar [--country USD] [--impact High] [--days 7] — economic events
  • summary --days 5 — summary stats (mean/min/max/trend)
  • export --days 365 --csv — full export for backtesting

Database

SQLite at data/macro.db. Schema in scripts/collect.py init_db().

Read the full file on GitHub · 115 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. 3d ago First seen · 115 lines · 48 tokens per session scan A 3c5943ebda1e

Subscribe to this mod's changes

macro-briefing is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 1,056 once invoked, about $0.0002 per session on Opus 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-03.

Related

Other skills, from other repositories

defeatbeta-earnings-analysis

Create professional equity research earnings update reports (8-12 pages, 3,000-5,000 words) analyzing quarterly results for companies already under coverage. Fast-turnaround format focusing on beat/miss analysis, key metrics, updated estimates, and revised thesis. Includes 1-3 summary tables and 8-12 charts. Use when…

defeat-beta/defeatbeta-api · 112 tokens

defeatbeta-earnings-preview

Build pre-earnings analysis with normalized baselines, weighted decision models, company-specific veto gates, scenario frameworks, catalysts, historical reactions, and options-implied moves. Use before a company reports quarterly earnings to prepare positioning notes or bilingual three-page PDF reports.

defeat-beta/defeatbeta-api · 60 tokens

defeatbeta-analyst

Professional financial analysis using 60+ market data APIs. Use for: company fundamentals (revenue, margins, EPS, balance sheet), valuation (P/E, P/B, P/S, PEG, DCF, intrinsic value), profitability (ROE, ROA, ROIC), growth trends (YoY revenue/earnings/FCF), earnings transcripts (key data, changes, guidance), industry…

defeat-beta/defeatbeta-api · 154 tokens

defeatbeta-earnings-key-data

Run one of three traceable earnings-call transcript templates through the DefeatBeta MCP tools: (1) extract current-quarter results plus next-quarter and full-year guidance, (2) extract factual QoQ or YoY financial-metric change sentences, or (3) extract numerical forward-looking forecast sentences with…

defeat-beta/defeatbeta-api · 138 tokens

defeatbeta-dcf

Generate a fully editable Discounted Cash Flow (DCF) valuation spreadsheet for a public company. Builds a single-sheet Excel workbook with WACC, growth estimates, 10-year FCF projections, and fair price — all wired as live formulas so users can flex discount rate or growth assumptions and see fair price update.…

defeat-beta/defeatbeta-api · 96 tokens

quicken

Read and analyze a user's local Quicken for Mac data through its Core Data SQLite database in strict read-only mode. Use when the user explicitly asks to inspect or answer questions from a Quicken for Mac file, including accounts, balances, freshness, net worth, transactions, payees, spending, cash flow, budgets…

dweekly/quicken-mac-mcp · 94 tokens