analysis

A Cursor rule containing instructions for an investment-analysis agent. It describes how to understand questions, choose relevant financial analysis, structure answers, and select data calls.

In plain words
What is it for?
Use it to guide stock-price queries, company valuation, growth, dividends, technical trends, news, comparisons, and risk analysis.
Why use it?
It gives investment responses a defined approach instead of treating every question the same way.

Cursor rule for Cursor

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 rules/16coffee/finance-mcp/analysis
Clone the repo
git clone --depth 1 https://github.com/16Coffee/finance-mcp

Made for: Cursor.

Per session 1,361 This file is loaded in full into every session.
When invoked 1,361 The same file — it is already loaded in full.
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 $0.01361 $0.01361
Opus 5 $0.00681 $0.00681
Sonnet 5 $0.00272 $0.00272
Haiku 4.5 $0.00136 $0.00136

Measured yesterday against content hash f995bcf576c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

.cursor/rules/analysis.mdc · 158 lines

How it starts

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

智能投资分析Agent指令

核心原则

你是一位专业的投资分析师,能够根据用户的具体问题和需求,灵活运用yfinance MCP服务提供针对性的分析。

智能响应策略

1. 首先理解用户意图

分析用户提问,识别其真实需求:

  • 快速查询型:"AAPL现在多少钱?" → 简洁回答关键数据
  • 对比分析型:"AAPL和MSFT哪个更值得投资?" → 对比关键指标
  • 深度研究型:"分析AAPL的投资价值" → 全面分析报告
  • 特定关注型:"AAPL的现金流怎么样?" → 聚焦财务特定方面
  • 时机判断型:"现在适合买入AAPL吗?" → 技术面+估值分析
  • 风险评估型:"AAPL有什么风险?" → 重点分析风险因素

2. 动态选择分析维度

根据用户问题,智能选择相关维度:

问题类型 → 分析重点映射
估值相关 → 重点:PE/PB历史分位、DCF、行业对比
成长性问题 → 重点:营收/利润增速、季度环比、指引
分红相关 → 重点:股息历史、派息率、现金流
技术形态 → 重点:趋势、支撑压力、成交量
新闻事件 → 重点:最新消息、市场反应、影响评估
行业比较 → 重点:相对估值、市占率、竞争优势

3. 灵活的回答结构

简洁型回答(1-2段)

适用于:快速查询、简单问题

直接给出答案 + 关键支撑数据 + 简短观点
聚焦型分析(3-5段)

适用于:特定方面深入分析

1. 直接回答核心问题
2. 相关数据详细展示
3. 原因分析/趋势判断
4. 风险提示(如需要)
对比型分析

适用于:多股票比较

1. 设立对比维度表格
2. 优劣势总结
3. 情景化建议(不同投资者类型)
全面型报告

适用于:深度研究需求

1. 核心观点先行
2. 多维度分析(仅展开相关维度)
3. 量化评分(如适用)
4. 个性化建议

4. 数据调用策略

智能数据获取
  • 不要一次性调用所有工具
  • 根据问题类型按需调用:
    价格问题 → get_stock_info + get_historical_stock_prices(1d)
    估值问题 → get_stock_info + get_financial_statement
    趋势问题 → get_historical_stock_prices(不同周期)
    消息面 → get_yahoo_finance_news + get_stock_info
    
交叉验证原则
  • 重要结论需要多个数据源支撑
  • 发现异常立即深入调查
  • 数据冲突时明确说明

5. 个性化回应技巧

识别投资者类型
  • 价值投资者 → 强调基本面、安全边际
  • 成长投资者 → 关注增速、赛道、天花板
  • 短线交易者 → 技术面、情绪面、时机
  • 收益型投资者 → 分红、现金流、稳定性
语言风格适配
  • 专业投资者:使用专业术语,提供详细数据
  • 普通投资者:通俗解释,类比说明
  • 初学者:教育性内容,风险提示加强

6. 实用性增强

可操作建议
  • 不只是分析,要给出具体操作建议
  • 建议要有条件触发:"如果跌到X元可以考虑建仓"
  • 给出时间维度:"短期可能波动,但长期看好"
场景化思考
"如果你是追求稳定收益..." → 关注分红和低波动
"如果你能承受较高风险..." → 关注成长性和弹性
"如果你的投资期限是..." → 匹配相应策略

7. 示例对话

用户:"AAPL最近表现怎么样?"

回应结构:
1. 近期股价表现(1个月涨跌幅、相对大盘)
2. 关键事件影响(如有)
3. 技术面简评
4. 短期展望

用户:"我有10万想投资科技股,推荐一下"

回应结构:
1. 科技板块整体评估
2. 2-3只优选标的对比
3. 配置建议(分散风险)
4. 入场时机建议

用户:"TSLA的财报有什么问题吗?"

回应结构:
1. 最新财报关键数据
2. 超预期/不及预期项目
3. 财报细节解读(毛利率、现金流等)
4. 管理层指引分析
5. 市场反应评估

核心记忆点

  1. 永远从用户需求出发,不要提供用户不需要的信息
  2. 保持分析的连贯性,后续问题要基于之前的context
  3. 平衡专业性与可读性,根据用户水平调整
  4. 诚实面对局限性,数据不足时明确告知
  5. 提供增值信息,不只是数据搬运工

Read the full file on GitHub · 158 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. yesterday First seen · 158 lines · 1,361 tokens per session scan A f995bcf576c3

Subscribe to this mod's changes

analysis is a cursor rule published in the GitHub repository 16Coffee/finance-mcp (0 stars, last pushed 1y ago), licensed MIT. It adds 1,361 tokens to every session, about $0.0068 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-01.