Skip to content

feat: proactive map visualization + travel planning skill#51

Merged
cablate merged 6 commits intomainfrom
feat/travel-planning-skill
Mar 17, 2026
Merged

feat: proactive map visualization + travel planning skill#51
cablate merged 6 commits intomainfrom
feat/travel-planning-skill

Conversation

@cablate
Copy link
Owner

@cablate cablate commented Mar 16, 2026

Summary

Two problems fixed:

1. AI doesn't proactively generate maps

  • static_map description now says "PROACTIVELY call after explore_area, plan_route, search_nearby, or directions"
  • explore_area and plan_route descriptions end with "After results, call static_map to visualize"

2. Trip plans cluster in one area

  • New references/travel-planning.md — complete methodology:
    • District identification before searching
    • Geographic arc routing (no backtracking)
    • Time budget guidelines (5-7 stops/day)
    • 7 anti-patterns with fixes
  • explore_area description: "call multiple times with district names, not city name"
  • plan_route description: "geographic arc per day"
  • Recipe 1 (Trip Planning) rewritten with district-first, always-visualize approach

Test plan

  • npm run build passes
  • Claude Desktop trip plan uses multiple explore_area calls for different districts
  • Claude Desktop proactively calls static_map after route planning
  • Route follows geographic arc, not backtracking

🤖 Generated with Claude Code

cablate and others added 6 commits March 17, 2026 02:28
Problems fixed: 1. AI never calls static_map unless explicitly asked → added PROACTIVELY hint to static_map description 2. Trip plans cluster in one area → added district-based exploration hints to explore_area and plan_route descriptions 3. No travel planning methodology → new references/travel-planning.md with anti-patterns, time budgets, correct flow Changes: - static_map: "PROACTIVELY call after explore_area, plan_route, etc." - explore_area: "call multiple times with district names, not city name" - plan_route: "geographic arc per day, call static_map after" - New: references/travel-planning.md (complete methodology) - Recipe 1 rewritten: district-first, always-visualize approach - SKILL.md: added travel-planning.md to reference table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…very Replaces AI-knowledge-dependent district approach with tool-driven flow: 1. search_places("top attractions in {city}") → naturally diverse anchors 2. Cluster anchors by proximity → assign to days as geographic arcs 3. explore_area around each anchor → find supporting restaurants/cafes 4. plan_route per day → static_map per day Verified: search_places("top attractions in Kyoto") returns points spanning 8km×10.7km across Fushimi/Higashiyama/Kinkaku-ji/Arashiyama — natural geographic diversity without needing pre-knowledge of city districts. Also: static_map description now says PROACTIVELY call after other tools. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Search Along Route (new tool): - Uses Google Places searchText API with searchAlongRouteParameters - Internally: directions(A→B) → get polyline → searchText along polyline - Results ranked by minimal detour time, not proximity - Tested: Fushimi Inari→Kiyomizu-dera finds 5 along-route restaurants Tool description improvements: - static_map: PROACTIVELY call after search/route tools - explore_area: use district names not city name - plan_route: geographic arc per day Travel planning methodology (references/travel-planning.md): - Tool-driven geographic spread via search_places anchors - 6-layer decision model from research - Anti-pattern table + time budget guidelines - Search Along Route as core filling mechanism All 9 files synced (16 → 17 tools). 132 smoke test assertions, 0 failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6 reference files forming a comprehensive knowledge package: New files: - architecture.md — system architecture, transport modes, tool registration, code map - google-maps-api-guide.md — API endpoints, pricing, coverage, common gotchas - geo-domain-knowledge.md — GIS fundamentals, coordinates, spatial search, Japan context - decisions.md — 10 ADRs with context and rationale Updated files: - travel-planning.md — complete 6-layer model with Search Along Route - tools-api.md — Recipe 1 rewritten with search_along_route, added tool docs - SKILL.md — expanded reference table (6 files, 3 categories) Reading this skill package gives full capability to maintain, develop, and make informed decisions about this project. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Agent Skill (skills/google-maps/) — how to USE the tools: - SKILL.md, tools-api.md, travel-planning.md Project Docs Skill (skills/project-docs/) — how to DEVELOP/MAINTAIN: - SKILL.md, architecture.md, google-maps-api-guide.md, geo-domain-knowledge.md, decisions.md (10 ADRs) Separation ensures the agent skill stays focused on tool usage (published to skill registries) while project knowledge lives in its own skill for developer onboarding. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cablate cablate merged commit 3f98e6d into main Mar 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant