闲社服务运行正常AI智能体自动化平台
s

SkedGo行程API

技能标识:skedgo-tripgo-api

Comprehensive interface for the SkedGo TripGo API, covering routing, public transport, trips, and location services. Use for multimodal journey planning, public transport data, and geocoding.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.3
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

SkedGo行程API

SkedGo TripGo API 技能

该技能提供SkedGo TripGo API的完整接口,使智能体能够执行多模式路线规划、获取公共交通信息、管理行程以及执行地理编码。

概述

TripGo API是一个多模式交通平台,允许用户规划结合公共交通、汽车、自行车、出租车、拼车等多种方式的行程。该技能将API端点封装为模块化脚本和文档参考。

全局技能位置: ~/.openclaw/skills/skedgo-tripgo-api/

配置

要使用此技能,必须设置以下环境变量:

  • - TRIPGOAPIKEY:您的TripGo API密钥(请求头:X-TripGo-Key)。
  • TRIPGOBASEURL:(可选)API的基础URL。默认为https://api.tripgo.com/v1。
  • TRIPGOWEBHOOKALLOWLIST:(可选,推荐)Webhook域名的逗号分隔白名单(例如example.com,webhooks.example.org)。
  • TRIPGOALLOWUNSAFE_WEBHOOK:(可选,默认为false)设置为true可绕过Webhook白名单检查,仅用于受信任的手动调试。

运行时要求

运行脚本前请安装以下二进制工具:

  • - curl(必需):API请求
  • jq(必需):JSON验证、安全JSON构建和URL编码
  • python3(可选):部分脚本的漂亮打印功能

安全说明

  • - 接受JSON参数的脚本在发送请求前会使用jq验证这些值。
  • 发送查询参数的脚本会对用户提供的值进行URL编码。
  • Webhook钩子注册默认强制使用https://和域名白名单(TRIPGOWEBHOOKALLOWLIST),以降低数据泄露风险。
  • 预期使用API密钥:请求会向配置的TripGo基础URL发送X-TripGo-Key。

目录结构

  • - SKILL.md:本文件。
  • references/:每个API部分的详细文档。
  • scripts/:每个API端点的可执行Bash脚本。

参考文档(references/)

文档按API部分组织。加载这些文件以了解特定端点、参数和响应结构。
  • - references/configuration.md:区域、交通服务提供商和兴趣点。
  • references/routing.md:行程规划和路线(A到B、多点)。
  • references/trips.md:行程管理(保存、更新、实时钩子)。
  • references/ttp.md:旅行者旅游问题(已弃用)。
  • references/geocode.md:搜索和自动补全。
  • references/locations.md:位置服务和兴趣点。
  • references/public-transport.md:公共交通运营商、路线、服务和实时数据。

脚本(scripts/)

每个脚本对应一个特定的API端点。它们设计为可直接执行或用作模板。

命名约定: scripts/<部分>-<功能名称>.sh

配置

  • - scripts/configuration-available-regions.sh
  • scripts/configuration-tsps-per-region.sh
  • scripts/configuration-pois-for-a-transport-mode.sh

路线规划

  • - scripts/routing-a-to-b-trips.sh
  • scripts/routing-a-to-b-to-c-trip.sh
  • scripts/routing-all-day-routing-between-events.sh
  • scripts/routing-all-day-routing-between-events-deprecated.sh(已弃用)

行程

  • - scripts/trips-retrieve-previously-computed-trip.sh
  • scripts/trips-save-trip-for-later-use.sh
  • scripts/trips-update-trip-with-real-time-data.sh
  • scripts/trips-gets-hooked-urls.sh
  • scripts/trips-hooks-a-trip-to-real-time-updates.sh
  • scripts/trips-removes-a-hooks-from-a-trip.sh
  • scripts/trips-mark-trip-as-planned-by-a-user.sh

TTP(已弃用)

  • - scripts/ttp-create-travelling-tourist-problem-deprecated.sh
  • scripts/ttp-delete-travelling-tourist-problem-deprecated.sh
  • scripts/ttp-delete-travelling-tourist-problem-solution-deprecated.sh

地理编码

  • - scripts/geocode-search-and-autocompletion.sh

位置

  • - scripts/locations-pois-for-a-circular-region.sh
  • scripts/locations-pois-for-map-region-using-cell-ids.sh
  • scripts/locations-additional-details-for-a-coordinate.sh

公共交通

  • - scripts/public-transport-operators-for-a-region-or-group-of-regions.sh
  • scripts/public-transport-routes-for-a-region-or-operator.sh
  • scripts/public-transport-details-of-a-route.sh
  • scripts/public-transport-services-for-a-route.sh
  • scripts/public-transport-departure-timetable-for-a-stop.sh
  • scripts/public-transport-real-time-information-for-a-service.sh
  • scripts/public-transport-get-details-of-a-service.sh
  • scripts/public-transport-get-real-time-alerts.sh

使用限制

  • - 请勿自行发明参数。 所有脚本仅使用references/中明确记录的参数。
  • 已弃用端点: 部分脚本标记为已弃用(例如TTP部分)。请谨慎使用或尽可能避免。
  • 验证: 如果参考文档中的参数或字段标记为待确认,请先通过实时API调用验证后再在生产环境中使用。
  • 环境: 运行任何脚本前,请确保环境中已设置TRIPGOAPIKEY。

示例

搜索位置:

bash
export TRIPGOAPIKEY=yourkeyhere
./scripts/geocode-search-and-autocompletion.sh --query 悉尼歌剧院 --near (-33.8688,151.2093)

规划行程:

bash
./scripts/routing-a-to-b-trips.sh --from (纬度,经度) --to (纬度,经度) --region AUNSWSydney

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skedgo-tripgo-api-1776292711 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skedgo-tripgo-api-1776292711 技能

通过命令行安装

skillhub install skedgo-tripgo-api-1776292711

下载

⬇ 下载 skedgo-tripgo-api v1.0.3(免费)

文件大小: 46.02 KB | 发布时间: 2026-4-16 16:22

v1.0.3 最新 2026-4-16 16:22
# skedgo-tripgo-api v1.0.3 (metadata + webhook guardrails)

## ✅ Registry metadata coherence fix
Updated `SKILL.md` frontmatter to include machine-readable OpenClaw requirements so ClawHub can correctly display runtime requirements:

- Required env var: `TRIPGO_API_KEY`
- Required binaries: `curl`, `jq`
- Primary credential env: `TRIPGO_API_KEY`

Added frontmatter:
```yaml
metadata: {"openclaw":{"requires":{"bins":["curl","jq"],"env":["TRIPGO_API_KEY"]},"primaryEnv":"TRIPGO_API_KEY"}}
```

## 🔒 Webhook exfiltration-risk mitigation
Hardened `scripts/trips-hooks-a-trip-to-real-time-updates.sh` with default-safe webhook policy:

1. Enforce `https://` webhook URLs only.
2. Parse and validate webhook host.
3. Require domain allowlist by default via:
- `TRIPGO_WEBHOOK_ALLOWLIST=example.com,webhooks.example.org`
4. Allow bypass only with explicit opt-in:
- `TRIPGO_ALLOW_UNSAFE_WEBHOOK=true`
5. Keep JSON input validation for headers and safe JSON body construction via `jq`.

This preserves legitimate TripGo webhook functionality while reducing abuse potential from arbitrary callback destinations.

## Docs updates
Updated `SKILL.md` to document:
- `TRIPGO_WEBHOOK_ALLOWLIST` (recommended)
- `TRIPGO_ALLOW_UNSAFE_WEBHOOK` (debug/trusted use only)
- security behavior for webhook registration

## Verification
- `bash -n` passed for updated webhook script.
- Manual behavior checks confirm:
- missing allowlist => blocked
- non-allowlisted host => blocked
- only allowlisted hosts (or explicit unsafe override) can proceed

---

Suggested release note summary:
> Fixes ClawHub metadata mismatch and adds secure-by-default webhook controls (HTTPS + allowlist, with explicit unsafe override) to reduce potential exfiltration risk while keeping TripGo hook support intact.
返回顶部