Communitygithub.com

金融与外汇数据技能

用于需要实时或历史货币数据时——如“将美元兑换为欧元”、“当前/过去汇率”、“特定日期或时间段的汇率”或“比特币/以太坊当前价格、市值、24小时变化”。外汇默认使用Frankfurter(欧洲央行参考汇率,无需密钥);加密货币使用CoinGecko的免费无密钥层。不用于股票报价或权益类数据——没有无需密钥的股票API能通过验证,请直接说明;不用于国家经济指标如GDP或通胀系列——请改用政府开放数据;如果请求是模糊的“我需要实时数据”,请通过公共数据API选择工具路由。

金融与外汇数据技能 是什么?

该技能为AI代理提供获取实时和历史外汇汇率及加密货币价格的能力,完全无需API密钥。它默认使用Frankfurter API获取法定货币汇率(基于欧洲央行参考汇率,覆盖约30种主要货币,历史数据可追溯至1999年),以及CoinGecko免费层获取加密货币数据(包括价格、市值、24小时变化等,支持数千种代币)。技能核心优势在于避免代理陷入使用已失效的密钥限制API(如exchangerate.host、Fixer、Alpha Vantage)或依赖训练记忆中过时数据的陷阱。技能明确指导代理根据数据类型(法定货币或加密货币)路由请求,正确使用CoinGecko的ID而非代码,批量调用以应对速率限制,并始终附加日期和来源以保持数据透明度。它明确声明不适用于股票报价、国家经济指标或金融建议,确保行为边界清晰可靠。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SkillMedev/skills/tree/HEAD/skills/finance-fx

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

金融与外汇数据

通过无需密钥的调用获取汇率和加密货币价格。本技能旨在避免以下错误:从训练记忆中调用已失效的exchangerate.host、Fixer或Alpha Vantage(这些现在都需要密钥),或者将训练数据中的过时汇率直接用于实际计算。

优先级排序的API

  1. Frankfurter (api.frankfurter.dev) - 法定货币外汇的默认API。欧洲央行参考汇率,覆盖约30种主要货币,历史数据可追溯至1999年,支持时间序列,无需密钥,速率限制无需担心。
  2. CoinGecko免费层 (api.coingecko.com) - 加密货币价格、市值、24小时变化,支持数千种代币。无需密钥,但有限制:匿名IP大约每分钟5-15次调用。请将多个ID合并为一次调用;若收到429错误,需等待60秒。

流程

  1. 法定货币还是加密货币? 法定货币 → Frankfurter。加密货币 → CoinGecko。加密货币到法定货币的转换只需一次CoinGecko调用(vs_currencies=eur),无需两次跳转。
  2. 注意汇率日期。 欧洲央行参考汇率大约在交易日16:00 CET更新;响应的date字段告诉你实际获得的是哪一天的数据。周末/节假日请求会返回上一个交易日——请引用该日期,不要将其呈现为今天的数据。
  3. 使用CoinGecko的ID,而非代码。 ids参数需要bitcoin、ethereum、solana这样的值,而非BTC/ETH。对于不熟悉的代币,通过/api/v3/search?query={name}解析一次 → 取coins[0].id。
  4. 切勿凭记忆进行外汇计算。 如果任务需要将金额乘以汇率,汇率必须来自以上API调用之一,并附上日期。

仅在缺失以下信息时询问用户:货币对或代币(无默认值)、日期/范围(默认:最新)、金额(默认:1)。

URL模板 + 实际响应格式

最新汇率:

https://api.frankfurter.dev/v1/latest?base=USD&symbols=EUR,GBP,JPY
{"amount":1.0,"base":"USD","date":"<上一个交易日>","rates":{"EUR":0.87352,"GBP":0.74878,"JPY":161.15}}

使用&amount=250在服务器端转换金额——rates会返回预乘以金额后的值。

历史数据 / 时间序列:

https://api.frankfurter.dev/v1/2024-01-15?base=USD&symbols=EUR          ← 单个日期
https://api.frankfurter.dev/v1/2024-01-02..2024-01-31?base=USD&symbols=EUR   ← 范围
https://api.frankfurter.dev/v1/currencies                               ← 货币代码到名称的映射

范围响应格式:{"rates":{"2024-01-02":{"EUR":0.91274},"2024-01-03":{"EUR":0.91583}}} — 按日期索引,仅交易日(一整年约返回256个每日数据点;没有周末键,因此不要将空白视为缺失数据)。省略结束日期(/2024-01-02..)可查询到当前日期。

加密货币现货价格:

https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd&include_24hr_change=true
{"bitcoin":{"usd":63289,"usd_24h_change":1.19},"ethereum":{"usd":1790.89,"usd_24h_change":1.90}}

未知ID会从响应中被静默忽略——缺少键意味着ID错误,而非价格为null。

加密货币市场表格(排名、市值、供应量):

https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=20&page=1

返回数组:{"id","symbol","name","current_price","market_cap","market_cap_rank","price_change_percentage_24h","circulating_supply","ath"} —— 一次调用可替代二十次/simple/price调用;对于任何列表数据,优先使用此接口。

交付物

返回汇率或价格时,必须附带其date/时间戳和来源名称,以及使用的确切URL。任何转换计算都应显示算术过程:250 USD × 0.87352 (ECB, <汇率日期>) = 218.38 EUR。

不要使用——改用以下替代方案

  • exchangerate.host —— 每个请求现在都需要access_key;已验证无需密钥时无法工作。Frankfurter可替代它。
  • Fixer、Alpha Vantage、Finnhub、Polygon、OpenExchangeRates —— 均需密钥;当Frankfurter/CoinGecko已满足需求时,不要让用户注册。
  • 股票/权益报价 —— 没有无需密钥的接口能通过验证。请直接说明此限制,并列出付费选项,而非编造价格。
  • GDP、通胀、失业率、贸易数据 —— 请使用政府开放数据。
  • 金融建议 —— 本技能仅获取数字;买卖/配置判断超出范围。提供数据,而非建议。

质量标准

  • 每个数字必须附带其日期和来源;不得有来自训练记忆的汇率或价格。
  • 尊重Frankfurter约30种货币的上限——罕见货币对(例如NGN、VND)应声明不支持,而非近似估计。
  • CoinGecko调用应合并处理;收到429错误时,应进行退避,而非持续重试。

本技能来源并经过实时验证,基于public-apis项目(MIT许可)。

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

SkillMedev/skills

Designs REST API surfaces - resource naming, HTTP method and status-code semantics, error shapes, pagination, and filtering - and delivers an endpoint spec a consumer can build against without asking questions. Use when someone asks "how should I name this endpoint", "what status code should this return", "should this be PUT or PATCH", "how do I paginate this list", or is reviewing an API before it ships to external consumers. Do NOT use for planning breaking-change rollouts and deprecation windows - use api-versioning-strategist instead; for GraphQL type and resolver design - use graphql-schema instead; for generating client SDKs from an existing spec - use api-client-generator instead; for designing inbound webhook endpoints - use webhook-receiver-hardener instead.

SkillMedev/skills

Produce an accurate, properly timed caption track (SRT or WebVTT) from a video's audio - transcribing or aligning to the voiceover script, timing cues to speech, and enforcing line-length and reading-speed rules so captions are readable and in sync. Use when someone says "generate captions", "make subtitles from the audio", "transcribe and caption this", "export an SRT or VTT", "the captions are out of sync", or "the subtitles flash by too fast to read". Do NOT use to burn-in, style, reframe, or position an existing caption track for a platform (9:16, brand styling, safe areas) - that is social-video-formatter; do NOT use to animate text word-by-word as a motion graphic - that is kinetic-typography; do NOT use to write the spoken script in the first place - that is narration-script.

SkillMedev/skills

Turns data and charts into a decision-driving narrative structured as headline finding, trend, implication, and recommended action - with finding-led chart titles, context for every number, annotation guidance, and honest flags on any conclusion the data cannot support. Use when someone says "turn these numbers into a story", "what's the takeaway from this data", "help me present these results to leadership", or has charts but no narrative. Do NOT use for compressing a long document into a one-pager - use executive-summary instead - or for running the analysis that produces the findings - use eda-playbook instead.

SkillMedev/skills

Builds a driver-based FP&A operating model linking business inputs to P&L, balance sheet, and cash flow outputs. Use when building an annual plan, preparing investor materials, running scenario analysis, or stress-testing the business.

SkillMedev/skills

Use when a task needs live geographic lookups - "geocode this address", "what's at these coordinates" (reverse geocoding), "lat/lon for this city", "which country/state is this ZIP or postal code in", or "country facts: capital, currency, population, flag". Nominatim (OpenStreetMap) is the geocoding default; Zippopotam for postal codes; APICountries for country facts. All keyless. Do NOT use for weather at a location - use weather-climate instead; do NOT use for country-level statistics over time (GDP, population trends) - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

SkillMedev/skills

Runs the full Getting Things Done loop - capture, clarify, organize, reflect, engage - building a trusted system of context lists, a projects list with defined next actions, and a weekly review habit. Use when someone says "I'm overwhelmed and things are slipping through the cracks", "set up GTD for me", "help me do a brain dump and organize it", or "my to-do list is a mess". Do NOT use for just running the weekly review ritual itself - use weekly-review instead - or for clearing an email backlog - use inbox-zero.

SkillMedev/skills

Processes any email backlog to zero using the 4Ds - Delete, Delegate, Defer, Do - with a mass-archive strategy for the obvious, a touch-each-email-once discipline, and a keep-it-clear system of batched processing windows, ruthless unsubscribing, filters, and a minimal folder setup. Use when someone says "I have 5,000 unread emails", "help me get to inbox zero", "email is eating my whole day", or treats their inbox as a to-do list. Do NOT use for drafting the reply emails themselves or prioritization rules for an ongoing support queue - use email-triage instead - or for protecting focus time around the email windows - use deep-work-planner instead.

SkillMedev/skills

Write landing-page copy section by section - hero, social proof, features-as-benefits, objections, CTA - leading with one promise and proving it down the page. Use when someone asks "write my landing page", "improve my hero headline", "what should the homepage say", "turn these features into benefits", or is shipping a new page for a launch or campaign. Do NOT use for testing and optimizing an existing page's conversion rate - use landing-page-cro instead; for the one-line claim itself use positioning-statement; for the full message ladder use messaging-hierarchy.

SkillMedev/skills

Improves an existing landing page's conversion rate through evidence-first CRO - audit heatmaps and recordings, write structured hypotheses, prioritize with ICE scoring, and run one-variable tests to statistical significance. Use when someone asks "why isn't my landing page converting", "audit this page before we scale spend", "which A/B test should we run first", or after a CVR drop or ahead of a paid-traffic push. Do NOT use for writing a new landing page from scratch - use landing-page-copy instead. Do NOT use for auditing the ad accounts sending the traffic - use paid-acquisition-audit instead. Do NOT use for reading the results of a finished experiment - use ab-test-analyzer instead.

SkillMedev/skills

Runs structured coaching sessions using values clarification and the GROW model, ending every session with one committed action, a deadline, and an if-then plan for the likely obstacle. Use when someone says "I feel stuck in my life", "help me figure out what I want", "hold me accountable to my goals", or "coach me through this decision". Do NOT use for building a stress toolkit - use stress-management instead - or a journaling practice - use journal-framework; for a standing goal-tracking system, use goals-accountability. Coaching, not therapy: signs of clinical distress route to a licensed professional.

SkillMedev/skills

Adapts English content for a target language and region - swapping idioms, setting the right formality register, replacing cultural references, converting dates, units, and currency - and delivers the localized text with a notes column explaining each adaptation and flagging what needs a native reviewer. Use when someone asks "localize this copy for the Japanese market", "adapt our marketing copy for the Mexican market", "make this translation sound native instead of literal", or a literal translation reads foreign, stiff, or risky. Do NOT use for auditing in-product UI text quality - use ux-writing-audit instead.

SkillMedev/skills

Turns a natural-language video brief into a complete, ready-to-preview Remotion composition - extracts duration, scenes, brand colors, aspect ratio, and real copy; plans the frame budget; and writes data-driven React/TypeScript using useCurrentFrame, interpolate, spring, AbsoluteFill, and Sequence, registered in Root.tsx. Use when someone says "build a 20-second product demo video", "animate a feature walkthrough", "write the Remotion code for this marketing clip", or wants a scene-by-scene composition they can scrub in Studio. Do NOT use for rendering, iterating, or batching the finished MP4 - use remotion-render instead - or for installing and scaffolding the project - use remotion-setup instead.

SkillMedev/skills

Scaffolds a new Remotion video project wired for Claude Code Agent Skills - Node check, create-video scaffold, skills install, folder conventions, Google Fonts, and a smoke-test render. Use whenever someone wants to start making videos with Remotion and Claude, even just "make product videos with Claude.

SkillMedev/skills

Classifies incident severity (SEV1-4) using impact, scope, and urgency signals and decides who to page. Use when an alert fires or a report comes in and a severity call must be made quickly.

SkillMedev/skills

Use the Skill Me catalog from inside any conversation - discover, install, and manage Claude skills through the Skill Me MCP, and load installed skills automatically each session.

SkillMedev/skills

Write one platform-native caption from a topic and brand voice, with a front-loaded hook, native length, and a single earned CTA. Use when the user gives a topic (and optionally brand voice or a described image/video) and asks for an Instagram, LinkedIn, X/Twitter, or TikTok caption. Do NOT use when the user wants a dedicated standalone LinkedIn post - use linkedin-post-writer instead; or a multi-post X thread - use tweet-thread-builder instead; or to adapt one existing piece of content into versions for several channels - use cross-platform-reformatter instead.

SkillMedev/skills

Reframe and export a finished video for social platforms - 9:16 ↔ 16:9 cropping, burned-in captions, a platform-native first frame, loop design, and per-platform specs (aspect, length, safe areas) for TikTok, Reels, Shorts, X, and LinkedIn. Use when someone says "make this vertical", "crop to 9:16", "format for TikTok/Reels/Shorts", "add captions/subtitles", "why is my video cut off on mobile", "resize for Instagram", or "export for social". Do NOT use when the question is about the storyboard or shot order before any video exists (use video-storyboard); the animation craft of how elements move (use motion-design-principles); animated word-by-word caption styling (use kinetic-typography); palette, contrast, or lighting (use motion-color-and-light); directing the product-demo content and screen choreography (use product-demo-director); or scoring, beat-syncing, or audio (use sound-and-music-sync) - this is the craft layer that decides WHAT to format for the feed, then hands a concrete spec to remotion-compo...

SkillMedev/skills

Writes and tunes PySpark jobs - join strategy and broadcast size limits, shuffle-partition sizing, skew diagnosis and salting, UDF avoidance, caching, and output file layout - with concrete size and skew thresholds. Use when someone asks "why is my Spark job slow", "should I broadcast this join", "one task takes forever while the rest finish", "my job OOMs during a join", or is writing a new PySpark ETL job. Do NOT use for Kafka topic, consumer-group, or streaming-pipeline design - use kafka-pipelines instead; do NOT use for single-machine dataframe work that fits in memory - use pandas-expert instead.

SkillMedev/skills

Builds clean, performant, accessible SwiftUI views with correct state ownership, scoped invalidation, and smooth list scrolling, and reviews existing SwiftUI code against a concrete frame-time and re-render budget. Use when someone asks "why does my SwiftUI list stutter", "should this be @State or @Observable", "my whole screen re-renders when one row changes", "how do I animate this transition", or wants a SwiftUI view built or refactored. Do NOT use for cross-platform React Native apps - use react-native-pro instead; do NOT use for Flutter widget trees - use flutter-widget-architect instead; do NOT use for Android Compose UIs - use jetpack-compose-builder instead.

相关技能