sentiment-analysis

sentiment-analysis is a skill for Claude Code, Codex from HKUDS/Vibe-Trading. It costs 41 tokens per session (2,975 once invoked), scanned A, original, MIT.

A market-sentiment analysis framework that measures whether investors appear fearful or greedy. It combines indicators such as volatility, price momentum, options activity, leveraged money, foreign flows, and social-media discussion.

In plain words
What is it for?
Use it to assess crypto or Chinese-stock sentiment, calculate fear-and-greed measures, interpret put-call ratios, and combine sentiment indicators.
Why use it?
It turns a subjective market mood into measurable inputs that can be compared over time. This can help identify unusually optimistic or pessimistic conditions, though sentiment may be used as a contrarian signal.

Skill for Claude CodeCodex

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

Good fit Use it to assess crypto or Chinese-stock sentiment, calculate fear-and-greed measures, interpret put-call ratios, and combine sentiment indicators.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/vibe-trading/sentiment-analysis
About the project

Vibe-Trading is a personal trading agent that gives an AI system tools for market analysis, algorithmic trading, backtesting, and related workflows. It is for users who want an agent to research and evaluate trading strategies or manage simulated and other trading activities. The catalogue contains skills that expose these trading capabilities to compatible agents.

HKUDS/Vibe-Trading · 33,177 stars · on GitHub · vibetrading.wiki

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 HKUDS/Vibe-Trading --skill sentiment-analysis
Clone the repo
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading

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 sentiment-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/vibe-trading/sentiment-analysis/github.svg)](https://agentmods.dev/skills/hkuds/vibe-trading/sentiment-analysis)
Your own site
<a href="https://agentmods.dev/skills/hkuds/vibe-trading/sentiment-analysis"><img src="https://agentmods.dev/badge/skills/hkuds/vibe-trading/sentiment-analysis/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 sentiment-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/vibe-trading/sentiment-analysis"><img src="https://agentmods.dev/badge/skills/hkuds/vibe-trading/sentiment-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,975 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00041 $0.02975
Opus 5 $0.00020 $0.01488
Sonnet 5 $0.00008 $0.00595
Haiku 4.5 $0.00004 $0.00298

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

Security

Grade A, and why

sentiment-analysis 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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

agent/src/skills/sentiment-analysis/SKILL.md · 274 lines

How it starts

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

市场情绪分析

概述

量化市场情绪,将主观的"贪婪与恐惧"转化为可衡量的指标。覆盖恐贪指数、期权情绪、杠杆资金、外资流向和社交舆情五大维度。情绪指标常作为反向指标使用。

恐贪指数

加密恐贪指数(Crypto Fear & Greed Index)

分值范围: 0-100

| 分值 | 情绪状态 | 历史信号 |
|------|---------|---------|
| 0-20 | 极度恐惧 | 底部区域(逆向买入)|
| 20-40 | 恐惧 | 偏底部 |
| 40-60 | 中性 | 观望 |
| 60-80 | 贪婪 | 偏顶部 |
| 80-100 | 极度贪婪 | 顶部区域(逆向卖出)|

构成因子:
- 波动率 (25%): BTC 30天/90天波动率
- 市场动量 (25%): BTC价格 vs MA(30/90)
- 社交媒体 (15%): Twitter/Reddit情绪词频
- 调查 (15%): 投资者调查
- 比特币市占率 (10%): BTC Dominance
- Google趋势 (10%): "Bitcoin"搜索热度

A股恐贪指标

A股没有统一的恐贪指数,用以下组合替代:

指标 数据源 极度恐惧 极度贪婪
上证换手率 交易所 <0.5% >2.5%
涨停家数/跌停家数 行情数据 <0.3 >5.0
新增开户数(周) 中登 <20万 >100万
融资余额变化(月) 交易所 净流出>500亿 净流入>1000亿
ETF净申购 基金数据 宽基ETF净申购(抄底) 净赎回(获利了结)

恐贪指数使用方法

核心原则: 别人恐惧时贪婪,别人贪婪时恐惧

实操:
1. 极度恐惧(<20): 分批建仓信号
   - 不要一次性全仓,分3-5批
   - 确认有基本面支撑(不是暴雷导致的恐惧)

2. 极度贪婪(>80): 逐步减仓信号
   - 不要做空(趋势可能持续)
   - 减仓到安全水位(如从80%仓位降到50%)

3. 中性区间: 情绪指标失效,看其他因素

Put-Call Ratio

定义与解读

Put-Call Ratio = Put期权成交量 / Call期权成交量

| PCR | 含义 | 信号(反向指标)|
|-----|------|----------------|
| > 1.5 | 极度看空情绪 | 看多(恐惧过度)|
| 1.0-1.5 | 偏空 | 偏多 |
| 0.7-1.0 | 中性 | 无明确信号 |
| 0.5-0.7 | 偏多 | 偏空 |
| < 0.5 | 极度看多情绪 | 看空(贪婪过度)|

不同市场PCR参考

市场 数据源 正常范围 极端区间
美股(CBOE) VIX期权 0.7-1.2 <0.5 或 >1.5
A股(上证50ETF) 上交所 0.5-1.5 <0.3 或 >2.0
BTC(Deribit) Deribit 0.3-0.8 <0.2 或 >1.2

PCR与VIX配合使用

PCR高 + VIX高 = 极度恐慌(强烈看多反转信号)
PCR低 + VIX低 = 极度自满(警惕黑天鹅)
PCR高 + VIX低 = 对冲需求(机构在保护多头)
PCR低 + VIX高 = 矛盾信号(需要更多确认)

融资融券信号(A股)

融资余额分析

融资 = 借钱买股(看多杠杆)
融券 = 借股卖出(看空杠杆)

融资余额指标:
- 绝对值: 反映杠杆资金总量(2024年约1.5-1.8万亿)
- 变化率: 周环比/月环比,方向比绝对值重要
- 占比: 融资余额/A股总市值,通常2-3%

融资融券信号

指标 看多信号 看空信号
融资余额 底部企稳后连续增加 高位加速增加(过热)
融资净买入 连续5天净买入 连续5天净卖出
融券余额 大幅增加后减少(空头回补) 突然大增(有人做空)
融资/融券比 比值回落后反弹 极端高位(杠杆过高)

融资余额历史阈值(A股)

2015年牛市顶部: 2.27万亿(极端)
2018年熊市底部: 0.76万亿
2020年正常区间: 1.0-1.2万亿
2024年正常区间: 1.4-1.8万亿

经验法则: 融资余额月增>10% → 过热警示
          融资余额月减>10% → 恐慌警示

Read the full file on GitHub · 274 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. 8d ago First seen · 274 lines · 41 tokens per session scan A 1b0dbc016c4a

Subscribe to this mod's changes

sentiment-analysis is a skill published in the GitHub repository HKUDS/Vibe-Trading (33,177 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 2,975 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

hyperliquid

Use when backtesting, deploying, checking funding readiness, or debugging a Hyperliquid strategy through Superior Trade Unified API — writing Freqtrade configs and strategy code, running sweeps, checking managed-wallet balances, trading HIP-3 perps, or diagnosing a deployment that will not start or trade.

Superior-Trade/superior-skills · 64 tokens

polymarket

Use when the user wants to trade, research, or backtest Polymarket prediction markets through Superior Trade — finding markets by slug or event URL, placing a single immediate market order, writing NautilusTrader strategies, running filled-data backtests, funding pUSD, or deploying and monitoring a live Polymarket…

Superior-Trade/superior-skills · 68 tokens

aerodrome

Use when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through the Superior Trade API, especially Freqtrade configs using exchange.name "aerodrome", AERO/USDC or CHECK/USDC pairs, AMM market swaps, wallet/gas balance checks, no-orderbook pricing, or…

Superior-Trade/superior-skills · 83 tokens

backtesting

Use when running, interpreting, or designing backtests on Superior Trade — anything about backtest windows, trade-count thresholds, exit-reason mix, parameter sweeps, walk-forward validation, zero-trade diagnosis, compute-cost estimation, or "is this backtest result trustworthy?". Pair with the relevant strategy…

Superior-Trade/superior-skills · 73 tokens

basis-arb

Use when the user asks for spot-perp basis trade, basis arbitrage, cash-and-carry, perp discount, or any setup that reads the spot–perp basis as a positioning signal. Long-perp leg only — pure two-leg basis arb requires a paired spot short (or long) which Freqtrade can't run cleanly. The strategy below captures the…

Superior-Trade/superior-skills · 87 tokens

fees-optimizations

Use when the user asks about fees, fee optimization, slippage, maker vs taker, post-only or ALO orders, fee tiers, builder code fees, effective spread, order pricing, lowering trading costs, or why a live Hyperliquid Freqtrade strategy underperforms its backtest. Also use proactively for high-turnover designs (5m or…

Superior-Trade/superior-skills · 94 tokens