hk-stock-analysis

hk-stock-analysis is a skill for Claude Code, Codex from KCNyu/clawock. It costs 126 tokens per session (6,894 once invoked), scanned A, original, MIT.

A workspace-aware analysis workflow for Hong Kong-listed stocks. It retrieves prices, technical indicators, market comparisons, and news through a local data pipeline, then adds Hong Kong-specific investment context.

In plain words
What is it for?
Use it when asking about a Hong Kong stock ticker. It helps assess price trends, RSI and moving averages, news, Southbound flows, the Hang Seng Tech direction, leveraged ETF decay, and other Hong Kong market risks.
Why use it?
It provides a defined data-source fallback process and checks the surrounding portfolio and workspace rules before forming an analysis.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it when asking about a Hong Kong stock ticker. It helps assess price trends, RSI and moving averages, news, Southbound flows, the Hang Seng Tech direction, leveraged ETF decay, and other Hong Kong market risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kcnyu/clawock/hk-stock-analysis
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 KCNyu/clawock --skill hk-stock-analysis
Clone the repo
git clone --depth 1 https://github.com/KCNyu/clawock

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 hk-stock-analysis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kcnyu/clawock/hk-stock-analysis"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/hk-stock-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • 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.00126 $0.06894
Opus 5.5 $0.00050 $0.02758
Sonnet 5.5 $0.00025 $0.01379
Haiku 4.5 $0.00013 $0.00689

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

Security

Grade A, and why

hk-stock-analysis scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

sp = StealthyFetcher.fetch(f"https://xueqiu.com/S/HK{TICKER}", headless=True)
skills/hk-stock-analysis/SKILL.md · 269 lines

How it starts

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

HK Stock Analysis

Workspace-native Hong Kong stock analyst. Uses the local fetch pipeline for live price + 恒指/恒科 baseline, then layers HK-specific analysis.

Required reads before answering

For interactive questions (Modes 1-5). Direct chat already has MEMORY.md and TOOLS.md injected — use them rather than rereading. Cron Modes 6/7 follow their payload instead: isolated cron does not inject MEMORY.md, and what those runs must obey is in the payload, the Mode section and the postflight gate.

In this order:

  1. /root/.openclaw/workspace/MEMORY.md — data rules, traps, 00100-only-Tencent warning
  2. /root/.openclaw/workspace/TOOLS.md — HK fallback chain detail, skill routing
  3. /root/.openclaw/workspace/INVESTMENT_SOP.md — standard startup sequence
  4. /root/.openclaw/workspace/portfolio.json — if the ticker is in the active book

Data source rule (non-negotiable)

Default path — use the workspace script, not web search:

# Full analysis: refreshes price + 恒指/恒科基准 + RSI/MA + Finnhub news + signal
/root/.local/bin/clawock analyze-hk {TICKER}
/root/.local/bin/clawock analyze-hk {TICKER} --no-news    # skip news
/root/.local/bin/clawock analyze-hk --no-fetch            # use cached, analysis only

HK fallback chain (inside script):

  1. Tencent qt.gtimg.cn/q=r_hk{CODE} — primary; batch first, then single-code retry for misses
  2. Eastmoney HK push2.eastmoney.com/.../ulist.np/get (secid prefix 116) — requested for every ticker as an independent batch, even when Tencent succeeded. When both succeed, prefer Tencent but compare c and pc; divergence >1% is persisted as holding quote_divergence, disclosed in data_source, and surfaced as an integrity QUOTE_DIVERGENCE WARN (also printed on stdout); a fresh quote clears the prior verdict when no divergence is reported. When Tencent misses, Eastmoney is the first fallback.
  3. stooq.com CSV — only for tickers still unresolved; same-day OHLCV; caveat: new IPOs (e.g. 00100) not covered, prev_close approximated from open
  4. yfinance — only for tickers still unresolved; frequently rate-limited, last-resort fallback

Read the full file on GitHub · 269 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 Changed 94364bee07d2
  2. 7d ago Changed · +3 lines b5cf8f18df65
  3. 14d ago Changed 740749b86fec
  4. 15d ago Changed · -8 lines 28e8408cfea5
  5. 18d ago Changed 49ffe415990b
  6. 21d ago Changed · +2 lines 2022acc7ef5a
  7. 25d ago Changed d7a8d9031ba6
  8. 26d ago Changed · +1 lines cf13a6817e62
  9. 27d ago Changed 7a15a761fd44
  10. 28d ago First seen · 271 lines · 126 tokens per session scan A 343df8ca5902

Subscribe to this mod's changes

hk-stock-analysis is a skill published in the GitHub repository KCNyu/clawock (21 stars, last pushed today), licensed MIT. It adds 126 tokens to every session and 6,894 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

company-finance

Run finance for a PenguinHarness organization — set and adjust monthly budgets along the reporting line, audit spend daily with penguin org finance and penguin cost, explain budget alerts in the all-hands channel with savings proposals, and handle budget pauses.

Prism-Shadow/penguin-harness · 53 tokens

tushare

A Python interface to Tushare, a financial-data service providing market, company, fund, futures, and other finance-related data. It shows how to authenticate and query the service into pandas tables.

skloxo/TideTrading · 79 tokens

credit-analysis

A framework for analysing bonds and other fixed-income investments, including issuer credit quality, interest-rate sensitivity, credit spreads, and default risk. A credit rating estimates how likely an issuer or specific bond is to repay its debt.

skloxo/TideTrading · 36 tokens

vibe-trading

Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158/alpha101/gtja191/academic), options pricing, 79 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest →…

skloxo/TideTrading · 139 tokens

quant-statistics

Quantitative statistical methods: ADF unit-root / cointegration tests, GARCH volatility modeling, regression diagnostics (heteroskedasticity / autocorrelation), Bootstrap, and hypothesis testing.

skloxo/TideTrading · 41 tokens

risk-analysis

Risk measurement and stress testing — VaR/CVaR/max drawdown calculation, Monte Carlo simulation, extreme-value tail-risk analysis, and historical scenario stress testing.

skloxo/TideTrading · 35 tokens