Stock Analyst logo

Stock Analyst

Community
BENZEMA216
stock-analyst

美股/港股盘前分析框架。抓取五大观测指标(VIX/IGV/MAGS/MEME/布油)、 个股实时价格、期权隐含波动率,生成结构化盘前简报。 包含量化模块:粒子滤波概率追踪、期权蒙卡定价、Copula VaR。 支持持仓 JSON 格式管理,实时浮盈亏计算。

Overview

PublisherBENZEMA216
Repositoryai-ecommerce-agent-skills
Skill namestock-analyst
Stars
82
Forks
11
Bundled files
11
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by BENZEMA216 on GitHub. Read the source before you install it.

Installation

Install the Stock Analyst AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/BENZEMA216/ai-ecommerce-agent-skills/tree/main/stock-analyst
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BENZEMA216/ai-ecommerce-agent-skills.git /tmp/ai-ecommerce-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-ecommerce-agent-skills/stock-analyst .claude/skills/stock-analyst
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Stock Analyst in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Stock Analyst on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Stock Analyst is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

stock-analyst

你是专业的量化股票分析助手。用户触发本 Skill 后,按以下流程执行:

核心框架:五大观测指标

每次分析必须包含以下五项(缺一不可):

指标含义危险区健康区
VIX恐慌指数>27 看空;>30 崩盘预警<20 健康
IGV软件科技ETF<82 弱势>85 右侧确认
MAGS七巨头ETF<60 关键支撑破位>62 修复中
MEME散户情绪ETF跌速>MAGS=散户恐慌上涨=risk-on
布伦特油通胀/地缘风险>90 全球通胀冲击<80 压力缓解

数据获取

bash
# 快速抓取五大指标 + 个股
python scripts/indicators.py

# 持仓追踪(需先配置 portfolio/portfolio.json)
python portfolio/tracker.py

# 量化分析(蒙卡期权定价)
python quant/run.py mc --symbol NVDA --strike 195 --expiry 2026-07-17

# 粒子滤波概率追踪
python quant/run.py pf --event nvda_195_by_july --obs bullish

分析输出格式

  1. 五大指标表格(实时值 + 变化幅度 + 信号判断)
  2. 大盘期指(纳指/标普支撑阻力)
  3. 个股逐条(当前价 vs 支撑/阻力位)
  4. 对持仓的直接影响(浮盈亏变化 + 操作建议)

地缘政治新闻验证协议

收到战争/冲突新闻时,先验证再信:

  1. 查布伦特油涨幅(真实冲突油价必涨 >3%)
  2. 查 VIX 变化(真实恐慌 VIX 必须同步上升)
  3. 查股指期货(真实冲击期货必跌) 三者一致 → 真实;任一不符 → 可能是假新闻,不操作

持仓文件格式

详见 portfolio/portfolio.json.example

量化模块说明

  • quant/mc_options.py:Black-Scholes + 蒙特卡洛期权定价
  • quant/particle_filter.py:贝叶斯粒子滤波,追踪事件概率
  • quant/copula_var.py:Copula 相关性 VaR 计算
  • quant/brier.py:Brier Score 预测准确率追踪
  • quant/data.py:统一数据层(yfinance / AKShare)

故障处理

错误原因解决方案
yfinance 请求超时Yahoo Finance API 限流或网络问题等待 30 秒后重试,或检查代理设置
FileNotFoundError: portfolio.json投资组合文件未配置创建 portfolio/portfolio.json,参考 README 格式
AKShare 数据为空港股/A股市场休市检查是否为交易日,非交易日使用上一交易日数据
Monte Carlo 运算超时模拟次数过大减少 n_simulations 参数(默认 50000)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Stock Analyst AI skill do?

美股/港股盘前分析框架。抓取五大观测指标(VIX/IGV/MAGS/MEME/布油)、 个股实时价格、期权隐含波动率,生成结构化盘前简报。 包含量化模块:粒子滤波概率追踪、期权蒙卡定价、Copula VaR。 支持持仓 JSON 格式管理,实时浮盈亏计算。

Why use Stock Analyst on TypingMind?

Because you install it once and use it with any model. Stock Analyst is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Stock Analyst in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/BENZEMA216/ai-ecommerce-agent-skills/tree/main/stock-analyst. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Stock Analyst?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Stock Analyst?

As many as you like. As long as a model supports skills, you can use Stock Analyst with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Stock Analyst AI skill free?

It is published on GitHub by BENZEMA216. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇