currency-rates

GitHub

用于货币兑换和查询实时汇率,无API密钥。基于Frankfurter (ECB) 为主、open.er-api.com为辅的数据源。支持当前及历史汇率查询,输出转换结果、参考日期、curl命令及非交易报价免责声明。

skills/currency-rates/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

用户询问货币转换(如将美元转换为欧元) 查询特定货币对汇率(如USD-INR) 查询历史日期的汇率

Install

npx skills add mohitagw15856/pm-claude-skills --skill currency-rates -g -y
More Options

Use without installing

npx skills use mohitagw15856/pm-claude-skills@currency-rates

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill currency-rates -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "currency-rates",
    "description": "Convert currencies and fetch live exchange rates with zero API keys — Frankfurter (ECB rates) primary, open.er-api.com fallback, via plain curl. Use when asked convert 500 dollars to euros, what's the USD-INR rate, how much is this in my currency, or historical exchange rate for a date. Produces the conversion with the rate and its date quoted, the rerunnable command, and the not-a-trading-quote caveat."
}

Currency Rates Skill

Currency conversion is a daily agent chore with a clean keyless answer: Frankfurter serves European Central Bank reference rates (current and historical) over bare HTTPS, and open.er-api.com covers the long tail of currencies Frankfurter doesn't track. This skill knows both, always quotes the rate and its date, and never confuses a reference rate with the rate any bank will actually give.

What This Skill Produces

  • The conversion — the amount, converted, stated first
  • The rate and its date — reference rates update on banking days; the date is part of the answer
  • The command — exact curl, rerunnable and scriptable
  • The caveat — reference rates ≠ what a card, bank, or exchange desk will charge; the spread is real

Required Inputs

Ask for these if not provided:

  • From, to, and amount — ISO codes resolved from natural language ("dollars" → USD unless context says AUD/CAD/SGD — ask when genuinely ambiguous)
  • When — today (default) or a historical date (Frankfurter serves history back to 1999)
  • The purpose, if it matters — budgeting tolerance vs. invoice-precision changes how hard to caveat the spread

Framework: The Two Sources

  1. Frankfurter — primary (ECB reference rates): latest: curl -s "https://api.frankfurter.dev/v1/latest?base=USD&symbols=EUR,INR" · convert directly: ...?amount=500&base=USD&symbols=EUR · historical: https://api.frankfurter.dev/v1/2024-03-15?base=USD&symbols=EUR · a date range for trends: .../v1/2026-01-01..2026-07-01?base=USD&symbols=EUR. ~30 major currencies, updated ~16:00 CET on ECB working days.
  2. open.er-api.com — fallback and long tail: curl -s "https://open.er-api.com/v6/latest/USD" → 160+ currencies in one response. Use when Frankfurter lacks the currency (many African, Asian, Latin American currencies) or is down. Quote its time_last_update_utc field.
  3. Date honesty: both responses carry the rate's date — quote it verbatim. A Saturday question gets Friday's rate, and the answer says so.
  4. The spread sentence: consumer conversions happen 1–4% worse than reference (card networks near the low end, airport desks at the high end). For "how much will I get" questions, give the reference number and the realistic band.
  5. Arithmetic discipline: for cross rates neither API serves directly, convert through the base and show the two hops; round to sensible precision (whole yen, cents for EUR/USD) rather than echoing eight decimals of false precision.

Output Format

Conversion: [amount] [FROM] → [TO]

[Converted amount] at [rate], ECB/reference rate dated [date].

[If relevant: "expect roughly X–Y after typical consumer spread"] [Historical/trend questions: the series or the two dates compared]

Source: [Frankfurter (ECB) / open.er-api.com] · rerun: [exact curl] Reference rates for information — not a trading quote; actual bank/card rates include a spread.

Quality Checks

  • The rate's date is quoted, not implied
  • Ambiguous currency words ("dollars", "francs") resolved or asked about
  • "How much will I get" questions include the spread band
  • The fallback engaged silently when needed, and the answer names its source
  • Precision is sensible for the currency pair

Anti-Patterns

  • Do not answer from memory — rates move; no network means hand over the command
  • Do not present reference rates as attainable consumer rates
  • Do not silently serve a stale weekend rate as "today's" — date it
  • Do not echo full API precision — eight decimals on a lunch bill is theater
  • Do not give currency-trading advice — conversion is arithmetic; timing the market is not this skill

Version History

  • 54fad50 Current 2026-07-19 13:23

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-hiring-panel/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-severance/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/agm-in-a-box/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/behavior-intervention-plan/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bennett-time-audit/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-game-designer/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md

Metadata

Files
0
Version
e4def4c
Hash
7da0b48b
Indexed
2026-07-19 13:23

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-31 02:02
浙ICP备14020137号-1 $방문자$