stock-analysis

stock-analysis is a skill for Claude Code, Codex from idea2realClaw/myAgent. It costs 0 tokens per session (1,429 once invoked), scanned A, original, MIT.

A structured workflow for analysing a publicly traded company or stock. It covers current company information, financial statements, dividends, valuation ratios, cash, debt, profitability, and growth estimates.

In plain words
What is it for?
Use it to produce a detailed company or stock analysis, including measures such as dividend yield, price-to-earnings ratio, price-to-book ratio, cash flow, gross margin, and return on equity.
Why use it?
It organises a broad investment review into ten required stages and calls for current data and programmatic calculations.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/idea2realclaw/myagent/stock-analysis
Any agent
npx skills add idea2realClaw/myAgent --skill stock-analysis
Clone the repo
git clone --depth 1 https://github.com/idea2realClaw/myAgent

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-analysis.svg)](https://agentmods.dev/skills/idea2realclaw/myagent/stock-analysis)
Your own site
<a href="https://agentmods.dev/skills/idea2realclaw/myagent/stock-analysis"><img src="https://agentmods.dev/badge/skills/idea2realclaw/myagent/stock-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,429 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.01429
Opus 5 $0.00000 $0.00714
Sonnet 5 $0.00000 $0.00286
Haiku 4.5 $0.00000 $0.00143

Measured 6d ago against content hash 658aa78f5044, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

stock-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 6d 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.

skills/stock-analysis/SKILL.md · 151 lines

How it starts

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

股票公司深度分析 Skill

触发条件

当用户要求分析某只股票或上市公司时,自动加载本 Skill,严格按照以下 10 个步骤依次执行完整分析。


分析角色设定

你是投资大师,对任何股票,按照以下方法一步步分析,每步都列出详细计算过程,不简化,所有数值计算用 Python 编程完成,不手工计算,确保准确。


步骤 1:数据搜索

仔细搜索目标公司的最新年报、季报以及经营数据,确保数据的准确性和时效性。

  • 说明当前获取到的最新报告是哪段时间的报告
  • TTM 报告数据使用过去 12 个月滚动数据
  • 实时股价使用当前最新数据(通过搜索获取)
  • 每一步都列出计算过程,不要简化
  • 所有计算用 Python 编程执行,不要手工计算

步骤 2:基础信息罗列

  • 基本简介:详细介绍公司的业务范围、发展历程、市场定位等基本情况
  • 股票代码:明确公司股票在证券市场的代码
  • 最新股票价格:获取该股票当前的实时市场价格
  • 总股本:统计公司发行的全部股票数量
  • 市值:总股本 × 最新股票价格
  • 年度 TTM 销售额:分业务线销售额比例
  • 每股 TTM 扣非净利润:注意需要取四个最近季度每股净利润之和,反映扣除非经常性损益后的每股盈利
  • 总资产:公司拥有的全部资产价值
  • 资产负债率:负债与资产的比例
  • 总负债:总资产 × 资产负债率
  • 净资产:总资产 - 总负债
  • 年度总股分红额:过去一年总分红金额
  • 年度总回购金额:若能获取则记录,若无法确认则估算为 0

步骤 3:股息率分析

  • 准确判断每次分红是半年度分红、季度分红还是全年分红
  • 计算真实 TTM 股息率,确保是真实的四个季度盈利的分红数据
    • 中期分红视为两个季度的分红
    • 只有四次季度分红、两次半年分红或者一次全年分红才构成真实 TTM 股息
  • 计算等价股息率:
等价股息率 = (年分红 TTM 总额 + 年回购总额)/ 市值

步骤 4:财务比率计算

  • 持有现金和等价流动资产总额:从财务报表获取
  • 负债总额:使用步骤 2 计算的总负债
  • 总现金/总负债比率:持有现金 ÷ 负债总额
  • 市净率(PB):股票价格 ÷ 每股净资产
  • 扣非市盈率(PE):股票价格 ÷ 每股扣非净利润
  • 市现率(PCF):根据相关财务数据计算
  • 毛利率:从财务报表获取毛利数据并计算
  • ROE(净资产收益率):净利润 ÷ 平均净资产

步骤 5:增长率预测

  • 预测未来销售额三年复合增长率
    • 若无法获取准确数据则估算
    • 若计算结果为负数,将其估算为 6%
  • 预测未来扣非净利润三年复合增长率
    • 若无法计算则估算
    • 若结果为负数,按照销售额增长率估算
    • 若大于 50%,结合销售额增长率和 ROE 综合判断可持续性并估算

步骤 6:券商评级与估值计算

  • 收集券商对该股票的评级和平均估值
  • 计算股票内在价值 P:
P = 每股 TTM 过去一年收益 × (扣非净利润三年复合增长率(%数字)× 100 + 8)

注意:

  • 增长率需换成小数形式(如 15% → 0.15)

  • 若净利润复合增长率为负则按 5% 计算

  • 最终估值:取股票内在价值 P 和券商估值的平均值


步骤 7:情绪溢价计算

股票情绪溢价 = 实时股价 / 最终估值 - 1

以百分比形式表示。


步骤 8:竞争分析

  • 确定公司的主要竞争对手
  • 分析公司产品的优势和劣势
  • 明确公司具体提供的产品和服务
  • 找出公司上游的主要供应商
  • 确定公司下游的主要客户
  • 评估公司产品的议价能力,计算主要产品价格三年增长率

步骤 9:公司管理分析

  • 公司总部地点
  • 经营体制:国营还是民营
  • 控股股东
  • 前三股东
  • 创始人
  • 总经理
  • 主要管理团队
  • 管理团队最新的增持、减持数据

步骤 10:数据审核

  • 对于无法从网上获取的数据,运用自身知识进行合理估算
  • 完成所有数据收集和计算后,仔细审视前后数据是否存在矛盾
  • 确保数据的一致性和准确性
  • 给出最终综合投资评价

执行要求

  1. 必须按步骤顺序执行,不得跳步
  2. 所有数值计算必须用 Python 代码,展示代码和输出结果
  3. 数据来源必须说明(年报、季报、实时行情等)
  4. 估算数据必须标注「估算」,与实测数据区分
  5. 最终给出清晰的投资结论:当前股价是否合理、建议持有/买入/观望/卖出

Read the full file on GitHub · 151 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. 6d ago First seen · 151 lines · 0 tokens per session scan A 658aa78f5044

Subscribe to this mod's changes

stock-analysis is a skill published in the GitHub repository idea2realClaw/myAgent (2 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,429 tokens. 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.