Skip to content
cccskills
FreePublished on GitHub

trip-timetable-from-calendar

Google カレンダー primary から指定 1 日の交通機関予定を抽出し、複数路線を束ねた時刻表 Markdown を `docs/timetable/YYYY-MM-DD_<slug>.md` として生成する。乗り換えを時系列で 1 ファイルにまとめる。

The English summary is being prepared. Showing the original description.

Works withGoogle Calendar
See how to install

Files included (2)

  • SKILL.md2.8 KB
  • templates/timetable.md643 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Trip Timetable From Calendar

旅行当日に手元で使える時刻表 Markdown を、カレンダーの交通機関予定から生成する。

想定する使い方

  • /trip-timetable-from-calendar 2026-04-18 佐賀行き
  • /trip-timetable-from-calendar 明日の時刻表

入力

  • 対象日: 単一日(必須、YYYY-MM-DD)
  • 任意の路線フィルタ(例: 新幹線、特急のみ)
  • slug(未指定なら目的地から kebab-case で自動生成。例: saga-trip)

前提

  • Google Calendar MCP が利用可能
  • 参照カレンダーは primary のみ
  • タイムゾーンは Asia/Tokyo

手順

  1. 対象日と slug を確定する。曖昧ならユーザーに確認する。
  2. mcp__claude_ai_Google_Calendar__list_events で対象日の予定を取得する(calendarId: "primary"、timeZone: "Asia/Tokyo"、timeMin と timeMax は対象日の 00:00〜23:59)。
  3. 交通機関イベントを抽出する。判定ヒント:
    • タイトルの 🚄 プリフィックス
    • タイトル内の <駅>→<駅> パターン
    • タイトル末尾の列車名/便名
    • 説明欄の「列車:」「座席:」行
  4. 抽出結果を開始時刻の昇順でソートし、乗り換え区間として束ねる。
  5. 抽出結果をユーザーに表で提示し、出力して良いか承認を得る。
  6. templates/timetable.md に沿って Markdown を組み立てる。
  7. docs/timetable/ が無ければ作成する。
  8. ローカル日付の YYYY-MM-DD_<slug>.md で保存する。既存ファイルがある場合は上書き前に確認する。
  9. markdownlint-cli2 --fix <file> を実行する(利用可能な場合)。
  10. 生成ファイルのパスを返す。

出力規約

  • 出力先: docs/timetable/YYYY-MM-DD_<slug>.md
  • 1 日 1 ファイル(複数路線でも 1 ファイルに束ねる)
  • 時刻は HH:MM、タイムゾーンは冒頭に Asia/Tokyo と明示
  • 乗り換え時間(前の到着〜次の出発)を計算して併記する

注意

  • イベントや交通機関イベントが無い場合は、その旨を返してファイルは作成しない
  • 座席番号などの機微情報が含まれる場合、出力時はそのまま残さずユーザーに確認する
  • 目的地が読み取れない時は slug をユーザーに確認する

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Convert Claude markdown subagent files to Codex CLI TOML format. Parses YAML frontmatter and body, applies model/permission/tool mappings, and outputs to agents/codex/<name>.toml.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 23, 2026

Create or update a Markdown blog draft from recent work and export it with `YYYY-MM-DD_slug.md` naming. Output directory can be set via environment variable or CLI option; if missing, ask the user and pass it explicitly.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 23, 2026

変更をコミットしてドラフトPRを作成する一連のGit/ghワークフロー。ユーザーが「コミットして」「PR作って」「draft PR」等を求めたときに使用し、status/diff確認・命令形コミット・push・gh pr create --draft(--assignee hodanov)まで実行する。ユーザーの明示リクエストが無くても、実装完了後にcommitやPRが必要になった場面(dev-workflowのcommitフェーズ等)では必ずこれを使う。`git commit` や `gh pr create` を単体でBash直接実行しない。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 23, 2026

1 つの作業ツリーに混ざった差分を、変更理由ごとの意味単位のコミットへ分割する。ユーザーが「コミットを分割して」「意味単位で分けて」「commit-split」等を求めたとき、または機能追加・付随リファクタ・設定/ドキュメント修正が 1 コミットに混在していると気づいたときに使用する。分割案を提示して承認を得てからステージし、コミットごとに単独で成立することを確認する。メッセージ規約・push・PR の作成は commit-and-draft-pr へ委譲する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 23, 2026

gitleaks + pre-commit を使ってローカルコミット時のクレデンシャル混入を機械的にブロックする。「クレデンシャル漏洩防止」「シークレット混入対策」「gitleaks」「pre-commit シークレット」「credential leak prevention」に言及した場合に使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 23, 2026

依存パッケージ(Go modules / npm / Terraform provider / GitHub Actions / pre-commit 等)の アップグレードを、outdated 検出 → CHANGELOG・破壊的変更の確認 → 更新 → lint/test 検証 → コミットまで一連の手順で安全に適用する。「依存更新」「パッケージを上げて」「dependency update」 「go get -u」「npm update」「provider を上げる」等に言及されたときに使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 23, 2026

See all skills by hodanov

Report a problem with this skill