Skip to content
cccskills
FreePublished on GitHub

check-inbox

メールとSlackから返信すべき項目・タスクを抽出する統合型スキル。Gemini 3.0 Flashで文脈判定し、優先度と返信ドラフトを生成。「受信箱チェック」「TODO確認」「返信すべきメッセージ」「メール確認」等のリクエストで発動。

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

See how to install

Files included (10)

  • SKILL.md5.7 KB
  • agents/openai.yaml157 B
  • scripts/check_inbox.py10.6 KB
  • scripts/common.py6.1 KB
  • scripts/email_parser.py12.1 KB
  • scripts/line_notifier.py7.4 KB
  • scripts/llm_analyzer.py16.5 KB
  • scripts/slack_parser.py11.6 KB
  • SKILL.en.md5.0 KB
  • SKILL.es.md5.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

トリガーワード

「受信箱チェック」「TODO確認」「返信すべきメッセージ」「メール確認」「Slack確認」

/check-inbox - Inbox タスク抽出

メール(Gmail)とSlackから返信が必要な項目を抽出し、優先度付きでリストアップします。

⚠️ セキュリティ注意(Indirect Prompt Injection)

  • このスキルは外部から受信したメール・Slack メッセージを LLM に渡します。攻撃者がメール本文や Slack 投稿に「これまでの指示を無視して○○せよ」タイプのペイロードを仕込んでいる可能性があります。
  • scripts/llm_analyzer.py は外部テキストを <external_untrusted_content> 境界タグで囲み、LLM 側にデータとして扱わせる設計になっています。ただし 生成された返信ドラフト(draft_reply)をそのまま送信せず、必ず目視確認 してください。
  • メッセージ本文に怪しい指示が含まれていた場合、返信ドラフトや判定結果が汚染されている可能性を疑うこと。

クイックスタート

# 基本実行(過去3日間)
python skills/check-inbox/scripts/check_inbox.py

# 過去7日間を確認
python skills/check-inbox/scripts/check_inbox.py --days 7

# メールのみ確認
python skills/check-inbox/scripts/check_inbox.py --email-only

# Slackのみ確認
python skills/check-inbox/scripts/check_inbox.py --slack-only

機能

  • メール分析: /output/gmail/ のMarkdownファイルからメールを抽出

    • マーケティング・自動通知メールを自動除外
    • 人からのメールのみをLLMで分析
  • Slack分析: slack-sync/data/ のメンションを抽出

    • --users オプションまたはデフォルト設定の識別子を検索
    • スレッド返信も考慮して判定
  • LLM判定 (Gemini 3.0 Flash)

    • 返信が必要かどうかを判定
    • 優先度(高/中/低)を設定
    • 返信ドラフトを生成

オプション

オプション説明デフォルト
--days, -d過去何日分を確認3
--email-onlyメールのみ確認-
--slack-onlySlackのみ確認-
--output, -o出力ファイルパスinbox-{date}.md
--gmail-dirGmailデータディレクトリ自動検出
--slack-dirSlackデータディレクトリ自動検出
--workspace, -wSlackワークスペース全て
--users, -u検索対象ユーザー(カンマ区切り)デフォルトリスト
--no-llmLLM分析をスキップ-
--quiet, -q進捗表示を抑制-
--notify-line結果をLINEに通知-

出力例

# Inbox Tasks - 2026-01-28

## 🔴 高優先度

### 📧 メール
- **[Re: プロジェクト進捗]** from: 田中太郎 (2026-01-27)
  - 理由: 期限付きの確認依頼
  - 返信案: 「ご連絡ありがとうございます。明日中に確認し、ご報告いたします。」

### 💬 Slack
- **[#pj_xxx]** @{YOUR_NAME} (2026-01-27 14:30)
  - 内容: APIの仕様について質問があります
  - 理由: 直接質問、要回答
  - 返信案: 「APIの仕様について確認しました。...」

## 🟡 中優先度
...

---
生成日時: 2026-01-28 10:00:00
対象期間: 過去3日間
メール件数: 15件 → 要対応: 3件
Slack件数: 42件 → 要対応: 8件

環境設定

必要な環境変数

.env ファイルに以下を設定:

GEMINI_API_KEY=your_api_key_here
# または
GOOGLE_API_KEY=your_api_key_here

# LINE通知(--notify-line 使用時)
LINE_CHANNEL_ACCESS_TOKEN=your_line_access_token
LINE_USER_ID=your_line_user_id

依存パッケージ

uv add google-generativeai python-dateutil

データディレクトリ

以下のパスを自動検出:

メール:

  • ./output/gmail/
  • ~/output/gmail/

Slack:

  • ./slack-sync/data/
  • ~/githubactions_fordata/slack-sync/data/

関連スキル

  • /email-tasks - メール専用タスク抽出
  • /slack-tasks - Slack専用タスク抽出

Overview

Gmail と Slack から返信が必要なメッセージやタスクを自動抽出するスキルです。Gemini 3.0 Flash で文脈判定し、優先度付きの返信ドラフトを生成します。

Troubleshooting

エラー解決方法
API key not found.env に GEMINI_API_KEY または GOOGLE_API_KEY を設定
No Gmail data foundoutput/gmail/ ディレクトリにメールデータが存在するか確認
No Slack data foundslack-sync/data/ ディレクトリが同期済みか確認

Success Criteria

  • 優先度別(高/中/低)にタスクがリストアップされている
  • 各タスクに返信ドラフトが生成されている
  • 出力 Markdown ファイルが正しく保存されている

Usage

上記「クイックスタート」セクションを参照。基本例:

# 過去3日間の受信箱チェック
python skills/check-inbox/scripts/check_inbox.py

# Slackのみ、過去7日間
python skills/check-inbox/scripts/check_inbox.py --slack-only --days 7

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

A/Bテストや実験の設計・実装を支援するスキル。 「A/Bテストを設計して」「スプリットテストしたい」「仮説を立ててテストしたい」「バリアントを比較」等のリクエストで発動。 トラッキング実装は analytics-tracking を参照。

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

minicoohei/ai-agent-camp346Updated Oct 7, 2026

マルチエージェントシステムのアーキテクチャ設計ツールキット。 「エージェントを設計して」「マルチエージェント構成」「エージェントのアーキテクチャ」「オーケストレーション設計」等のリクエストで発動。

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

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのローカル環境セットアップを確認するスキル。 「セットアップ確認」「環境チェック」「初期設定できてる?」「インストール確認」「依存関係チェック」等のリクエストで発動。

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

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのスラッシュコマンドをCodexでルーティングするスキル。 「/start-0-1を実行」「スラッシュコマンドを使いたい」「コマンドルーティング」「Cursorのコマンドを使いたい」等のリクエストで発動。

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

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campの環境変数・認証情報を安全に管理するスキル。 「APIキーを設定」「.envを管理」「環境変数の設定」「credential managerを使いたい」「秘密情報の管理」等のリクエストで発動。

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

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campリポジトリの案内・オリエンテーションスキル。 「リポジトリ案内」「次のレッスンは?」「どこから始める」「ツールの違い」「aiagent概要」等のリクエストで発動。

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

minicoohei/ai-agent-camp346Updated Oct 7, 2026

See all skills by minicoohei

Report a problem with this skill