Emailのロゴ

Email

コミュニティ
antoniolg
email

Manage inbox email. Uses the inbox script and stores metadata (ids) to open or archive messages later.

概要

公開者antoniolg
リポジトリagent-kit
スキル名email
スター
97
フォーク
16
同梱ファイル
8
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 8個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    antoniolgがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルEmailをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/antoniolg/agent-kit/tree/main/skills/email
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/antoniolg/agent-kit.git /tmp/agent-kit
mkdir -p .claude/skills
cp -r /tmp/agent-kit/skills/email .claude/skills/email
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEmailを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にEmailを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Emailは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Email (inbox)

Goal

List Gmail/iCloud inboxes showing a clean user view while preserving metadata (IDs) for later actions.

Base command

  • Helper in the skill: scripts/email-inbox
  • Always pass --json-out to save metadata.
  • Configure accounts in ~/.config/skills/config.json under email:
    • gmail_accounts: list of Gmail accounts
    • icloud_user: iCloud user (optional)

Example:

json
{
  "email": {
    "gmail_accounts": ["you@gmail.com", "other@gmail.com"],
    "icloud_user": "you@icloud.com"
  }
}

Example:

scripts/email-inbox

Flow

  1. Run the command with --json-out /tmp/inbox.json.
  2. Show the user ONLY the clean output (numbered list), using the agreed format (see "Output format").
  3. Read /tmp/inbox.json to get IDs and keep them for later actions.
  4. Treat /tmp/inbox.json as a frozen snapshot until you explicitly refresh the inbox again.
  5. If the user says "archive all except 141, 144" (or similar), interpret "all" as all items from the last shown snapshot, not every message currently in the live inbox. This avoids archiving new emails that arrived after the list was shown.
  6. Only refresh/reload the inbox before acting when the user explicitly asks for it, or when you no longer trust the saved snapshot.
  7. Propose recommended actions (archive/open/reply/wait) using your own judgment; ask for confirmation before acting.
  8. When you execute archive actions and want to verify the result, do it sequentially: wait for the archive command to finish, then refresh the inbox. Do not run archive and refresh in parallel, or you may read a stale state and draw the wrong conclusion.

Helpers (from the skill folder):

  • scripts/email-open --index <n> (Gmail/iCloud) opens and writes /tmp/email-open.json.
  • scripts/email-archive --index <n> (Gmail/iCloud) archives the message/thread. Accepts multiple indices.
  • scripts/email-reply --index <n> --body-file <path> replies to the message (Gmail/iCloud).
  • scripts/email-mailboxes --account <icloud> lists iCloud mailboxes.

Metadata format

The JSON contains a list of items with:

  • index (number shown to the user)
  • source (gmail or icloud)
  • account
  • id (Gmail: threadId, iCloud: UID)
  • from
  • subject

Open an email (Gmail)

Use the helper:

scripts/email-open --index <n>

This prints the email (from/subject/date/body) and saves metadata to /tmp/email-open.json.

Reply to an email (Gmail/iCloud)

Before sending, always show the draft to the user and ask for explicit approval.

Use the helper:

scripts/email-reply --index <n> --body-file /tmp/reply.txt
  • If you need to reply-all (Gmail), add --reply-all.
  • To force a subject: --subject "Re: ..."
  • iCloud replies via SMTP with the same app password and stores a copy in Sent.
  • To save to Sent without sending (already sent): --append-only.
  • To avoid saving to Sent: --no-append-sent.
  • By default it replies-all and keeps CC. To reply only to the sender: --no-reply-all.
  • After sending a reply, archive the thread with scripts/email-archive --index <n> to keep the inbox clean.

Archive an email (Gmail)

Use the helper:

scripts/email-archive --index <n>

Examples:

scripts/email-archive --index 1 --index 2 --index 3
scripts/email-archive --index 1,2,3,4,9,10

iCloud (current state)

  • List: supported by inbox.
  • Open: supported by scripts/email-open --index <n> (uses UID).
  • Archive: supported by scripts/email-archive --index <n>.
    • If it cannot detect the archive mailbox, use --mailbox "<Name>".
    • To list mailbox names: scripts/email-mailboxes --account <icloud>.

Missing context

  • If the JSON is stale or missing, run inbox again with --json-out.
  • If you refresh, the new /tmp/inbox.json replaces the previous snapshot and becomes the new source of truth for follow-up actions.

Notes

  • The iCloud helpers (inbox, email-open, email-reply, email-mailboxes, email-archive) read the app password from the ICLOUD_APP_PASSWORD environment variable.
  • If ICLOUD_APP_PASSWORD is not set, the script falls back to an interactive getpass() prompt, which fails in non-interactive/headless runs.
  • If iCloud access fails, first verify whether ICLOUD_APP_PASSWORD is exported in the current session before assuming the credential is wrong.
  • If a candidate password exists in local config for the same email address but IMAP returns [AUTHENTICATIONFAILED], treat it as a different service credential rather than the iCloud app password.
  • Useful diagnostics:
    • python3 - <<'PY' import os print('ICLOUD_APP_PASSWORD' in os.environ) PY
    • security find-internet-password -a '<icloud-user>' -s 'imap.mail.me.com' -g 2>&1 | head
    • security find-generic-password -a '<icloud-user>' -g 2>&1 | head
  • Avoid showing IDs to the user; only show the clean list.

Output format

  • Separate by account (Gmail/iCloud) while keeping the absolute numbering.
  • Account header in bold: 📧 **<account>**.
  • Separator line after the header: —.
  • Use emojis before each message with this legend:
    • 🔍 open
    • 🗂️ archive
    • 👀 review
    • ⏳ wait
  • Do not bold the sender; bold is only for the account header.

Optional triage rules

If the user notices failures, add specific rules in rules.json to refine future recommendations.

Active rules

Rules live in rules.json inside this skill (single source of truth).

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Email」では何ができますか?

Manage inbox email. Uses the inbox script and stores metadata (ids) to open or archive messages later.

TypingMindでEmailを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Emailはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEmailをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/antoniolg/agent-kit/tree/main/skills/emailを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Emailを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Emailは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEmailを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Email」は無料ですか?

antoniolgがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇