analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios

analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios is a skill for Claude Code, Codex from fatfingererr/macro-skills. It costs 129 tokens per session (4,500 once invoked), scanned A, original, MIT.

A scenario-analysis tool for estimating how the US budget deficit might change when the job market weakens while the economy remains large or keeps growing. It also examines possible effects on long-term US government bond supply and interest-rate risk, with charts.

In plain words
What is it for?
Use it to estimate possible deficit-to-GDP ranges, classify labour-market weakening, compare current conditions with history, and explore risks for long-term US Treasury bonds.
Why use it?
It helps assess a difficult economic combination without treating weak employment as proof that overall economic output is already falling. The analysis uses past relationships and several ways to compare current conditions with historical periods.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to estimate possible deficit-to-GDP ranges, classify labour-market weakening, compare current conditions with history, and explore risks for long-term US Treasury bonds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fatfingererr/macro-skills --skill analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios
Clone the repo
git clone --depth 1 https://github.com/fatfingererr/macro-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios/plugin install analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios after adding the marketplace above.

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 analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios/github.svg)](https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios)
Your own site
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,500 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.00129 $0.04500
Opus 5 $0.00064 $0.02250
Sonnet 5 $0.00026 $0.00900
Haiku 4.5 $0.00013 $0.00450

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

Security

Grade A, and why

analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios 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 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/analyzer.py, scripts/fetch_data.py, scripts/visualizer.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios/SKILL.md · 376 lines

How it starts

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

<essential_principles>

本技能聚焦於一個特殊的宏觀情境:勞動市場明顯轉弱,但 GDP 仍處高位。這種組合歷史上常伴隨:

  • 財政赤字/GDP 的階躍式上升(自動穩定器 + 反週期支出)
  • 長天期國債供給壓力增加
  • 期限溢酬的潛在上升

關鍵洞察:「30 年歷史顯示,當 jobs 夠軟,赤字/GDP 會從 6–7% 跳到 12–17%」

核心度量方式:

  • UJO = Unemployed_Level / Job_Openings_Level(失業人數/職缺比)
    • 能捕捉「職缺掉很快、失業還沒上來」的早期轉弱階段
  • ΔUR = Unemployment_Rate(t) - Unemployment_Rate(t-6M)(半年變化)
  • 薩姆規則 = 3M_MA(UR) - min(UR over last 12M)(觸發式警報,≥0.5 為衰退警示)

這些指標用於定義「勞動轉弱事件」的觸發與分級(輕/中/重)。

基於 2000-2025 年歷史回歸分析的核心經濟彈性:

係數 數值 意涵
β_UR 0.59 失業率每↑1ppt → 赤字/GDP↑0.59ppt
β_UJO 0.69 UJO每↑1 → 赤字/GDP↑0.69ppt
β_JOLTS -0.07 職缺每↑1M → 赤字/GDP↓0.07ppt
Lag 4Q 勞動指標領先赤字約4季

這些彈性係數用於:

  • 情境投影的定量推演
  • 驗證事件分組區間法的結果一致性
  • 敏感度分析

詳細方法論見 references/methodology.md

「高 GDP」量化為:

  • GDP_level_percentile:GDP 水平在回看期間的分位數(例如 > 70% 視為高位)
  • GDP_growth_regime:成長仍為正、或僅小幅趨緩
  • (進階)產出缺口/趨勢偏離

只有同時滿足「勞動轉弱」+「高 GDP」條件的樣本,才納入情境分析。

模型 用途 輸出形式
event_study_banding 事件分組區間法 「12–17%」範圍型敘事,歷史事件清單
quantile_mapping 分位數映射 「現在落在歷史哪個角落」的條件分布
robust_regression 穩健迴歸推演 連續型情境路徑與區間

預設使用 event_study_banding,最貼近「歷史顯示…」的敘事方式。

本技能支援生成三軸圖表:

  • 左軸:失業人數(紅色)、職缺數(藍色)— 千人
  • 右軸:財政赤字/GDP(綠色)— 百分比
  • 標註:歷史 crossover 事件(失業 > 職缺)及對應的赤字跳升幅度
  • 情境投影:虛線顯示未來可能的路徑(mild/moderate/severe)

圖表基於 FRED 公開數據繪製,便於追蹤勞動-財政關聯的歷史演變。

本技能使用無需 API key 的公開資料來源:

  • FRED CSV: https://fred.stlouisfed.org/graph/fredgraph.csv?id={SERIES_ID}
    • 勞動:UNRATE, UNEMPLOY, JTSJOL, ICSA
    • 宏觀:GDP, GDPC1
    • 財政:FYFSGDA188S(聯邦盈餘/赤字占 GDP)
  • BEA: 備用的 GDP/財政數據源

腳本位於 scripts/ 目錄,可直接執行。

</essential_principles>

  1. 建構勞動鬆緊指標:從 FRED 數據計算 UJO、薩姆規則 等
  2. 定義背離事件:識別「勞動轉弱 + GDP 高位」的歷史樣本
  3. 推估赤字區間:使用三種模型估算 Deficit/GDP 的可能跳升區間
  4. 生成情境解讀:產出對長天期 UST 的供給/利率風險解讀
  5. 視覺化輸出:生成三軸圖表與情境投影

輸出:診斷資訊、赤字區間投影、歷史事件樣本、UST 風險解讀、視覺化圖表。

<quick_start>

最快的方式:執行預設情境分析

cd skills/analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios
pip install pandas numpy requests matplotlib  # 首次使用
python scripts/analyzer.py --quick

生成視覺化圖表(推薦)

python scripts/analyzer.py --visualize --scenario-type moderate

或直接使用視覺化腳本

python scripts/visualizer.py --scenario moderate --years 25

輸出範例:

{
  "skill": "analyze_high_unemployment_fiscal_deficit_scenarios",
  "as_of": "2026-01-21",
  "diagnostics": {
    "current_slack_percentile": 0.28,
    "high_gdp_condition": true,
    "triggered_labor_softening": false
  },
  "deficit_gdp_projection": {
    "baseline_deficit_gdp": 0.062,
    "conditional_range_next_8q": {
      "p25": 0.11, "p50": 0.135, "p75": 0.16
    },
    "n_episodes": 3
  }
}

完整情境分析 + 圖表

python scripts/analyzer.py --lookback 30 --horizon 8 --model event_study_banding --visualize --scenario-type severe --output result.json --chart-output chart.png

</quick_start>

  1. 快速診斷 - 查看目前的勞動/GDP 狀態與赤字風險判定
  2. 完整情境分析 - 執行完整的歷史事件研究與赤字區間推估
  3. 視覺化圖表 - 生成三軸圖表與情境投影
  4. 自訂情境推演 - 輸入自訂的失業衝擊情境進行推演
  5. 方法論學習 - 了解勞動-財政連結的邏輯與模型
  6. UST 風險解讀 - 生成長天期美債的供給/利率風險報告

請選擇或直接提供分析參數。

Read the full file on GitHub · 376 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. 12d ago First seen · 376 lines · 129 tokens per session scan A 9c5369dbeadc

Subscribe to this mod's changes

analyze-high-unemployment-high-gdp-growth-fiscal-deficit-scenarios is a skill published in the GitHub repository fatfingererr/macro-skills (3 stars, last pushed 7mo ago), licensed MIT. It adds 129 tokens to every session and 4,500 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens

reading-receipt

An image-reading workflow for extracting structured information from receipts, invoices, and hometown-tax donation certificates. It can first extract text from PDFs and otherwise read their images.

kazukinagata/shinkoku · 64 tokens