detect-palladium-lead-silver-turns

detect-palladium-lead-silver-turns is a skill for Claude Code, Codex from fatfingererr/macro-skills. It costs 72 tokens per session (3,607 once invoked), scanned A, original, MIT.

A market-analysis method that checks whether palladium price turns lead or confirm similar turns in silver. It uses price history to distinguish supported moves from possible failed moves.

In plain words
What is it for?
It helps measure lead-lag relationships, detect turning points, test confirmation rules, and mark silver moves that later reverse or break down.
Why use it?
It helps avoid treating a silver price change as a trend when palladium does not show matching movement from industrial conditions and investor risk sentiment.

Skill for Claude CodeCodex

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

Good fit It helps measure lead-lag relationships, detect turning points, test confirmation rules, and mark silver moves that later reverse or break down.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns
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 detect-palladium-lead-silver-turns
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 detect-palladium-lead-silver-turns/plugin install detect-palladium-lead-silver-turns 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 detect-palladium-lead-silver-turns

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns/github.svg)](https://agentmods.dev/skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns)
Your own site
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns/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 detect-palladium-lead-silver-turns

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns"><img src="https://agentmods.dev/badge/skills/fatfingererr/macro-skills/detect-palladium-lead-silver-turns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,607 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.00072 $0.03607
Opus 5 $0.00036 $0.01803
Sonnet 5 $0.00014 $0.00721
Haiku 4.5 $0.00007 $0.00361

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

Security

Grade A, and why

detect-palladium-lead-silver-turns 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/palladium_lead_silver.py, scripts/plot_bloomberg_style.py, scripts/plot_palladium_silver.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/detect-palladium-lead-silver-turns/SKILL.md · 315 lines

How it starts

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

<essential_principles>

「鈀金領先白銀」的假說需要可量化驗證:

  • 以 cross-correlation 估計最佳領先滯後(lead-lag)
  • 當銀出現拐點時,檢查鈀金是否在確認窗口內先行或同步出現同向拐點
  • 未被確認的拐點視為「失敗推動」的候選
Lead-Lag = argmax(cross_correlation(pd_ret[t-k:t], ag_ret[t:t+k]))
Confirmed = pd_turn exists within [ag_turn.ts - window, ag_turn.ts + window]
方法 原理 適用場景
pivot 左右 N 根K棒內的局部極值 結構明確的趨勢
peaks scipy find_peaks + prominence 自動化密度控制
slope_change 趨勢斜率由正轉負或反之 平滑趨勢追蹤

建議從 pivot 開始,左右各 3-5 根K棒,再依需求調整。

鈀金是否「參與」銀的走勢,有多種衡量方式:

指標 定義 門檻建議
returns_corr 報酬率滾動相關係數 > 0.5
direction_agree 同向漲跌的比例 > 60%
vol_expansion 兩者波動同步擴張 σ_pd / σ_ag > 0.8
breakout_confirm 銀突破時鈀金也突破 同向突破

未達門檻時,銀的動作可能是「流動性噪音」而非趨勢確認。

將「無鈀金參與的銀動作」落地為可回測的規則:

規則 定義 後果
no_confirm_then_revert 無確認 + 銀在 N 根K內回撤過起點 標記為 failed_move
no_confirm_then_break_fail 無確認 + 銀突破後回落跌破突破點 假突破

歷史統計:未確認事件的失敗率 vs 已確認事件的成功率。

</essential_principles>

  1. 數據取得:白銀與鈀金的 OHLCV(yfinance: SI=F, PA=F)
  2. 拐點偵測:識別兩者的局部高低點(pivot / peaks / slope_change)
  3. 領先滯後估計:cross-correlation 找最佳 lag
  4. 跨金屬確認:銀的拐點是否在窗口內被鈀金同向拐點確認
  5. 失敗走勢判定:未確認的銀拐點是否符合失敗規則

輸出:確認率、失敗率、每個事件的詳細判定、風控建議。

<quick_start>

最快的方式:偵測白銀近期拐點是否被鈀金確認

cd skills/detect-palladium-lead-silver-turns
pip install pandas numpy yfinance scipy statsmodels  # 首次使用
python scripts/palladium_lead_silver.py --silver SI=F --palladium PA=F --quick

輸出範例:

{
  "symbol_pair": {"silver": "SI=F", "palladium": "PA=F"},
  "as_of": "2026-01-14",
  "timeframe": "1h",
  "estimated_pd_leads_by_bars": 6,
  "lead_lag_corr": 0.42,
  "confirmation_rate": 0.71,
  "unconfirmed_failure_rate": 0.64,
  "latest_event": {
    "ts": "2026-01-15T14:00:00Z",
    "turn": "top",
    "confirmed": false,
    "participation_ok": false,
    "failed_move": true
  }
}

完整分析

python scripts/palladium_lead_silver.py --silver SI=F --palladium PA=F --timeframe 1h --lookback 1000 --output result.json

生成 Bloomberg 風格視覺化圖表(推薦):

pip install matplotlib yfinance  # 首次使用
python scripts/plot_bloomberg_style.py --input result.json --output output/palladium_silver_2026-01-26.png

圖表特色:

  • Bloomberg 專業配色:深色背景、橙紅色白銀線、橙黃色鈀金線
  • 背景色帶標記:綠色背景 = 已確認拐點區域,紅色背景 = 未確認拐點區域(不擋住走勢線)
  • 最新事件標註:醒目標示最新拐點的確認狀態與價格
  • Pd/Ag 價格比率圖:顯示鈀金對白銀的相對價格變化,含 20 期均線
  • 滾動確認率:動態顯示確認邏輯的有效性趨勢
  • 統計面板:確認率、失敗率、總拐點數等關鍵指標
  • 行情解讀:當前狀態評估與可操作建議

傳統三合一圖表(技術分析向):

python scripts/plot_palladium_silver.py --silver SI=F --palladium PA=F --output output/

包含:

  • 銀/鈀價格疊加與拐點標記
  • 確認/未確認事件分布
  • 滾動相關係數時間序列
  • 失敗走勢統計

</quick_start>

  1. 快速偵測 - 檢查最近白銀拐點是否被鈀金確認
  2. 歷史回測 - 回溯分析跨金屬確認的有效性
  3. 持續監控 - 設定警報當出現新拐點時通知
  4. 參數調校 - 找出最佳的確認窗口與參與度門檻
  5. 方法論學習 - 了解跨金屬領先滯後的理論基礎

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

Read the full file on GitHub · 315 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 · 315 lines · 72 tokens per session scan A 71b291f6678e

Subscribe to this mod's changes

detect-palladium-lead-silver-turns is a skill published in the GitHub repository fatfingererr/macro-skills (3 stars, last pushed 7mo ago), licensed MIT. It adds 72 tokens to every session and 3,607 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