Communitygithub.com

金融與外匯數據技能

用於需要獲取即時或歷史貨幣數據的任務,例如「將美元兌換成歐元」、「當前/過往匯率」、「特定日期/範圍內的匯率」或「比特幣/以太幣的當前價格、市值、24小時變化」。

金融與外匯數據技能 是什麼?

此技能提供無需 API 金鑰即可獲取匯率和加密貨幣價格的標準化方法,防止模型依賴於訓練記憶中過時或已失效的 API。它主要支援兩個資料來源:Frankfurter(預設用於法定貨幣匯率,基於歐洲央行參考匯率)和 CoinGecko 免費層(用於加密貨幣價格、市值和 24 小時變化)。這兩者皆無需 API 金鑰,但 CoinGecko 有較嚴格的速率限制(每分鐘約 5-15 次請求)。技能明確定義了使用流程:首先區分是法定貨幣還是加密貨幣,然後根據需要選擇日期的匯率或價格,並強制所有數值必須附帶日期和來源,禁止從訓練記憶中獲取匯率進行計算。它還明確列出了不應使用的服務(如 exchangerate.host、Fixer、Alpha Vantage)及其替代方案,並針對股票報價、經濟指標等僅提供明確的「無法支援」回應,而非猜測。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

金融與外匯數據技能 是做什麼的?

無需 API 金鑰即可獲取匯率和加密貨幣價格。此技能旨在防止以下錯誤:從訓練記憶中使用 exchangerate.host、Fixer 或 Alpha Vantage——這些服務現在都需要金鑰——或者將訓練數據中過時的匯率用於實際計算。

排名 API

  1. Frankfurter (api.frankfurter.dev) - 法定貨幣匯率的預設來源。歐洲央行參考匯率,約 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 調用;對於任何列表請求,優先使用此 API。

交付成果

匯率或價格及其 date/時間戳和來源名稱,以及使用的確切 URL。任何轉換都應顯示計算過程:250 USD × 0.87352 (ECB, <匯率日期>) = 218.38 EUR。

請勿使用 - 請改用 X

  • exchangerate.host - 每個請求現在都需要 access_key;經驗證,無金鑰方式已失效。Frankfurter 可替代它。
  • Fixer、Alpha Vantage、Finnhub、Polygon、OpenExchangeRates - 需要金鑰;當 Frankfurter/CoinGecko 已能滿足需求時,請勿要求用戶註冊。
  • 股票/權益報價 - 無任何無金鑰的 API 能通過驗證。請明確說明這一點,並列出付費選項,而非憑空捏造價格。
  • GDP、通貨膨脹、失業率、貿易數據 - 請使用政府開放數據(government-open-data)。
  • 財務建議 - 此技能用於獲取數據;買入/賣出/配置判斷不在範圍內。僅呈現數據,不提供建議。

品質標準

  • 每個數字都必須附帶其日期和來源;不得從訓練記憶中獲取匯率或價格。
  • 尊重 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.

相關技能