Scenario Analysis logo

Scenario Analysis

Community
vivy-yi
scenario-analysis

情景分析 — 对投资或业务决策进行多情景分析, 包括基准、乐观、悲观情景下的财务影响评估。 适用情形:重大投资决策、战略规划、预算编制前,或用户要求"做情景分析"时执行。 核心:情景设计 + 财务测算 + 概率加权 + 敏感性分析。

Overview

Publishervivy-yi
Repositoryfinance-skills
Skill namescenario-analysis
Stars
43
Forks
13
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by vivy-yi on GitHub. Read the source before you install it.

Installation

Install the Scenario Analysis 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/vivy-yi/finance-skills/tree/master/finance-skills/skills/capital-allocation/skills/scenario-analysis
  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/vivy-yi/finance-skills.git /tmp/finance-skills
mkdir -p .claude/skills
cp -r /tmp/finance-skills/finance-skills/skills/capital-allocation/skills/scenario-analysis .claude/skills/scenario-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Scenario Analysis 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 Scenario Analysis 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 Scenario Analysis 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.

加载上下文

首次使用时: 读取 ../../CLAUDE.md 获取场景级配置(情景定义标准/历史基准/概率估算方法)。


/scenario-analysis — 情景分析

Examples

→ 示例:用户说"帮我做一个三种情景的财务预测:乐观/基准/悲观",系统应调用本技能,执行三情景财务预测分析。

→ 示例:用户说"原材料价格暴涨 30% 对我们明年利润的影响有多大",系统应调用本技能,执行价格冲击敏感性分析。

→ 示例:用户说"竞争者价格战开始了,帮我评估对我们的影响",系统应调用本技能,执行竞争情景分析。

第一步:分析框架确定

分析标的与范围:

□ 分析对象:[项目/业务单元/公司]
□ 分析维度:[财务回报/现金流/估值/战略影响]
□ 币种:[CNY]

□ 关键假设变量([X] 个):
  → 变量 1:[收入增长率] — 基准 [X]%
  → 变量 2:[毛利率] — 基准 [X]%
  → 变量 3:[利率/折现率] — 基准 [X]%
  → 变量 4:[...] — 基准 [...]

情景数量与定义:

□ 情景结构:
  → 情景 1:基准情景(最可能发生)
  → 情景 2:乐观情景(上行情景)
  → 情景 3:悲观情景(下行情景)
  → [情景 4:极端悲观(如需)]
  → [情景 5:极端乐观(如需)]

□ 情景概率分配:
  → 基准:[X]%
  → 乐观:[X]%
  → 悲观:[X]%
  → 合计:100%

第二步:基准情景设计

基准情景假设:

□ 宏观经济假设:
  → GDP 增速:[X]%
  → 行业增速:[X]%
  → 利率水平:[X]%

□ 业务假设:
  → 收入增长率:[X]%([假设依据])
  → 毛利率:[X]%([假设依据])
  → 运营费用率:[X]%
  → 资本支出:[X] 万/年

□ 财务预测([X] 年):
  → Year 1:收入 [X] 万,EBITDA [X] 万
  → Year 2:收入 [X] 万,EBITDA [X] 万
  → Year 3:收入 [X] 万,EBITDA [X] 万

基准情景财务结果:

□ 核心指标:
  → NPV:[X] 万 [✅ > 0 / 🔴 < 0]
  → IRR:[X]%(vs 门槛 [X]%)[✅ > 门槛 / 🔴 < 门槛]
  → 回收期:[X] 年

□ 自由现金流(FCF):
  → Year 1:[X] 万
  → Year 2:[X] 万
  → Year 3:[X] 万
  → 累计 FCF:[X] 万

第三步:乐观/悲观情景设计

乐观情景假设(较基准 [+/-X]%):

□ 假设变化:
  → 收入增长率:[X]%(基准 [X]%,提升 [X]%)
  → 毛利率:[X]%(基准 [X]%,提升 [X]%)
  → 运营费用率:[X]%(基准 [X]%,降低 [X]%)

□ 乐观情景财务结果:
  → NPV:[X] 万
  → IRR:[X]%
  → 概率:[X]%

悲观情景假设(较基准 [-X]%):

□ 假设变化:
  → 收入增长率:[X]%(基准 [X]%,下降 [X]%)
  → 毛利率:[X]%(基准 [X]%,下降 [X]%)
  → 运营费用率:[X]%(基准 [X]%,上升 [X]%)

□ 悲观情景财务结果:
  → NPV:[X] 万 [🔴 < 0]
  → IRR:[X]%([🔴 < 门槛])
  → 概率:[X]%

情景对比汇总:

| 情景 | 收入增长率 | 毛利率 | NPV(万) | IRR | 概率 |
|------|----------|--------|----------|-----|------|
| 乐观 | [X]% | [X]% | [+X] | [X]% | [X]% |
| 基准 | [X]% | [X]% | [X] | [X]% | [X]% |
| 悲观 | [X]% | [X]% | [-X] | [X]% | [X]% |

第四步:概率加权分析

期望值(概率加权 NPV)计算:

□ 期望 NPV = Σ (情景 NPV × 概率)

  = ([X] 万 × [X]%) + ([X] 万 × [X]%) + ([-X] 万 × [X]%)
  = [X] 万 + [X] 万 + [-X] 万
  = [X] 万

□ 期望 NPV > 0:[✅ 期望值为正 / 🔴 期望值为负]

□ NPV 下行风险:
  → 悲观情景 NPV:[-X] 万
  → 概率加权下行损失:[X] 万

上行/下行不对称分析:

□ 上行潜力(乐观 vs 基准):
  → NPV 增厚:[+X] 万([+X]%)

□ 下行风险(基准 vs 悲观):
  → NPV 减少:[X] 万([-X]%)

□ 风险回报比:
  → 上行/下行比 = [X]:[X]
  → [⚠️ 风险不对称 / ✅ 风险收益对称]

第五步:敏感性分析

单变量敏感性分析:

□ 对收入增长率敏感性:
| 收入增长率变化 | NPV 变化 | IRR 变化 |
|--------------|---------|---------|
| +5% | [+X]万 | [+X]% |
| +2% | [+X]万 | [+X]% |
| -2% | [-X]万 | [-X]% |
| -5% | [-X]万 | [-X]% |

□ 对毛利率敏感性:
| 毛利率变化 | NPV 变化 |
|----------|---------|
| +2% | [+X]万 |
| -2% | [-X]万 |

双变量敏感性(对 NPV 影响):

□ 收入增长率 vs 毛利率:
         毛利率-2%  毛利率  毛利率+2%
收入+5%   [X]      [X]      [X]
收入基准   [X]      [X]      [X]
收入-5%   [X]      [X]      [X]

关键临界点识别:

□ NPV = 0 的临界条件:
  → 收入增长率须维持 > [X]% 才能不亏损
  → 毛利率须维持 > [X]% 才能不亏损
  → 折现率须维持 < [X]% 才能不亏损

□ 投资不可逆性程度:[高/中/低]

第六步:生成情景分析报告

═══════════════════════════════════════
情景分析报告
分析标的:[项目名称]
报告日期:[YYYY-MM-DD]
═══════════════════════════════════════

【分析框架】
□ 情景数量:[X] 个
□ 关键变量:[X] 个
□ 分析期间:[X] 年

【情景设定】
□ 乐观情景:[X]% 概率 — 收入 [X]% / 毛利率 [X]%
□ 基准情景:[X]% 概率 — 收入 [X]% / 毛利率 [X]%
□ 悲观情景:[X]% 概率 — 收入 [X]% / 毛利率 [X]%

【财务结果对比】
| 情景 | NPV(万) | IRR | 回收期 | 概率 |
|------|----------|-----|--------|------|
| 乐观 | [+X] | [X]% | [X]年 | [X]% |
| 基准 | [X] | [X]% | [X]年 | [X]% |
| 悲观 | [-X] | [X]% | [X]年 | [X]% |

【概率加权结果】
□ 期望 NPV:[X] 万 [✅ 正 / 🔴 负]
□ 概率加权 IRR:[X]%

【风险回报分析】
□ 上行潜力:[+X] 万([+X]%)
□ 下行风险:[-X] 万([-X]%)
□ 风险回报比:[X]:[X]

【敏感性分析】
□ 最关键变量:[变量名]
□ NPV=0 临界值:[条件描述]

【关键发现】
□ [发现 1]
□ [发现 2]

【决策建议】
□ [建议:推进/谨慎推进/不推荐]
□ 建议条件:[条件描述]

═══════════════════════════════════════
置信度:[✅ 高 / ⚠️ 中 / 🔴 低]
分析结论:[✅ 乐观 / ⚠️ 谨慎乐观 / 🔴 风险较大]
═══════════════════════════════════════

升级触发条件

  • 所有情景下 NPV < 0(无论何种情况都不值得投资)
  • 悲观情景概率上调 > [X]%(外部风险加剧)
  • 乐观情景依赖单一变量(该变量高度不确定)
  • NPV = 0 临界条件过于严苛(现实很难满足)
  • 须基于情景分析做重大资本支出决策(> [X] 万)
  • 多情景分析结果不一致(IRR vs NPV 结论矛盾)

Finance Skills — scenario-analysis atomic skill

Frequently asked questions

What does the Scenario Analysis AI skill do?

情景分析 — 对投资或业务决策进行多情景分析, 包括基准、乐观、悲观情景下的财务影响评估。 适用情形:重大投资决策、战略规划、预算编制前,或用户要求"做情景分析"时执行。 核心:情景设计 + 财务测算 + 概率加权 + 敏感性分析。

Why use Scenario Analysis on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vivy-yi/finance-skills/tree/master/finance-skills/skills/capital-allocation/skills/scenario-analysis. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Scenario Analysis?

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 Scenario Analysis?

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

Is the Scenario Analysis AI skill free?

Yes. It is published on GitHub by vivy-yi under the MIT license. 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 👇