Invest Stock logo

Invest Stock

Community
taxueseek
invest-stock

invest系列:统一个股分析。覆盖A股/港股/美股,自动匹配分析模式。 快速判断:「分析这只股票」「看看XX公司」「这只股怎么样」「该不该买」「要不要卖」 美股量化:「分析AAPL」「美股」「NVDA」「价值投资」「ROE」「护城河」 深度研报:「深度分析」「DCF」「估值分析」「写个投资备忘录」「机构怎么看」「可比公司」「IC Memo」 数据获取:「[代码]的ROE和毛利率」「[代码]的营收和净利润」

Add to TypingMind

Overview

Publishertaxueseek
Repositorytaxue-invest
Skill nameinvest-stock
Stars
29
Forks
6
Bundled files
12
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.

  • 12 bundled files

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

  • Open source

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

Installation

Install the Invest Stock 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/taxueseek/taxue-invest/tree/main/skills/invest-stock
  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/taxueseek/taxue-invest.git /tmp/taxue-invest
mkdir -p .claude/skills
cp -r /tmp/taxue-invest/skills/invest-stock .claude/skills/invest-stock
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Invest Stock 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 Invest Stock 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 Invest Stock 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.

invest-stock:统一个股分析

买一股股票就是买一家企业的一部分。A股/港股/美股,三个市场,四种分析模式,一个入口。

模式自动选择

触发条件模式适用市场
默认(分析个股)三关审查:懂不懂→好不好→贵不贵A股/港股
美股标的 或 用户要求量化四维评分:ROE/负债/FCF/护城河 → A-D评级美股
用户说"深度分析"/"DCF"/"IC Memo"机构深度:DCF估值/同行比较/财报透视/投资备忘录全部(初筛通过后)

港A增强:分析A股/港股时自动附加政策敏感度、AH溢价、南北资金流检查。

快速识别

收到标的名称/代码后:

  1. 识别市场:A股(6位数字)→ 三关+港A增强 / 港股(5位数字)→ 三关+港A增强 / 美股(字母代码)→ 四维评分
  2. 识别深度:用户是否说「深度」「DCF」「IC Memo」「机构」→ 机构深度模式
  3. 开始分析

数据获取

统一走 mx-data 数据层,不直接调用 API:

bash
# 取股票数据
python3 ~/.agents/skills/mx-data/scripts/get_data.py --type stock --code <代码> --metrics ["ROE","PE","revenue","net_profit"]

取数后按下方方法论分析,不暴露数据源细节给用户。

模式 1:三关审查(默认,A股/港股)

哲学锚点

  • 巴菲特「能力圈」:不懂的生意,涨跌都拿不住。
  • 巴菲特「护城河」:好生意才能持续赚钱。
  • 巴菲特「安全边际」:好公司也要好价格。

第一关:懂不懂(能力圈)

能向一个外行说清楚这家公司怎么赚钱吗?收入从哪来?客户为什么选它?5年后它还在吗?

数据需求:主营业务构成(分产品/分地区)、上下游位置、行业生命周期。

未通过 → 停止,不买。

第二关:好不好(护城河 + 管理层 + 行业地位)

有定价权吗?竞争对手多久能复制?需要持续烧钱维持吗?

行业生命周期判断:

阶段特征增速竞争格局投资策略
成长期需求爆发,渗透率快速提升> 15%分散,龙头未现高估值可容忍,选龙头
成熟期增速放缓,格局稳定5-15%集中,CR3 > 50%选龙头,看分红
衰退期需求下降,产能过剩< 5%分散,价格战回避,除非转型

竞争格局(波特五力):

力量核心问题强/弱信号
供应商议价上游集中度?转换成本?集中/高转换成本 → 强
买方议价下游集中度?产品差异化?集中/无差异化 → 强
替代品威胁替代成本?性能差距?低成本/高性能 → 威胁大
新进入者威胁进入壁垒?规模经济?低壁垒/无规模经济 → 威胁大
行业内竞争竞争者数量?行业增速?多/增速慢 → 竞争激烈

管理层与治理:

维度核心问题判断标准
诚信有无财务造假/违规记录无 → 通过
能力战略执行力、行业认知过往业绩验证
激励股权激励、薪酬与业绩挂钩有 → 加分
股权结构控股股东、机构投资者占比合理 → 通过
董事会独立性、专业背景独立董事 > 1/3 → 通过

5年趋势表(N-4至N年):

指标N-4N-3N-2N-1N判断标准
毛利率__%__%__%__%__%稳定或上升
ROE__%__%__%__%__%持续>12%
经营现金流/净利润__%__%__%__%__%>70%
有息负债率__%__%__%__%__%<50%
研发投入占比__%__%__%__%__%科技/医药 > 5%

一票否决:财务造假历史 / 竞争优势消失 / ROE依赖高杠杆(权益乘数>3且负债率高)/ 管理层重大诚信问题。

未通过 → 停止,不买。

第三关:贵不贵(安全边际 + 估值方法)

当前价格包含了多少乐观预期?如果买错能承受多大损失?

多方法估值交叉验证:

方法适用场景核心指标判断标准
PE盈利稳定企业PE_TTM / PE历史分位< 40% 分位为低估
PB重资产/金融企业PB / PB历史分位< 40% 分位为低估
DCF现金流稳定企业WACC / 永续增长率现值 > 市价 20%+
EV/EBITDA资本密集企业EV/EBITDA / 历史分位< 40% 分位为低估
DDM高分红企业股息率 / 要求回报率股息率 > 要求回报率
PS亏损/高增长企业PS / 历史分位< 40% 分位为低估

估值安全边际:

指标当前值历史均值历史分位判断
PE_TTM______%__
PB______%__
股息率__%__%__%__
DCF 现值/市价__--__

极端测试:假设盈利下滑30%,PE变成多少?DCF 现值下降多少?能承受吗?

未通过 → 价格透支未来3-5年增长且无安全边际 → 等待或放弃。

模式 2:四维评分(美股)

维度评分标准分值
ROE持续性连续3年+ > 20% → 3分/3
负债安全性有息负债率 < 30% → 3分/3
FCF质量连续3年+ FCF > 0 → 3分/3
护城河定价权+品牌+网络效应 → 3分/3

总分 10-12 → A(买入)/ 7-9 → B(观察)/ 4-6 → C(回避)/ 0-3 → D(远离)

模式 3:机构深度

详见 ~/.agents/skills/invest-stock/references/deep-dive.md,按需读取。

输出模板

分析完成后,用 mx-templates/company_onepager.md 渲染报告。

核心原则

  1. 不替决策:提供框架,决策交还用户
  2. 不预测股价:只评估基本面与价格匹配度
  3. 不保证收益:任何分析都可能错误
  4. 数据时效:不用过期数据

invest-stock v3.0 | 方法论层 · 数据走 mx-data · 报告走 mx-templates

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 Invest Stock AI skill do?

invest系列:统一个股分析。覆盖A股/港股/美股,自动匹配分析模式。 快速判断:「分析这只股票」「看看XX公司」「这只股怎么样」「该不该买」「要不要卖」 美股量化:「分析AAPL」「美股」「NVDA」「价值投资」「ROE」「护城河」 深度研报:「深度分析」「DCF」「估值分析」「写个投资备忘录」「机构怎么看」「可比公司」「IC Memo」 数据获取:「[代码]的ROE和毛利率」「[代码]的营收和净利润」

Why use Invest Stock on TypingMind?

Because you install it once and use it with any model. Invest Stock 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 Invest Stock in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/taxueseek/taxue-invest/tree/main/skills/invest-stock. 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 Invest Stock?

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 Invest Stock?

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

Is the Invest Stock AI skill free?

It is published on GitHub by taxueseek. 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 👇