[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CTVB93W6YYYWYGXFZ5W9G0":3,"skill-same:01M7CTVB93W6YYYWYGXFZ5W9G0":141},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M7CTVB93W6YYYWYGXFZ5W9G0","maps",null,"Use when MDE work touches Google Maps Platform, Places, Maps JavaScript, markers\u002Fpins, routes\u002FETA, geocoding, map grounding, keys, field masks, attribution or location-search failures. Do not use for generic GIS, Mapbox-only or unrelated mapping features.","amoai-tech\u002Fmdeai","amoai-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F320616881?v=4","01M7CTJYGWP82J2HHMQC5NN9JP","amo","01M7CTJYHE5YQRGQSDJES3Z0QE",2,"MIT","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: maps\ndescription: >-\n  Use when MDE work touches Google Maps Platform, Places, Maps JavaScript, markers\u002Fpins, routes\u002FETA, geocoding, map grounding, keys, field masks, attribution or location-search failures. Do not use for generic GIS, Mapbox-only or unrelated mapping features.\ntitle: maps — Google Maps Platform (comprehensive)\nimpact: HIGH\nimpactDescription: Places enrichment, Maps grounding, ChatMap, batch APIs, security, AI code assist\ntags: google-maps, places-api, maps-links, gemini-grounding, mdeai, mastra, security, cli, mcp\nmetadata:\n  verified-package: \"@googlemaps\u002Fplaces 2.4.1 \u002F @vis.gl\u002Freact-google-maps 1.8.3 \u002F @googlemaps\u002Fmarkerclusterer 2.6.2\"\n  verified-at: \"2026-09-28\"\n---\n\n# maps — Google Maps Platform\n\n## Load order (keep context small)\n\n1. This **`SKILL.md`** — Quick routing table + Consolidated sibling note.\n2. **GMP doc questions** — read the pinned official Google Maps skill first, then one MDE reference relevant to the task.\n3. Use [`references\u002Freference-index.md`](references\u002Freference-index.md) to choose one authoritative source; then load only the MDE reference needed.\n4. **`scripts\u002Fgmaps.py` + `references\u002Fgmaps-cli-behavior.md`** only for batch CLI work.\n\nVerify current Maps tooling before relying on an MCP integration.\n\n---\n\n## Official Google Maps upstream + MDE overlay\n\n**Decision:** Google’s official `google-maps-platform` skill is the pinned upstream\u002Freference layer. This `maps` skill remains the only active MDE Maps skill. Do not install a second active top-level Maps skill in this repo.\n\n- Official docs: https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fai\u002Fagent-skills\n- Official source: https:\u002F\u002Fgithub.com\u002Fgooglemaps\u002Fagent-skills\n- Pinned reviewed copy: [`references\u002Fvendor\u002Fgoogle-maps-platform\u002FSKILL.md`](references\u002Fvendor\u002Fgoogle-maps-platform\u002FSKILL.md)\n- Reviewed upstream commit: `6606930272e554171b42d69312674cbe40aa819c`\n\n## Current Google guidance workflow\n\nFor non-trivial implementation, migration, bug fix, review, or API\u002Fversion claim:\n1. Read this MDE skill for repo architecture.\n2. Retrieve Google’s current Maps Platform skills index and load only the matching product sub-skill.\n3. Use Maps Platform Code Assist\u002Fcurrent official docs only when the sub-skill does not fully cover the task.\n4. Apply MDE Supabase, Mastra, security, UI, and testing constraints.\n5. Run the PR\u002Fcompliance checks below before completion.\n\nDo not implement changing APIs, pricing, coverage, deprecations, quotas, or billing behavior from model memory. MDE ownership remains: Supabase = inventory truth; Mastra = orchestration; Maps\u002FPlaces = geo truth.\n\n## Source precedence and freshness\n\nUse [`references\u002Freference-index.md`](references\u002Freference-index.md). Priority is: current Google implementation docs\u002Fcanonical library docs → current Google architecture\u002FAI docs → Google product pages\u002Fblogs → community\u002Fthird-party sources. Search results and third-party skills are discovery only. For pricing, quotas, regional coverage, product status, deprecations, AI availability, or field availability, fetch a current official source before deciding.\n\nFor Code Assist, prefer the Google-hosted remote MCP endpoint `https:\u002F\u002Fmapscodeassist.googleapis.com\u002Fmcp`; do not add the deprecated local npm Code Assist package.\n\n## PR review contract\n\n### Source of truth\n\nChanged map\u002Fplace code and tests → this canonical skill → current Google Maps documentation \u002F Code Assist → actual provider responses or stored grounded records.\n\n### Review invariants\n\n- Keep server-only Places\u002Fgrounding credentials out of client bundles; restrict browser keys.\n- Use the smallest required Places API (New) field mask for the exact endpoint.\n- Do not invent or transform ungrounded place IDs, coordinates, URLs, hours, ratings, prices, availability, or business facts into provider truth.\n- Preserve `mapId` where AdvancedMarker requires it.\n- Reuse safe cached grounded results and stable provider\u002Fdatabase IDs across map\u002Flist\u002Fchat state.\n- Verify API\u002Fversion claims against current Google Maps documentation.\n- For a field-mask or billable-call defect, include the request path, smallest fix, and targeted proof of required fields without unnecessary requests.\n\n---\n\n## Product-selection routing matrix\n\nChoose the modern product before coding, then verify the matching current Google sub-skill.\n\n| Need | Default product direction |\n|---|---|\n| React map + markers | Maps JavaScript API via `@vis.gl\u002Freact-google-maps` + Advanced Markers |\n| Place search\u002Fdetails\u002Fautocomplete | Places API (New) \u002F current Place APIs |\n| Routes, ETA, route matrix | Routes API \u002F current Route APIs |\n| Address validation\u002Fstandardization | Address Validation API |\n| Address ↔ coordinates | Geocoding API |\n| Static map \u002F Street View image | Maps Static API \u002F Street View Static API |\n| Air quality, pollen, solar, weather | Load the current matching environmental sub-skill |\n\nDo not select a product from memory when current Google guidance is available.\n\n---\n\n## Quick routing\n\n| Task | Go to |\n|------|-------|\n| **CLI batch** — use the maintained batch helper and behavior notes | [`scripts\u002Fgmaps.py`](scripts\u002Fgmaps.py) + [`references\u002Fgmaps-cli-behavior.md`](references\u002Fgmaps-cli-behavior.md) |\n| **Security** — API key architecture, HTML pages, embed iframes | [`references\u002Fsecurity-and-optimization.md`](references\u002Fsecurity-and-optimization.md) |\n| **Agentic UI \u002F A2UI** — Google Maps toolkit vs CopilotKit Map vs existing MDE Google Maps | [`references\u002Fa2ui-and-agentic-maps.md`](references\u002Fa2ui-and-agentic-maps.md) |\n| **Source selection \u002F current docs** | [`references\u002Freference-index.md`](references\u002Freference-index.md) |\n\n## mdeAI environment\n\n```\nNEXT_PUBLIC_GOOGLE_MAPS_API_KEY — Frontend (browser) — Maps JS API; add Places API (New) for browser Places New search\u002Fautocomplete\nGOOGLE_PLACES_API_KEY       — Server-side only — Places API (New), enrichment scripts\nGOOGLE_MAPS_API_KEY         — Server-side Maps APIs explicitly required by the feature\nGOOGLE_ROUTES_API_KEY       — Edge functions — Routes API\n```\n\n**Medellín anchor:** `{ latitude: 6.2442, longitude: -75.5812 }` — default `locationBias` center and Maps grounding `latLng`.\n\n**Never expose `GOOGLE_PLACES_API_KEY` through a `NEXT_PUBLIC_*` variable** — it is server-side only.\n\n---\n\n## Places API (New) — field masks for mdeAI\n\nEvery request uses `X-Goog-FieldMask` header. Only request fields you need — billing is field-mask driven.\n\n### Enrichment mask (PLACES-005-010)\n\n```\nplaces.id,places.displayName,places.googleMapsLinks,places.location,places.generativeSummary\n```\n\n| Field | Returns | mdeAI use |\n|-------|---------|-----------|\n| `places.id` | Place ID (`ChIJ...`) | Store as `place_id` |\n| `places.googleMapsLinks.placeUri` | Canonical `https:\u002F\u002Fmaps.app.goo.gl\u002F...` URL | Store as `maps_url` |\n| `places.googleMapsLinks.directionsUri` | Directions link | Optional card button |\n| `places.googleMapsLinks.photosUri` | Google Maps photos link | Optional \"see photos\" |\n| `places.location` | `{ latitude, longitude }` | Backfill lat\u002Flng |\n| `places.generativeSummary` | provider summary + disclosure | Use only with a model\u002Fschema that preserves provider provenance and disclosure; never collapse into generic MDE `ai_summary` |\n\n### Volatile provider facts\n\nPricing, free tiers, geographic availability, preview\u002FGA status, field availability, and quotas are volatile. Always verify them against current Google Maps Platform documentation before architecture, billing, or product decisions. Preserve required attribution\u002Fdisclosure and cache only when current terms permit it.\n\n---\n\n## Server-side Places enrichment\n\nKeep Places API (New) calls server-side with `GOOGLE_PLACES_API_KEY`; request only fields the feature needs. Verify current client syntax and field names in Google docs before implementation.\n\n---\n\n## Gemini Maps grounding — summary\n\nVerify current grounding products, availability, quotas, pricing, and structured-output compatibility in official Google guidance before implementation. Keep `MAPS_GROUNDING_DAILY_LIMIT=0` as the MDE kill switch to fall back to Supabase.\n\n---\n\n## Maps JavaScript API — ChatMap.tsx summary\n\n### React implementation rule\n\nMDE React\u002FNext.js Maps code uses `@vis.gl\u002Freact-google-maps`. Prefer `\u003CAPIProvider>`, `\u003CMap>`, `useMapsLibrary()`, and Advanced Marker APIs. Do not introduce `google-map-react`, `@react-google-maps\u002Fapi`, or another wrapper. Use `@googlemaps\u002Fjs-api-loader` only for non-React utilities or an existing raw-JS boundary. See [`references\u002Freact-vis-gl\u002FREADME.md`](references\u002Freact-vis-gl\u002FREADME.md).\n\n- Map containers need explicit height; Advanced Markers need the current required marker library and a valid `mapId`.\n- International search\u002Fgeocoding must consider explicit `language` and `region` rather than silently inheriting machine\u002FIP locale.\n- Keep `data-testid=\"map-pin\"` on pins used by MDE smoke tests; keep frontend keys restricted to approved referrers + required browser APIs only.\n\n---\n\n## Session tokens — autocomplete billing\n\nUse the current provider-recommended session-token mechanism for the API being called. In Maps JavaScript Place Autocomplete Data API, use `AutocompleteSessionToken`; for web-service flows, use a unique token per user autocomplete session. Start a fresh token after selection\u002Ftermination and verify current billing semantics in official docs.\n\n---\n\n## Demo key policy\n\nDemo Key: prototypes only. Production\u002Fshared environments use restricted project credentials for required APIs\u002Forigins. Never commit keys.\n\n---\n\n## GCP key setup — quick reference\n\n| Key | Restrictions | APIs enabled |\n|-----|-------------|-------------|\n| `NEXT_PUBLIC_GOOGLE_MAPS_API_KEY` | HTTP referrers for approved MDE origins | Maps JavaScript API; add Places API (New) when browser Places New search\u002Fautocomplete is used |\n| `GOOGLE_PLACES_API_KEY` | Server IP | Places API (New) only |\n| `GOOGLE_MAPS_API_KEY` | Server IP | Only explicitly required server Maps APIs (for example Maps Static) |\n| `GOOGLE_ROUTES_API_KEY` | Server IP | Routes API |\n\n> Full 2-key security architecture → [`references\u002Fsecurity-and-optimization.md`](references\u002Fsecurity-and-optimization.md)\n\n**Enable \"Places API (New)\"** in GCP Console — NOT \"Places API\" (legacy). Different billing, different endpoints, different field names.\n\n---\n\n## MDE domain handoff\n\nMaps\u002FPlaces provides geo truth, not event\u002Frental inventory. Keep inventory in Supabase, orchestration in Mastra, and route domain behavior through the owning `events` or `real-estate` skill. Never invent listings from Maps grounding.\n\n---\n\n## Legacy API hard failures\n\nDo not introduce `google.maps.Marker`, legacy Places `Autocomplete`\u002F`SearchBox`\u002F`PlacesService`, legacy `DirectionsService`\u002F`DirectionsRenderer`, `DistanceMatrixService`, `visualization.HeatmapLayer`, or `google.maps.drawing`. Retrieve current Google guidance and use the recommended modern replacement before editing these surfaces.\n\n**Directions status override (verified 2026-09-22):** current Google Maps JavaScript reference documentation says `DirectionsService` and `DirectionsRenderer` are **deprecated as of February 25, 2026** and **not scheduled to be discontinued**. They may remain in existing integrations, but MDE must not introduce them in new code; use the current Routes library\u002FAPI (`Route` \u002F `RouteMatrix`) instead. If the pinned vendor skill says these services were disabled in March 2025, current implementation documentation wins:\n- https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fdocumentation\u002Fjavascript\u002Freference\u002Fdirections\n- https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fdocumentation\u002Fjavascript\u002Froutes\u002Foverview\n\n## Critical failure checks\n\nBefore approval verify: no unsupported browser REST\u002FCORS path; map container has explicit height; React uses `@vis.gl\u002Freact-google-maps` with the required marker library; Advanced Markers use a valid `mapId`; server keys stay out of client bundles; web-component objects are not stringified as HTML attributes; headless tests do not assume WebGL\u002F3D; coordinates stay `{ lat, lng }`; international flows set intentional locale\u002Fregion; Places field masks are minimal; no legacy API was introduced.\n\n## Compliance review\n\nFor significant Maps changes verify provider-sourced geo\u002Fplace data, required attribution, permitted storage\u002Fcaching, no LLM-fabricated provider facts, correct browser\u002Fserver key restrictions, intentional billable fields\u002Fcalls, and applicable regional\u002FEEA requirements against current Google terms.\n\n## Google Places provider summaries\n\nGoogle Places provider summaries are distinct from MDE `ai_summary`. Preserve provider provenance and disclosure end-to-end. Render provider summaries through `GooglePlacesSummary`; missing provider disclosure suppresses the summary. Do not relabel or store them as generic MDE `ai_summary`.\n\n\n## Maps completion evidence gate\n\nDo not call a Maps change complete until evidence covers: targeted Maps tests; no new legacy API; client\u002Fserver key exposure; minimal field masks for changed Places calls; compliance\u002Fattribution review; and a browser smoke test when map UI changed. Record any current-doc or Code Assist source used for an API\u002Fversion decision.\n\nFor upstream maintenance, run `node .claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fcheck-google-maps-upstream.mjs`; drift is a review signal, never an automatic overwrite. Live-check classification: `references\u002Fmaintenance-classification.md`.\n","# maps — Google Maps Platform\n\n## Load order (keep context small)\n\n1. This **`SKILL.md`** — Quick routing table + Consolidated sibling note.\n2. **GMP doc questions** — read the pinned official Google Maps skill first, then one MDE reference relevant to the task.\n3. Use [`references\u002Freference-index.md`](references\u002Freference-index.md) to choose one authoritative source; then load only the MDE reference needed.\n4. **`scripts\u002Fgmaps.py` + `references\u002Fgmaps-cli-behavior.md`** only for batch CLI work.\n\nVerify current Maps tooling before relying on an MCP integration.\n\n---\n\n## Official Google Maps upstream + MDE overlay\n\n**Decision:** Google’s official `google-maps-platform` skill is the pinned upstream\u002Freference layer. This `maps` skill remains the only active MDE Maps skill. Do not install a second active top-level Maps skill in this repo.\n\n- Official docs: https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fai\u002Fagent-skills\n- Official source: https:\u002F\u002Fgithub.com\u002Fgooglemaps\u002Fagent-skills\n- Pinned reviewed copy: [`references\u002Fvendor\u002Fgoogle-maps-platform\u002FSKILL.md`](references\u002Fvendor\u002Fgoogle-maps-platform\u002FSKILL.md)\n- Reviewed upstream commit: `6606930272e554171b42d69312674cbe40aa819c`\n\n## Current Google guidance workflow\n\nFor non-trivial implementation, migration, bug fix, review, or API\u002Fversion claim:\n1. Read this MDE skill for repo architecture.\n2. Retrieve Google’s current Maps Platform skills index and load only the matching product sub-skill.\n3. Use Maps Platform Code Assist\u002Fcurrent official docs only when the sub-skill does not fully cover the task.\n4. Apply MDE Supabase, Mastra, security, UI, and testing constraints.\n5. Run the PR\u002Fcompliance checks below before completion.\n\nDo not implement changing APIs, pricing, coverage, deprecations, quotas, or billing behavior from model memory. MDE ownership remains: Supabase = inventory truth; Mastra = orchestration; Maps\u002FPlaces = geo truth.\n\n## Source precedence and freshness\n\nUse [`references\u002Freference-index.md`](references\u002Freference-index.md). Priority is: current Google implementation docs\u002Fcanonical library docs → current Google architecture\u002FAI docs → Google product pages\u002Fblogs → community\u002Fthird-party sources. Search results and third-party skills are discovery only. For pricing, quotas, regional coverage, product status, deprecations, AI availability, or field availability, fetch a current official source before deciding.\n\nFor Code Assist, prefer the Google-hosted remote MCP endpoint `https:\u002F\u002Fmapscodeassist.googleapis.com\u002Fmcp`; do not add the deprecated local npm Code Assist package.\n\n## PR review contract\n\n### Source of truth\n\nChanged map\u002Fplace code and tests → this canonical skill → current Google Maps documentation \u002F Code Assist → actual provider responses or stored grounded records.\n\n### Review invariants\n\n- Keep server-only Places\u002Fgrounding credentials out of client bundles; restrict browser keys.\n- Use the smallest required Places API (New) field mask for the exact endpoint.\n- Do not invent or transform ungrounded place IDs, coordinates, URLs, hours, ratings, prices, availability, or business facts into provider truth.\n- Preserve `mapId` where AdvancedMarker requires it.\n- Reuse safe cached grounded results and stable provider\u002Fdatabase IDs across map\u002Flist\u002Fchat state.\n- Verify API\u002Fversion claims against current Google Maps documentation.\n- For a field-mask or billable-call defect, include the request path, smallest fix, and targeted proof of required fields without unnecessary requests.\n\n---\n\n## Product-selection routing matrix\n\nChoose the modern product before coding, then verify the matching current Google sub-skill.\n\n| Need | Default product direction |\n|---|---|\n| React map + markers | Maps JavaScript API via `@vis.gl\u002Freact-google-maps` + Advanced Markers |\n| Place search\u002Fdetails\u002Fautocomplete | Places API (New) \u002F current Place APIs |\n| Routes, ETA, route matrix | Routes API \u002F current Route APIs |\n| Address validation\u002Fstandardization | Address Validation API |\n| Address ↔ coordinates | Geocoding API |\n| Static map \u002F Street View image | Maps Static API \u002F Street View Static API |\n| Air quality, pollen, solar, weather | Load the current matching environmental sub-skill |\n\nDo not select a product from memory when current Google guidance is available.\n\n---\n\n## Quick routing\n\n| Task | Go to |\n|------|-------|\n| **CLI batch** — use the maintained batch helper and behavior notes | [`scripts\u002Fgmaps.py`](scripts\u002Fgmaps.py) + [`references\u002Fgmaps-cli-behavior.md`](references\u002Fgmaps-cli-behavior.md) |\n| **Security** — API key architecture, HTML pages, embed iframes | [`references\u002Fsecurity-and-optimization.md`](references\u002Fsecurity-and-optimization.md) |\n| **Agentic UI \u002F A2UI** — Google Maps toolkit vs CopilotKit Map vs existing MDE Google Maps | [`references\u002Fa2ui-and-agentic-maps.md`](references\u002Fa2ui-and-agentic-maps.md) |\n| **Source selection \u002F current docs** | [`references\u002Freference-index.md`](references\u002Freference-index.md) |\n\n## mdeAI environment\n\n```\nNEXT_PUBLIC_GOOGLE_MAPS_API_KEY — Frontend (browser) — Maps JS API; add Places API (New) for browser Places New search\u002Fautocomplete\nGOOGLE_PLACES_API_KEY       — Server-side only — Places API (New), enrichment scripts\nGOOGLE_MAPS_API_KEY         — Server-side Maps APIs explicitly required by the feature\nGOOGLE_ROUTES_API_KEY       — Edge functions — Routes API\n```\n\n**Medellín anchor:** `{ latitude: 6.2442, longitude: -75.5812 }` — default `locationBias` center and Maps grounding `latLng`.\n\n**Never expose `GOOGLE_PLACES_API_KEY` through a `NEXT_PUBLIC_*` variable** — it is server-side only.\n\n---\n\n## Places API (New) — field masks for mdeAI\n\nEvery request uses `X-Goog-FieldMask` header. Only request fields you need — billing is field-mask driven.\n\n### Enrichment mask (PLACES-005-010)\n\n```\nplaces.id,places.displayName,places.googleMapsLinks,places.location,places.generativeSummary\n```\n\n| Field | Returns | mdeAI use |\n|-------|---------|-----------|\n| `places.id` | Place ID (`ChIJ...`) | Store as `place_id` |\n| `places.googleMapsLinks.placeUri` | Canonical `https:\u002F\u002Fmaps.app.goo.gl\u002F...` URL | Store as `maps_url` |\n| `places.googleMapsLinks.directionsUri` | Directions link | Optional card button |\n| `places.googleMapsLinks.photosUri` | Google Maps photos link | Optional \"see photos\" |\n| `places.location` | `{ latitude, longitude }` | Backfill lat\u002Flng |\n| `places.generativeSummary` | provider summary + disclosure | Use only with a model\u002Fschema that preserves provider provenance and disclosure; never collapse into generic MDE `ai_summary` |\n\n### Volatile provider facts\n\nPricing, free tiers, geographic availability, preview\u002FGA status, field availability, and quotas are volatile. Always verify them against current Google Maps Platform documentation before architecture, billing, or product decisions. Preserve required attribution\u002Fdisclosure and cache only when current terms permit it.\n\n---\n\n## Server-side Places enrichment\n\nKeep Places API (New) calls server-side with `GOOGLE_PLACES_API_KEY`; request only fields the feature needs. Verify current client syntax and field names in Google docs before implementation.\n\n---\n\n## Gemini Maps grounding — summary\n\nVerify current grounding products, availability, quotas, pricing, and structured-output compatibility in official Google guidance before implementation. Keep `MAPS_GROUNDING_DAILY_LIMIT=0` as the MDE kill switch to fall back to Supabase.\n\n---\n\n## Maps JavaScript API — ChatMap.tsx summary\n\n### React implementation rule\n\nMDE React\u002FNext.js Maps code uses `@vis.gl\u002Freact-google-maps`. Prefer `\u003CAPIProvider>`, `\u003CMap>`, `useMapsLibrary()`, and Advanced Marker APIs. Do not introduce `google-map-react`, `@react-google-maps\u002Fapi`, or another wrapper. Use `@googlemaps\u002Fjs-api-loader` only for non-React utilities or an existing raw-JS boundary. See [`references\u002Freact-vis-gl\u002FREADME.md`](references\u002Freact-vis-gl\u002FREADME.md).\n\n- Map containers need explicit height; Advanced Markers need the current required marker library and a valid `mapId`.\n- International search\u002Fgeocoding must consider explicit `language` and `region` rather than silently inheriting machine\u002FIP locale.\n- Keep `data-testid=\"map-pin\"` on pins used by MDE smoke tests; keep frontend keys restricted to approved referrers + required browser APIs only.\n\n---\n\n## Session tokens — autocomplete billing\n\nUse the current provider-recommended session-token mechanism for the API being called. In Maps JavaScript Place Autocomplete Data API, use `AutocompleteSessionToken`; for web-service flows, use a unique token per user autocomplete session. Start a fresh token after selection\u002Ftermination and verify current billing semantics in official docs.\n\n---\n\n## Demo key policy\n\nDemo Key: prototypes only. Production\u002Fshared environments use restricted project credentials for required APIs\u002Forigins. Never commit keys.\n\n---\n\n## GCP key setup — quick reference\n\n| Key | Restrictions | APIs enabled |\n|-----|-------------|-------------|\n| `NEXT_PUBLIC_GOOGLE_MAPS_API_KEY` | HTTP referrers for approved MDE origins | Maps JavaScript API; add Places API (New) when browser Places New search\u002Fautocomplete is used |\n| `GOOGLE_PLACES_API_KEY` | Server IP | Places API (New) only |\n| `GOOGLE_MAPS_API_KEY` | Server IP | Only explicitly required server Maps APIs (for example Maps Static) |\n| `GOOGLE_ROUTES_API_KEY` | Server IP | Routes API |\n\n> Full 2-key security architecture → [`references\u002Fsecurity-and-optimization.md`](references\u002Fsecurity-and-optimization.md)\n\n**Enable \"Places API (New)\"** in GCP Console — NOT \"Places API\" (legacy). Different billing, different endpoints, different field names.\n\n---\n\n## MDE domain handoff\n\nMaps\u002FPlaces provides geo truth, not event\u002Frental inventory. Keep inventory in Supabase, orchestration in Mastra, and route domain behavior through the owning `events` or `real-estate` skill. Never invent listings from Maps grounding.\n\n---\n\n## Legacy API hard failures\n\nDo not introduce `google.maps.Marker`, legacy Places `Autocomplete`\u002F`SearchBox`\u002F`PlacesService`, legacy `DirectionsService`\u002F`DirectionsRenderer`, `DistanceMatrixService`, `visualization.HeatmapLayer`, or `google.maps.drawing`. Retrieve current Google guidance and use the recommended modern replacement before editing these surfaces.\n\n**Directions status override (verified 2026-09-22):** current Google Maps JavaScript reference documentation says `DirectionsService` and `DirectionsRenderer` are **deprecated as of February 25, 2026** and **not scheduled to be discontinued**. They may remain in existing integrations, but MDE must not introduce them in new code; use the current Routes library\u002FAPI (`Route` \u002F `RouteMatrix`) instead. If the pinned vendor skill says these services were disabled in March 2025, current implementation documentation wins:\n- https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fdocumentation\u002Fjavascript\u002Freference\u002Fdirections\n- https:\u002F\u002Fdevelopers.google.com\u002Fmaps\u002Fdocumentation\u002Fjavascript\u002Froutes\u002Foverview\n\n## Critical failure checks\n\nBefore approval verify: no unsupported browser REST\u002FCORS path; map container has explicit height; React uses `@vis.gl\u002Freact-google-maps` with the required marker library; Advanced Markers use a valid `mapId`; server keys stay out of client bundles; web-component objects are not stringified as HTML attributes; headless tests do not assume WebGL\u002F3D; coordinates stay `{ lat, lng }`; international flows set intentional locale\u002Fregion; Places field masks are minimal; no legacy API was introduced.\n\n## Compliance review\n\nFor significant Maps changes verify provider-sourced geo\u002Fplace data, required attribution, permitted storage\u002Fcaching, no LLM-fabricated provider facts, correct browser\u002Fserver key restrictions, intentional billable fields\u002Fcalls, and applicable regional\u002FEEA requirements against current Google terms.\n\n## Google Places provider summaries\n\nGoogle Places provider summaries are distinct from MDE `ai_summary`. Preserve provider provenance and disclosure end-to-end. Render provider summaries through `GooglePlacesSummary`; missing provider disclosure suppresses the summary. Do not relabel or store them as generic MDE `ai_summary`.\n\n\n## Maps completion evidence gate\n\nDo not call a Maps change complete until evidence covers: targeted Maps tests; no new legacy API; client\u002Fserver key exposure; minimal field masks for changed Places calls; compliance\u002Fattribution review; and a browser smoke test when map UI changed. Record any current-doc or Code Assist source used for an API\u002Fversion decision.\n\nFor upstream maintenance, run `node .claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fcheck-google-maps-upstream.mjs`; drift is a review signal, never an automatic overwrite. Live-check classification: `references\u002Fmaintenance-classification.md`.\n",{"name":5,"tags":24,"title":25,"impact":26,"metadata":27,"description":7,"impactDescription":30},"google-maps, places-api, maps-links, gemini-grounding, mdeai, mastra, security, cli, mcp","maps — Google Maps Platform (comprehensive)","HIGH",{"verified-at":28,"verified-package":29},"2026-09-28","@googlemaps\u002Fplaces 2.4.1 \u002F @vis.gl\u002Freact-google-maps 1.8.3 \u002F @googlemaps\u002Fmarkerclusterer 2.6.2","Places enrichment, Maps grounding, ChatMap, batch APIs, security, AI code assist","main","9955f6a8aa5de3c14fea562c7e6b72973366ba3c",".claude\u002Fskills\u002Fmaps",1,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai","https:\u002F\u002Fmdeai-psi.vercel.app","https:\u002F\u002Fgithub.com\u002Famoai-tech","2026-11-13 03:54:16",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add amoai-tech\u002Fmdeai --skill maps",{"tool":45,"command":46},"bunx","bunx skills add amoai-tech\u002Fmdeai --skill maps",{"tool":48,"command":49},"pnpm","pnpm dlx skills add amoai-tech\u002Fmdeai --skill maps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002FSKILL.md",true,[53,59,63,67,71,75,79,83,87,91,95,99,103,107,111,117,121,125,129,133,137],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"evals\u002Fevals.json","REFERENCE","参考文档",5739,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fevals\u002Fevals.json",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"evals\u002Ftrigger-evals.json",1188,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fevals\u002Ftrigger-evals.json",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fa2ui-and-agentic-maps.md",12513,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Fa2ui-and-agentic-maps.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fgmaps-cli-behavior.md",1087,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Fgmaps-cli-behavior.md",{"path":72,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fmaintenance-classification.md",4824,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Fmaintenance-classification.md",{"path":76,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Freact-vis-gl\u002Fcomponents-api.md",7079,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freact-vis-gl\u002Fcomponents-api.md",{"path":80,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Freact-vis-gl\u002Fgeometry-components.md",13822,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freact-vis-gl\u002Fgeometry-components.md",{"path":84,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Freact-vis-gl\u002Fhooks-api.md",5736,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freact-vis-gl\u002Fhooks-api.md",{"path":88,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Freact-vis-gl\u002Fpatterns.md",11079,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freact-vis-gl\u002Fpatterns.md",{"path":92,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Freact-vis-gl\u002Fplaces-autocomplete.md",6655,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freact-vis-gl\u002Fplaces-autocomplete.md",{"path":96,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Freact-vis-gl\u002FREADME.md",939,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freact-vis-gl\u002FREADME.md",{"path":100,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Freference-index.md",15206,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freference-index.md",{"path":104,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Freview.md",1254,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Freview.md",{"path":108,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fsecurity-and-optimization.md",10212,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Freferences\u002Fsecurity-and-optimization.md",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fcheck-classification.mjs","SCRIPT","脚本",9476,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fcheck-classification.mjs",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Fcheck-google-maps-upstream.mjs",3537,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fcheck-google-maps-upstream.mjs",{"path":122,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":123,"sourceHtmlUrl":124},"scripts\u002Fcheck-maps-reference-links.mjs",3733,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fcheck-maps-reference-links.mjs",{"path":126,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fcheck-visgl-compatibility.mjs",1240,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fcheck-visgl-compatibility.mjs",{"path":130,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fgmaps.py",38890,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fgmaps.py",{"path":134,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":135,"sourceHtmlUrl":136},"scripts\u002Fnetwork-retry.mjs",2047,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Fscripts\u002Fnetwork-retry.mjs",{"path":138,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":139,"sourceHtmlUrl":140},"tests\u002Ftest_gmaps.py",2663,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmaps\u002Ftests\u002Ftest_gmaps.py",[142,149,156,163,170,177],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":19},"01M7CV3D59CQX8N178NN3W5DEQ","mde-pr-review-supabase","Use when reviewing MDE Supabase SQL, Auth and RLS changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fsupabase\u002FSKILL.md",[],[],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":19},"01M7CV39XR1SPH7C4FNXAXMM36","mde-pr-review-stripe","Use when reviewing MDE Stripe payments and webhooks changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fstripe\u002FSKILL.md",[],[],{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":19},"01M7CV37HHNM5A144SEX2VE05N","mde-pr-review-nextjs","Use when reviewing MDE Next.js App Router changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fnextjs\u002FSKILL.md",[],[],{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":19},"01M7CV34C1M5STTKHX5CGVN3VS","mde-pr-review-mastra","Use when reviewing MDE Mastra agent, tool and workflow changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmastra\u002FSKILL.md",[],[],{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":19},"01M7CV31A37VPRRASAVGE8K8SN","mde-pr-review-maps","Use when reviewing MDE Google Maps and Places changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmaps\u002FSKILL.md",[],[],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":19},"01M7CV2Y70DQJ1VXFHS732CSQ4","mde-pr-review-copilotkit","Use when reviewing MDE CopilotKit and AG-UI changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fcopilotkit\u002FSKILL.md",[],[]]