analyze-us-bank-credit-deposit-decoupling

analyze-us-bank-credit-deposit-decoupling is a skill for Claude Code, Codex from fatfingererr/macro-skills. It costs 76 tokens per session (2,836 once invoked), scanned A, original, MIT.

A study of whether U.S. commercial-bank loans and deposits are growing together. Deposits are money held in bank accounts, while the analysis tracks when loan growth continues without a similar rise in deposits.

In plain words
What is it for?
Use it to download weekly data from FRED, measure cumulative loan and deposit changes, calculate the gap between them, track the largest deposit decline and recovery, and produce layered signals.
Why use it?
It helps show how Federal Reserve tightening, including quantitative tightening, affects banks’ funding and the wider flow of money. The deposit shortfall can reveal stress that loan totals alone do not show.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is --output ../../output/decoupling_$(date +%Y-%m-%d).json.

Good fit Use it to download weekly data from FRED, measure cumulative loan and deposit changes, calculate the gap between them, track the largest deposit decline and recovery, and produce layered signals.

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/fatfingererr/macro-skills
agentmods
npx agentmods add skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin analyze-us-bank-credit-deposit-decoupling/plugin install analyze-us-bank-credit-deposit-decoupling 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-us-bank-credit-deposit-decoupling

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling/github.svg)](https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling)
Your own site
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling/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-us-bank-credit-deposit-decoupling

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/analyze-us-bank-credit-deposit-decoupling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,836 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.00076 $0.02836
Opus 5 $0.00038 $0.01418
Sonnet 5 $0.00015 $0.00567
Haiku 4.5 $0.00008 $0.00284

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

Security

Grade A, and why

analyze-us-bank-credit-deposit-decoupling 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 2 executable files (scripts/decoupling_analyzer.py, scripts/visualize_decoupling.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-us-bank-credit-deposit-decoupling/SKILL.md · 267 lines

How it starts

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

<essential_principles>

傳統銀行體系下,貸款創造存款:

  • 銀行發放貸款 → 借款人帳戶增加存款
  • 理論上:新增貸款 ≈ 新增存款

當這個關係「脫鉤」時:

  • 貸款持續擴張,但存款沒有等比例增加
  • 代表有「力量」在抽走體系內的存款
  • QT 環境下,資金流向貨幣市場基金、國債等

2022-2023 年 QT 週期的關鍵特徵:

  1. 存款絕對收縮期(2022 Q2 - 2023 Q1)

    • 存款累積變化一度下探至 -1.2 兆美元
    • 代表存款總量比基期(2022年6月)還少 1.2 兆
  2. 存款回升期(2023 Q2 至今)

    • 存款逐步回升,但仍遠落後貸款增量
    • 當前存款累積變化約 +0.5 兆美元
  3. 持續脫鉤

    • 貸款累積增加約 +2.1 兆美元
    • 落差(Gap)約 1.6 兆美元
指標 定義 意義
貸款累積變化 loans(t) - loans(t0) 銀行資產端擴張
存款累積變化 deposits(t) - deposits(t0) 銀行負債端變化
Decoupling Gap 貸款累積變化 - 存款累積變化 脫鉤程度
存款最大回撤 min(存款累積變化) 存款收縮最嚴重的程度
存款回撤恢復比率 (當前存款變化 - 最低點) / 最低點
Deposit Stress Ratio Gap / 貸款累積變化 每單位新增貸款的存款缺口比
指標 FRED Series ID 說明 公開 URL
銀行貸款總量 TOTLL Loans and Leases in Bank Credit, All Commercial Banks https://fred.stlouisfed.org/graph/fredgraph.csv?id=TOTLL
銀行存款總量 DPSACBW027SBOG Deposits, All Commercial Banks https://fred.stlouisfed.org/graph/fredgraph.csv?id=DPSACBW027SBOG

資料頻率:Weekly(週頻) 對齊方式:以最新共同日期為準

</essential_principles>

輸出三層訊號:

  1. Cumulative Changes: 貸款與存款的累積變化量
  2. Deposit Dynamics: 存款的最大回撤、回升程度、當前狀態
  3. Decoupling Assessment: 脫鉤程度評估與宏觀解讀

<quick_start>

最快的方式:使用 FRED 公開 CSV(無需 API Key)

Step 1:安裝依賴

pip install pandas numpy requests matplotlib

Step 2:執行快速分析

cd scripts
python decoupling_analyzer.py --quick

Step 3:執行完整分析(含視覺化)

python decoupling_analyzer.py \
  --start 2022-06-01 \
  --output ../../output/decoupling_$(date +%Y-%m-%d).json

Step 4:生成視覺化圖表(Bloomberg 風格面積圖)

python visualize_decoupling.py \
  --start 2022-06-01 \
  --output ../../output/credit_deposit_decoupling_$(date +%Y-%m-%d).png

輸出範例

{
  "period": "2022-06 to 2026-01",
  "cumulative_changes": {
    "loans_billion_usd": 2070.5,
    "deposits_billion_usd": 506.8,
    "gap_billion_usd": 1563.7
  },
  "deposit_dynamics": {
    "max_drawdown_billion_usd": -1200.0,
    "max_drawdown_date": "2023-04-12",
    "recovery_from_trough_billion_usd": 1706.8,
    "recovery_ratio": 1.42
  },
  "assessment": {
    "decoupling_status": "severe",
    "deposit_stress_ratio": 0.755,
    "phase": "recovery_but_lagging"
  }
}

</quick_start>

  1. 快速檢查 - 查看最新的信貸-存款脫鉤狀態
  2. 完整分析 - 執行完整分析並生成視覺化圖表
  3. 方法論學習 - 了解信貸創造脫鉤的會計邏輯與宏觀意義

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

路由後,執行對應腳本並生成視覺化圖表。

視覺化輸出:信貸-存款脫鉤面積圖

採用 Bloomberg Intelligence 風格,參考 FRED 原生圖表設計:

圖表特徵

  1. 面積圖(Area Chart):清楚顯示累積變化的體量
  2. 藍色面積:貸款累積變化(Loans & Leases)
  3. 紅色面積:存款累積變化(Deposits)
  4. 0 軸線:清楚標示基準線
  5. 數值標註:最新數值標示在圖表右側

Read the full file on GitHub · 267 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 · 267 lines · 76 tokens per session scan A c1f1db4252ed

Subscribe to this mod's changes

analyze-us-bank-credit-deposit-decoupling is a skill published in the GitHub repository fatfingererr/macro-skills (3 stars, last pushed 7mo ago), licensed MIT. It adds 76 tokens to every session and 2,836 once invoked, about $0.0004 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