GO
gog-calendar
gog CLI で Google Calendar の予定を確認し、認証・TTY・keyring の問題を切り分ける手順。ユーザーが「今日の予定を確認したい」「gog でカレンダーを見たい」「calendar events のエラーを直したい」と依頼したときに使う。
Install
mkdir -p .claude/skills/gog-calendar && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14469" && unzip -o skill.zip -d .claude/skills/gog-calendar && rm skill.zipInstalls to .claude/skills/gog-calendar
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
gog CLI で Google Calendar の予定を確認し、認証・TTY・keyring の問題を切り分ける手順。ユーザーが「今日の予定を確認したい」「gog でカレンダーを見たい」「calendar events のエラーを直したい」と依頼したときに使う。133 charsno explicit “when” trigger
About this skill
Gog Calendar Events Check
最短チェック(今日の予定)
/home/yuiseki/bin/gog --account <email> calendar events primary --today --plain --all-pages --max 50
- 予定があるかだけ確認する場合:
/home/yuiseki/bin/gog --account <email> calendar events primary --today --max 1 --plain --fail-empty
exit code 0: 1件以上ありexit code 3:--fail-emptyで0件
この環境で分かったこと(2026-02-19)
- 実行バイナリは
./bin/gogではなく/home/yuiseki/bin/gog。 - config path は
/home/yuiseki/.config/gogcli/config.json。 - keyring backend は
file。 - 非 TTY ではトークン読込が失敗することがある:
no TTY available for keyring file backend password prompt; set GOG_KEYRING_PASSWORD
- 利用アカウントは
[email protected]。 calendar events ... --plainの出力列はID START END SUMMARY。
手順
- コマンド仕様を確認する。
/home/yuiseki/bin/gog calendar events --help
- 認証状態と keyring backend を確認する。
/home/yuiseki/bin/gog auth status
/home/yuiseki/bin/gog auth keyring
--accountを明示して予定を取得する。
/home/yuiseki/bin/gog --account <email> calendar events primary --today --plain --all-pages --max 50
- keyring のパスフレーズ入力待ちになったら TTY で実行する。
- 非対話で実行する場合は
GOG_KEYRING_PASSWORDを設定する。
次から活用できるノウハウ
- 「有無だけ判定」は
--max 1 --fail-emptyを使う。 - 「今日の全件取得」は
--today --all-pages --max <十分な件数>を使う。 - 自動化用途は
--json --no-inputを基本にする。 - 全カレンダー横断が必要なら
calendar events --all --todayを使う。 - 期間指定が必要なら
--from/--toまたは--days/--weekを使う。 - テキスト絞り込みは
--queryを使う。