openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > IDFM Journey

Query Île-de-France Mobilités (IDFM) PRIM/Navitia for Paris + suburbs public transport (Île-de-France) — place resolution, journey planning, and disruptions/...

综合技能

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v0.1.6

统计:⭐ 0 · 1.9k · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :可疑

Package:anthonymq/idfm-journey-skill

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :可疑

OpenClaw 评估

The skill appears to do what it says (call IDFM PRIM/Navitia using a bundled Python script), but the package metadata omits the required API key and there is a small mismatch between declared requirements and the runtime instructions.

目的

The skill's name/description (IDFM PRIM/Navitia queries) matches the bundled script and documentation: place resolution, journeys, and disruptions. However, the registry metadata lists no required environment variables while SKILL.md and scripts/idfm.py both require IDFM_PRIM_API_KEY — an inconsistency between declared metadata and actual runtime needs.

说明范围

SKILL.md instructs the agent/user to set IDFM_PRIM_API_KEY and run the included Python script. The runtime instructions are narrow: call the public Navitia endpoints, optionally print JSON, and pick place IDs. The instructions do not ask to read unrelated local files, transmit data to unknown endpoints, or collect extra system context.

安装机制

No install spec or external downloads; the skill is instruction-only with a bundled Python script that uses only the standard library (urllib). Nothing is written to disk beyond the packaged files. This is a low-risk install mechanism.

证书

The script legitimately needs a single service credential (IDFM_PRIM_API_KEY) to call the Navitia API, which is proportional to purpose. The concern is the metadata/registry omission: the top-level metadata claims no required env vars while the SKILL.md and script require an API key. That mismatch could lead to accidental exposure (users won't be warned by the registry) or confusion about what to provide.

持久

The skill does not request persistent/always-included presence. It does not modify other skills or system settings. Autonomous invocation is allowed (default) but not combined with other elevated privileges.

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「IDFM Journey」。简介:Query Île-de-France Mobilités (IDFM) PRIM/Navitia for Paris + suburbs public tr…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/anthonymq/idfm-journey-skill/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: idfm-journey
description: Query Île-de-France Mobilités (IDFM) PRIM/Navitia for Paris + suburbs public transport (Île-de-France) — place resolution, journey planning, and disruptions/incident checks. Use when asked to find routes in Île-de-France (e.g., "itinéraire de X à Y"), resolve station/stop ids, or check RER/metro line disruptions, and you have an IDFM PRIM API key.
version: 0.1.6
author: anthonymq
triggers:
  - "Itinéraire de {origine} à {destination}"
  - "Route from {origin} to {destination} in Paris / Île-de-France"
  - "Check RER/metro disruptions" 
  - "Incidents on line {line}"
---

# IDFM Journey (PRIM/Navitia)

Use the bundled script to call PRIM/Navitia endpoints without extra dependencies.

## Metadata

- **Author:** anthonymq
- **Version:** 0.1.6

## Trigger phrases (examples)

- "Itinéraire de {origine} à {destination}"
- "Route from {origin} to {destination} in Paris / Île-de-France"
- "Check RER/metro disruptions" / "incidents on line {line}"

## Prereqs

- Set `IDFM_PRIM_API_KEY` in the environment before running.

### Generating an API Key

To obtain an IDFM PRIM API key:
1. Visit [https://prim.iledefrance-mobilites.fr/](https://prim.iledefrance-mobilites.fr/)
2. Create an account or log in
3. Navigate to "Espace développeur" or the developer portal
4. Subscribe to the "Navitia" API
5. Your API key will be generated and displayed in your dashboard
6. Export it in your environment: `export IDFM_PRIM_API_KEY="your-key-here"`

## Quick commands

Run from anywhere (path is inside the skill folder):

- Resolve places (best match + list):
  - `python3 scripts/idfm.py places "Ivry-sur-Seine" --count 5`

- Journeys (free-text from/to; resolves place ids first):
  - `python3 scripts/idfm.py journeys --from "Ivry-sur-Seine" --to "Boulainvilliers" --count 3`

- Incidents / disruptions (by line id or filter):
  - `python3 scripts/idfm.py incidents --line-id line:IDFM:C01727`
  - `python3 scripts/idfm.py incidents --filter 'disruption.status=active'`

Add `--json` to print raw API output.

## Notes

- If place resolution is ambiguous, increase `--count` and choose the right `stop_area` id.
- For API details and examples, read: `references/idfm-prim.md`.