界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

text-commute-info

text-commute-info

【效率与协作】Gets your commute time and route options, then texts you the details

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: text-commute-info description: Gets your commute time and route options, then texts you the details metadata: author: ray.zo.computer category: Community display-name: Text commute travel time and route emoji: 🚏

Prerequisites

  • User should have their phone number added

Inputs

  • Origin
  • Destination
  • Travel mode (driving, transit, walking, bicycling, two-wheeler)

Protocol

  1. Build the correct URL for the Google Maps API URL as following:
    https://www.google.com/maps/dir/?api=1&origin=<ORIGIN>&destination=<DESTINATION>&travelmode=<TRAVELMODE> where <ORIGIN> is the user's provided origin, <DESTINATION> is the user's provided destination, and <TRAVELMODE> is the user's requested travel mode.
  2. Use tool view_webpage to view the URL you constructed.
  3. Using tool send_sms_to_user, relay the information from the page to the user, giving them the top two travel options with their estimated travel time. If transit, explicitly list every train or bus line and transfer used in a route (e.g. Take the M, then G, then L). Also include the URL so the user can see the route on Google Maps.
  4. Inform the user that they can repeat this workflow as a Rule or Agent Task. For example, a Rule could be
When I text you asking for commute info, use `prompt Prompts/text-commute-info.prompt.md` but IGNORE step 4.

and an Agent Task could be set to run daily in the morning so that the user can be prepared for going to work or school. If the user wants this, use tool create_scheduled_task with delivery_method: "sms" and instruction:

Run `prompt Prompts/text-commute-info.prompt.md` with origin <ORIGIN>, destination <DESTINATION>, and travel mode <TRAVELMODE>, but IGNORE step 4
我的收藏