Communitygithub.com

地理與地點資料

當任務需要即時地理查詢時使用——「對這個地址進行地理編碼」、「這些座標是什麼地方」(反向地理編碼)、「這個城市的經緯度」、「這個郵遞區號屬於哪個國家/州」,或「國家資訊:首都、貨幣、人口、國旗」。預設地理編碼為 Nominatim (OpenStreetMap);郵遞區號查詢使用 Zippopotam;國家資訊使用 APICountries。所有 API 皆無需金鑰。請勿用於查詢某地點的天氣——請改用 weather-climate;請勿用於查詢隨時間變化的國家層級統計資料(GDP、人口趨勢)——請改用 government-open-data;如果請求是模糊的「我需要即時資料」,請轉發至 public-data-api-picker。

地理與地點資料 是什麼?

這個技能提供一組無需 API 金鑰的即時地理與地點資料查詢功能。它能將地址、名稱、座標和郵遞區號轉換為結構化地理資料,並取得首都、貨幣、人口等國家資訊。主要支援的平台包括 Nominatim (OpenStreetMap) 的地理編碼與反向地理編碼、Open-Meteo 的城市快速查詢、Zippopotam 的郵遞區號查詢,以及 APICountries 的國家資訊查詢。此技能的設計避免了開發者因訓練記憶而直接使用需要付費金鑰的 Google Maps API,並提供了清晰的 API 選用規則與調用限制,例如 Nominatim 要求每秒最多一個請求並需提供真實的 User-Agent。此外,它明確列出應避免使用的 API(如 Google Maps、REST Countries),並引導複雜或模糊的請求至其他專門技能,確保輸出的資料品質與效率。

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

在你喜歡的 AI 中提問

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

說明文件

地理與地點資料 是做什麼的?

將地名、地址、座標和郵遞區號轉換為結構化的地理資訊,全部使用無需金鑰的 API。此技能避免的錯誤:因為訓練記憶而直接使用 Google Maps/Places API——需要付費金鑰與啟用帳單——但 Nominatim 能免費回答相同的查詢;或者在數十個列出的地理編碼器中猶豫不決,不知道哪個實際可用。

API 排名

  1. Nominatim (nominatim.openstreetmap.org) - 地理編碼與反向地理編碼的預設 API。使用 OSM 資料,全球適用,無需金鑰。下方有嚴格的禮儀規則。
  2. Open-Meteo Geocoder - 僅供城市/城鎮名稱查詢經緯度。速度更快且無規則限制;當輸入是單純的聚落地名而非地址或地標時使用。
  3. Zippopotam.us - 郵遞區號查詢地點/州/座標,支援超過 60 個國家,無需金鑰。
  4. APICountries (www.apicountries.com) - 國家資訊:首都、貨幣、語言、人口、國旗、邊界。無需金鑰。(它提供舊版 REST Countries 的回應格式;REST Countries 本身現在在無金鑰的情況下會回傳棄用錯誤——請參閱「請勿使用」章節。)

操作流程

  1. 分類輸入:地址/地標 → Nominatim 搜尋;座標 → Nominatim 反向查詢;純城市名稱 → Open-Meteo 地理編碼器;郵遞區號 → Zippopotam;國家名稱/代碼 → APICountries。
  2. 遵守 Nominatim 禮儀——這些是強制執行的規則,而非建議:最多每秒 1 個請求,使用能識別你應用程式的真實 User-Agent(匿名 UA 會被封鎖),禁止批次地理編碼數千行資料。對於批次任務,請在迴圈中加入至少 1 秒的延遲並告知使用者;對於極大量的批次,請告訴使用者此需求需要使用自託管的 Nominatim 或付費地理編碼器,而非持續對公開實例發送請求。
  3. 將 Nominatim 的座標視為字串讀取——回傳的 lat/lon 是 JSON 字串,而非數字。在進行運算前請先解析。

僅在使用者遺漏以下資訊時詢問:地點/座標輸入本身,以及用於辨識模糊名稱(如 "Springfield")的國家背景資料——預設取用 Nominatim 的第一個結果並告知使用者是哪一個。

URL 模板 + 實際回應格式

地理編碼 (搜尋):

https://nominatim.openstreetmap.org/search?q={URL 編碼後的查詢}&format=jsonv2&limit=1
[{"lat":"48.8582599","lon":"2.2945006","name":"Tour Eiffel",
  "display_name":"Tour Eiffel, 5, Avenue Anatole France, ..., 75007, France",
  "category":"man_made","type":"tower","importance":0.62}]

頂層是一個陣列;空陣列代表無匹配結果。加入 &addressdetails=1 可取得結構化的 address 物件,加入 &countrycodes=us 可限制搜尋國家。

反向地理編碼:

https://nominatim.openstreetmap.org/reverse?lat={經度}&lon={緯度}&format=jsonv2

回傳一個單一物件(而非陣列):display_name,以及在使用 &addressdetails=1(反向查詢預設開啟)時包含 address.{road,city,state,postcode,country_code}。

城市名稱 → 經緯度(當你不需要完整地址時):

https://geocoding-api.open-meteo.com/v1/search?name={城市名稱}&count=1
{"results":[{"name":"Berlin","latitude":52.52437,"longitude":13.41053,
  "country_code":"DE","timezone":"Europe/Berlin","population":3426354}]}

當完全沒有匹配結果時,不會有 results 這個鍵——請檢查鍵是否存在,而非檢查是否為空陣列。

郵遞區號:

https://api.zippopotam.us/{國家代碼}/{郵遞區號}        ← 例如 /us/90210, /de/10115
{"country":"United States","places":[{"place name":"Beverly Hills",
  "state":"California","state abbreviation":"CA","latitude":"34.0901","longitude":"-118.4065"}]}

注意事項:鍵名包含空格("place name"、"post code");座標是字串;未知的郵遞區號會回傳 404 狀態碼且內容為空,而非 JSON。

國家資訊:

https://www.apicountries.com/name/{名稱}      ← 模糊搜尋,回傳陣列
https://www.apicountries.com/alpha/{代碼}     ← ISO alpha-2/alpha-3 代碼,回傳物件
[{"name":"Japan","capital":"Tokyo","region":"Asia","population":126476461,
  "currencies":[{"code":"JPY","symbol":"¥"}],"languages":[{"name":"Japanese"}],
  "alpha2Code":"JP","flags":{"png":"https://flagcdn.com/w320/jp.png"}}]

產出結果

結構化的結果(座標轉換為數字、地址組成部分或國家資訊)以及所使用的確切 URL。對於批次任務:迴圈確實有加上節流,並說明速率限制。

請勿使用——請改用 X 代替

  • Google Maps / Places, Mapbox, HERE——需要金鑰且會產生帳單費用;上述所有 API 都是免費的。請勿要求使用者註冊。
  • REST Countries (restcountries.com)——其傳統端點會回傳棄用錯誤,而替代方案需要驗證金鑰;APICountries 以無需金鑰的方式提供相同的格式。
  • ip-api.com 及大多數免費 IP 地理定位方案——免費方案僅支援 HTTP(無法滿足任何 HTTPS 要求);此技能包不包含任何 IP 地理定位 API。
  • 你剛完成地理編碼的位置的天氣——請改用 weather-climate。
  • 時間序列的國家統計資料——請改用 government-open-data。

品質標準

  • Nominatim 請求必須攜帶真實的 User-Agent,且每秒不超過 1 個請求——包括在迴圈內部。
  • 字串形式的座標在進行任何數學運算前,必須先解析為數字。
  • 模糊的地名必須明確告知解析結果(例如「取用了 Springfield, Illinois——Nominatim 的第一個結果」)。

資料來源及可用性驗證來自 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

Use when a task needs live or historical money data - "convert USD to EUR", "current/past exchange rate", "FX rate on this date / over this range", or "current price of Bitcoin/Ethereum, market cap, 24h change". Frankfurter (ECB reference rates, no key) is the FX default; CoinGecko's free keyless tier covers crypto. Do NOT use for stock quotes or equities - no keyless stock API survives verification, say so instead of guessing; do NOT use for country economic indicators like GDP or inflation series - use government-open-data instead; if the request is a vague "I need live data", route through public-data-api-picker.

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

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.

相關技能