Fx Exposure Calculation logo

Fx Exposure Calculation

Community
vivy-yi
fx-exposure-calculation

外汇敞口计算 — 识别和量化公司面临的外汇风险敞口, 包括交易敞口、会计敞口和经济敞口的分类计算。 适用情形:季度外汇风险管理评估、投资决策前,或用户要求"计算 FX 敞口"时执行。 核心:敞口识别 + 金额量化 + 敏感性分析 + 报告生成。

Overview

Publishervivy-yi
Repositoryfinance-skills
Skill namefx-exposure-calculation
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 Fx Exposure Calculation 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/fx-risk/skills/fx-exposure-calculation
  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/fx-risk/skills/fx-exposure-calculation .claude/skills/fx-exposure-calculation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Fx Exposure Calculation 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 Fx Exposure Calculation 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 Fx Exposure Calculation 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 获取场景级配置(主要外币币种/历史敞口数据/报告格式)。


/fx-exposure-calculation — 外汇敞口计算

Examples

→ 示例:用户说"帮我算一下本季度末我们的人民币外汇敞口是多少",系统应调用本技能,计算人民币外汇净敞口。

→ 示例:用户说"欧元和美元的敞口要分开算,每种货币的影响因素不一样",系统应调用本技能,执行分币种外汇敞口计算。

→ 示例:用户说"并购了境外子公司后,合并报表的外汇敞口怎么算",系统应调用本技能,计算境外子公司合并层面的外汇敞口。

第一步:敞口识别

交易敞口(Transaction Exposure):

□ 已确认外币交易:
  → 出口销售:[X] 万 USD — 收款日期 [YYYY-MM-DD]
  → 进口采购:[X] 万 EUR — 付款日期 [YYYY-MM-DD]
  → 外汇贷款本息:[X] 万 USD — 到期日 [YYYY-MM-DD]

□ 预期外币现金流([X] 个月内):
  → 预期 USD 收入:[X] 万
  → 预期 USD 支出:[X] 万
  → 预期 EUR 收入:[X] 万
  → 预期 EUR 支出:[X] 万

□ 净交易敞口:
  → USD 净敞口:[X] 万([多头/空头])
  → EUR 净敞口:[X] 万([多头/空头])
  → GBP 净敞口:[X] 万([多头/空头])

会计敞口(Translation Exposure):

□ 海外子公司:
  → 美国子公司:净资产 [X] 万 USD
  → 欧洲子公司:净资产 [X] 万 EUR
  → 东南亚子公司:净资产 [X] 万 SGD

□ 会计敞口汇总:
  → USD 净资产:[X] 万(折算汇率 [X.XXXX])
  → EUR 净资产:[X] 万(折算汇率 [X.XXXX])

□ 汇率敏感性(USD/CNY 变动 1%):
  → 会计折算影响:[+/-X] 万人民币

经济敞口(Economic Exposure):

□ 收入币种结构:
  → 人民币收入:[X]%([X] 万)
  → USD 收入:[X]%([X] 万)
  → EUR 收入:[X]%([X] 万)
  → 其他:[X]%([X] 万)

□ 成本币种结构:
  → 人民币成本:[X]%([X] 万)
  → USD 采购:[X]%([X] 万)
  → EUR 采购:[X]%([X] 万)

□ 经济敞口分析:
  → 人民币贬值 10% 对 EBIT 影响:[+/-X] 万
  → USD 升值 10% 对毛利率影响:[+/-X] 个百分点

第二步:敞口量化

净敞口汇总表:

□ 按币种净敞口:
| 币种 | 交易敞口 | 会计敞口 | 经济敞口 | 合计 | 方向 |
|------|---------|---------|---------|------|------|
| USD | [X]万 | [X]万 | [X]万 | [X]万 | 多头 |
| EUR | [X]万 | [X]万 | — | [X]万 | 空头 |
| GBP | [X]万 | — | — | [X]万 | 中性 |

敞口集中度分析:

□ 单一货币集中度:
  → USD 敞口占总外币敞口:[X]%
  → 风险评级:[高/中/低](> [X]% 为高)

□ 敞口方向分布:
  → 多头敞口:[X]%(看升值)
  → 空头敞口:[X]%(看贬值)
  → 中性:[X]%

第三步:敏感性分析

汇率敏感性矩阵:

□ USD/CNY 敏感性:
| 汇率变动 | 交易影响(万) | 会计影响(万) | 合计(万) |
|---------|-------------|-------------|---------|
| +10% | [X] | [X] | [X] |
| +5% | [X] | [X] | [X] |
| -5% | [-X] | [-X] | [-X] |
| -10% | [-X] | [-X] | [-X] |

□ EUR/CNY 敏感性:
| 汇率变动 | 交易影响(万) | 会计影响(万) | 合计(万) |
|---------|-------------|-------------|---------|
| +10% | [X] | [X] | [X] |
| +5% | [X] | [X] | [X] |
| -5% | [-X] | [-X] | [-X] |
| -10% | [-X] | [-X] | [-X] |

VaR 估算(可选):

□ 参数:
  → 置信水平:[X]%(通常 95% 或 99%)
  → 持有期:[X] 天
  → 历史波动率:[X]%(USD/CNY 年化)

□ VaR 估算:
  → USD 敞口 VaR(95%,1天):[X] 万
  → 全币种组合 VaR(95%,1天):[X] 万

第四步:对冲效果测算

自然对冲后敞口:

□ 已有自然对冲:
  → USD 收入 vs USD 成本对冲:[X] 万
  → 外币债务对冲外币收入:[X] 万

□ 自然对冲后剩余敞口:
  → USD 净敞口(对冲后):[X] 万
  → EUR 净敞口(对冲后):[X] 万

□ 须金融对冲的剩余敞口:
  → USD:[X] 万
  → EUR:[X] 万

对冲比例建议(参考):

□ 对冲策略:
  → 确定敞口:建议对冲 [X]%
  → 很可能敞口:建议对冲 [X]%
  → 可能敞口:建议对冲 [X]%

□ 对冲金额建议:
  → USD 建议对冲:[X] 万
  → EUR 建议对冲:[X] 万

第五步:生成敞口计算报告

═══════════════════════════════════════
外汇敞口计算报告
截止日期:[YYYY-MM-DD]
报告日期:[YYYY-MM-DD]
═══════════════════════════════════════

【敞口概览】
□ 交易敞口:USD [X]万 | EUR [X]万 | GBP [X]万
□ 会计敞口:USD [X]万(净资产)| EUR [X]万
□ 经济敞口:收入 [X]% 美元 | 成本 [X]% 美元

【净敞口汇总】
| 币种 | 净敞口(万) | 方向 | 占比 |
|------|------------|------|------|
| USD | [X] | 多头/空头 | [X]% |
| EUR | [X] | 多头/空头 | [X]% |
| GBP | [X] | 中性 | [X]% |

【汇率敏感性】
□ USD/CNY +5%:影响 [+/-X] 万
□ USD/CNY -5%:影响 [+/-X] 万
□ EUR/CNY +5%:影响 [+/-X] 万

【VaR(95%,1天)】
□ 全币种组合 VaR:[X] 万

【自然对冲后剩余敞口】
□ USD:[X]万 — 建议对冲 [X]万
□ EUR:[X]万 — 建议对冲 [X]万

【敞口集中度风险】
□ USD 集中度:[X]% — 风险 [高/中/低]
□ 敞口方向:多头 [X]% | 空头 [X]%

═══════════════════════════════════════
置信度:[✅ 高 / ⚠️ 中 / 🔴 低]
敞口风险等级:[高/中/低]
═══════════════════════════════════════

升级触发条件

  • 单一货币敞口超过总外币敞口 [X]%(集中度风险)
  • 净敞口方向与公司风险偏好严重不符
  • 经济敞口显示隐含汇率风险显著上升
  • VaR 超过预设限额(须立即启动对冲)
  • 敞口规模发生重大变化(> [X]% 变动)
  • 须进行大额外汇对冲操作(> [X] 万)

Finance Skills — fx-exposure-calculation atomic skill

Frequently asked questions

What does the Fx Exposure Calculation AI skill do?

外汇敞口计算 — 识别和量化公司面临的外汇风险敞口, 包括交易敞口、会计敞口和经济敞口的分类计算。 适用情形:季度外汇风险管理评估、投资决策前,或用户要求"计算 FX 敞口"时执行。 核心:敞口识别 + 金额量化 + 敏感性分析 + 报告生成。

Why use Fx Exposure Calculation on TypingMind?

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

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

Which AI models can use Fx Exposure Calculation?

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 Fx Exposure Calculation?

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

Is the Fx Exposure Calculation 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 👇