شعار Gtfs Nz

Gtfs Nz

مؤسسة
thecolab-ai
gtfs-nz

Read NZ public transport GTFS static timetables: feeds, stops, routes, trips, scheduled departures and route geometry. Use for Auckland Transport, Metlink (Wellington), BUSIT (Waikato) and Orbus (Otago) schedule baselines, spatial stop queries and timetable analysis.

نظرة عامة

الناشرthecolab-ai
المستودع.skills
اسم المهارةgtfs-nz
النجوم
39
التفريعات
9
الملفات المرفقة
5
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها thecolab-ai على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Gtfs Nz في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thecolab-ai/.skills.git /tmp/.skills
mkdir -p .claude/skills
cp -r /tmp/.skills/skills/gtfs-nz .claude/skills/gtfs-nz
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Gtfs Nz في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Gtfs Nz تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Gtfs Nz بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

NZ GTFS static timetables

Use scripts/cli.py for keyless NZ timetable baselines: registered feeds, stops, routes, trips, scheduled departures and route shapes. Python stdlib only. AT realtime departures, vehicles and alerts belong to at-transport, which requires the user-supplied AT_API_KEY. This skill does not query realtime APIs.

Workflow

  1. Run feeds --json to check the registry and feed validity dates; add --refresh for a live download.
  2. Select --feed at, metlink, busit or orbus.
  3. Look up stops/routes first; use their exact GTFS IDs for departures/trips/shapes.
  4. Check meta.warnings, meta.latest_data, meta.truncated and the service date before using results. Static departures are schedules, not predictions or proof of operation.

Commands

Run python3 skills/gtfs-nz/scripts/cli.py <command> [flags]. Every command supports --json, --cache-dir PATH, and --max-age SECONDS (default 86400). Every command supports --refresh; data queries support --limit N (default 100, maximum 10000). All commands reuse fresh ZIPs unless --refresh is given. Expired caches are refreshed; a failed refresh is an error.

  • feeds [--feed at|metlink|busit|orbus]: verified registry, cached or live download status, ZIP size, table names and original feed_info records. Per-feed failures have a status and error; partial failures also add meta.warnings. A total outage fails with a non-zero exit code. Each available record reports cached.
  • stops --feed at [--bbox minLon,minLat,maxLon,maxLat] [--near lon,lat --radius METRES] [--format json|geojson]: WGS84 stop locations; radius defaults to 500 m. Nearby results sort by distance. Both spatial filters may be combined. Non-spatial JSON can retain stops without coordinates; spatial output excludes those stops.
  • routes --feed at [--type bus|rail|ferry|tram|cable|other]: original route columns plus mode. Standard and extended GTFS types map to these modes (including school buses); unrecognised types map to other. See source notes for the mapping.
  • trips --feed at --route ROUTE: timetable trips, including service and shape IDs. Lists all published trips, not only trips operating today.
  • departures --feed at --stop STOP [--date YYYY-MM-DD] [--time HH:MM[:SS]]: departures from stop_times joined to trips, calendar and calendar_dates. Date defaults to today in Pacific/Auckland; time defaults to 00:00 and is an inclusive minimum. Results sort by scheduled time. Parent stations include their child platforms. Use exact stop IDs or unambiguous stop codes.
  • shapes --feed at --route ROUTE --format geojson [--bbox minLon,minLat,maxLon,maxLat]: one LineString per published shape, sorted by numeric point sequence. A bbox selects intersecting shapes and returns their complete geometry; it does not clip.

Routes accept exact route_id or an unambiguous route_short_name. IDs can change between feed versions. Negative coordinate strings are easiest with --bbox=... or --near=....

bash
python3 skills/gtfs-nz/scripts/cli.py feeds --json
python3 skills/gtfs-nz/scripts/cli.py stops --feed at --near 174.768,-36.844 --radius 500 --format geojson --json
python3 skills/gtfs-nz/scripts/cli.py stops --feed metlink --bbox=174.75,-41.30,174.80,-41.25 --json
python3 skills/gtfs-nz/scripts/cli.py routes --feed at --type rail --json
python3 skills/gtfs-nz/scripts/cli.py trips --feed at --route 101-202 --json
python3 skills/gtfs-nz/scripts/cli.py departures --feed at --stop 11814 --date 2026-10-16 --time 08:00 --json
python3 skills/gtfs-nz/scripts/cli.py shapes --feed at --route 101-202 --format geojson --json

Interpretation and output

--date is a GTFS service date, not a civil-day window. 25:10:00 means 01:10 after that service date and stays attached to that service's calendar. For early-morning civil-day analysis, query the previous service date with --time 24:00 as well as the current one. No UTC timestamps are fabricated across NZ daylight saving transitions.

JSON successes use {"meta": {...}, "results": [...]}. Spatial GeoJSON uses type, features and the same meta foreign member; --format geojson implies machine-readable output, including errors. Provenance lives under meta: source_url, publisher and ISO UTC retrieved_at, plus licence when known. For the mixed-source feeds command, records also carry each source's provenance. meta.latest_data is the stated validity range as an ISO date string (start/end); meta.feed_info retains source dates and version. These are validity dates, not publication timestamps. BUSIT has no feed_info.txt, so latest_data is omitted with a warning and its unknown licence is omitted. Cache hits retain the original retrieval time. meta.total counts all matches; meta.returned and meta.truncated describe the output limit. Original GTFS identifiers and most columns remain strings; spatial stop coordinates become numbers.

Departures exclude stops with pickup_type=1. Terminal rows remain visible with terminates: true; these are terminal arrivals, so filter them out for boarding analysis. Untimed stop_times are counted and warned about rather than interpolated. Conditional pickup fields remain visible. Frequency-based trips serving the selected stop on the service date are unsupported (exit 7); unrelated frequency trips add a warning. No journey planning, realtime conditions or frequency expansion is provided.

Resources

  • Read references/source-notes.md for verified endpoints, licences, cache/memory limits and fixture provenance.
  • scripts/test_contract.py: deterministic CLI and GTFS edge-case checks using tests/fixtures/at-sample.zip, trimmed from the real AT feed.
  • scripts/smoke_test.py: bounded fixture and live feed/query checks.

Default cache: $XDG_CACHE_HOME/thecolab-gtfs-nz (or ~/.cache/thecolab-gtfs-nz). Set GTFS_NZ_CACHE_DIR or --cache-dir to override it. Downloads have a 10 s socket timeout and a 50 s download deadline, a 128 MiB compressed cap and 1 GiB expanded-size cap; tables are streamed from the ZIP without extracting files. Errors have actionable messages and repository exit codes (2 input, 4 access, 5 network, 6 parser/cache, 7 unsupported).

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Gtfs Nz؟

Read NZ public transport GTFS static timetables: feeds, stops, routes, trips, scheduled departures and route geometry. Use for Auckland Transport, Metlink (Wellington), BUSIT (Waikato) and Orbus (Otago) schedule baselines, spatial stop queries and timetable analysis.

لماذا تستخدم Gtfs Nz على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Gtfs Nz عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Gtfs Nz في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Gtfs Nz؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Gtfs Nz؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Gtfs Nz معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Gtfs Nz مجانية؟

نعم. نشرها thecolab-ai على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇