Token导航 LogoToken导航

Agent Skill · 研究检索

gmail-multi-inbox(Gmail multi inbox 搜索)

gmail-multi-inbox 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gmail-multi-inbox 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 52,216。

总安装 563周安装 23GitHub Stars 4下载 180核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gmail-multi-inbox(Gmail multi inbox 搜索)
来源仓库:https://github.com/apocohq/skills
仓库路径:skills/gmail-multi-inbox
安装命令:
npx skills add https://github.com/apocohq/skills --skill gmail-multi-inbox
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/apocohq/skills --skill gmail-multi-inbox

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

gmail-multi-inbox 用于查找、检索和筛选相关信息,支持关键词匹配。适用于 Codex、Claude、Cursor、Gemini CLI 中的信息定位需求。结合来源仓库和原始 README 可进一步核验具体用法。

安装命令:npx skills add https://github.com/apocohq/skills --skill gmail-multi-inbox。建议确认权限范围和维护状态,避免触发联网或文件操作。

来源仓库内路径:skills/gmail-multi-inbox

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/apocohq/skills --skill gmail-multi-inbox;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gmail-multi-inbox 怎么安装?

在终端执行 npx skills add https://github.com/apocohq/skills --skill gmail-multi-inbox。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gmail-multi-inbox 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gmail-multi-inbox 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

gmail-multi-inbox 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

gmail-multi-inbox 用的人多吗?

公开数据是累计安装 563 次,近一周安装 23 次,下载 180 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gmail-multi-inbox 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gmail-multi-inbox

Gmail multi inbox 搜索 · 本页

5634调用外部服务未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Gmail Multi-Inbox Setup & Maintenance

Overview

Gmail's Multiple Inboxes displays up to 5 custom sections alongside the main inbox. Each section shows emails matching a search query. This skill uses a label + filter approach: label-based sections get Gmail filters that auto-label incoming mail by sender domain. The output is always a Google Apps Script the user pastes into script.google.com.

The generated script is idempotent — safe to re-run after adding or removing senders. When senders are removed from the lists, setupAll() automatically deletes the corresponding Gmail filters.

Prerequisites

This skill requires a Gmail MCP connector (e.g. search_gmail_messages) to scan the user's inbox. Gmail does not have an official MCP server — the user must have a third-party Gmail connector configured. If no Gmail connector is available, the skill can still work in a limited way: skip the scanning steps and let the user provide sender domains manually, or import from an existing script.

Configuration

The skill stores its current configuration in assets/config.json inside this skill's directory. This file tracks:

  • The section definitions (name, query, label)
  • The sender domains assigned to each label
  • Timestamp of last scan

Always read assets/config.json before starting. If it exists, this is a returning user — go to Update Mode. If it doesn't exist, check if the user has an existing script (see Import Existing Script). Otherwise, this is a new user — go to Initial Setup.

Import Existing Script

If the user already has a Gmail Multi-Inbox Apps Script (set up manually or from a previous run before config tracking existed), ask them to paste it. Parse the script to extract:

  1. Sender arrays — find all var xxxSenders = [...] declarations, extract the domain lists and map each to its label name
  2. Labels — find all createLabelIfNeeded('...') calls to identify the label names
  3. Section config — find the __MULTI_INBOX_CONFIG__ comment block or any section query/name comments

Build assets/config.json from the parsed data and confirm the reconstructed config with the user before proceeding to Update Mode.

Initial Setup (New Users)

Step 1: Scan Gmail

Search the user's Gmail history using search_gmail_messages to build a comprehensive picture of who emails them. Run multiple queries and merge the results — the goal is to discover all non-personal sender domains.

Broad sweep (most important — do this first):

  • newer_than:6m — all emails from the last 6 months. Paginate through results to collect as many senders as possible.
  • newer_than:1m — recent emails, captures current high-frequency senders

Category-based (catches things the broad sweep may paginate past):

  • category:promotions — marketing, newsletters
  • category:updates — notifications, shipping, orders
  • category:social — social media notifications
  • category:forums — mailing lists, digests

Signal-based:

  • unsubscribe — anything with an unsubscribe link (broad, catches most automated mail)
  • from:noreply OR from:no-reply OR from:notifications OR from:info@ — automated senders

Localized subject searches (adapt based on user's language):

  • subject:order OR subject:invoice OR subject:receipt OR subject:shipping OR subject:confirmation
  • Czech: subject:objednávka OR subject:faktura OR subject:potvrzení OR subject:doručení

Aggregate results: collect all sender addresses, extract domains, group by domain, count frequency. Ignore generic providers (gmail.com, outlook.com, yahoo.com, hotmail.com, icloud.com, seznam.cz, etc.) — these are personal contacts, not automated senders.

Step 2: Suggest Categories

Based on the scan results, propose up to 5 sections. Start with these defaults and adjust based on what the scan actually found:

#NameQueryLabelDescription
1Important(is:starred OR is:important)*(none — query-based)*Starred and important emails
2Worklabel:work in:inboxworkEmails from the user's company domain
3Newsletterslabel:newsletter in:inboxnewsletterSubscriptions, digests, marketing
4Orderslabel:orders in:inboxordersE-shops, shipping, travel, invoices
5*(available)*Suggest based on scan or leave empty

Present the proposed sections with the discovered sender domains grouped under each category. Ask the user to:

  • Confirm, rename, or remove sections
  • Move misclassified domains between categories
  • Add missing domains
  • Name the work label after their actual company if applicable
  • Choose label colors (suggest distinct, visually clear defaults). Only Gmail's predefined colors are allowed — see the list in Important Notes

For section 1 (Important): this is query-based, no label or filters needed.

Step 3: Generate the Apps Script

Read the template from scripts/gmail-multi-inbox-template.js in this skill's directory.

Fill in the placeholders:

  • __SENDER_ARRAYS__ — one var array per label-based section with the confirmed sender domains
  • __LABEL_CONFIGS__ — createLabelIfNeeded('labelname', {backgroundColor: '#hex', textColor: '#hex'}) calls for each label-based section. The color object is optional — if the section has a color in the config, pass it; otherwise omit the second argument. Only Gmail's predefined hex colors are allowed (see template comments).
  • __STALE_FILTER_CLEANUP__ — a removeStaleFilters([...]) call listing all managed label/sender pairs. This lets the script detect and delete Gmail filters whose sender was removed from the lists. Example: removeStaleFilters([{senders: workSenders, label: 'work'}, {senders: newsletterSenders, label: 'newsletter'}]);
  • __FILTER_CREATION__ — for each label-based section: loop over its sender array calling createFilterIfNeeded(sender, label). Do NOT include retroLabel calls here — those go in __RETRO_LABEL__.
  • __RETRO_LABEL__ — for each label-based section: call retroLabel(senderArray, label). If the section has matchToAndCc in the config, pass it as {matchToAndCc: [...]}. This is placed inside the separate retroLabelAll() function.
  • __MULTI_INBOX_CONFIG__ — comment block listing each section's query and name for the user to enter in Gmail Settings

Save the generated script as assets/gmail-multi-inbox-setup.js inside this skill's directory.

Step 4: Save Configuration

Write assets/config.json with the full configuration:

{
  "sections": [
    { "name": "Important", "query": "(is:starred OR is:important)", "label": null },
    { "name": "Work", "query": "label:work in:inbox", "label": "work", "senders": ["companydomain.com"], "matchToAndCc": ["companydomain.com"], "color": { "backgroundColor": "#4a86e8", "textColor": "#ffffff" } },
    { "name": "Newsletters", "query": "label:newsletter in:inbox", "label": "newsletter", "senders": ["substack.com", "beehiiv.com"], "color": { "backgroundColor": "#fad165", "textColor": "#000000" } },
    { "name": "Orders", "query": "label:orders in:inbox", "label": "orders", "senders": ["amazon.com", "ups.com"], "color": { "backgroundColor": "#16a766", "textColor": "#ffffff" } }
  ],
  "lastScan": "2026-02-18"
}

Step 5: Provide Setup Instructions

Tell the user:

Part A — Run the script:

  1. Go to script.google.com → New project → paste the script
  2. In the sidebar, click + next to "Services" and enable Gmail API
  3. Run setupAll() and authorize when prompted — this creates labels, updates filters, and retro-labels existing emails

Part B — Configure Multiple Inboxes manually:

The Gmail API does not expose Multiple Inboxes settings, so this part must be done by hand in Gmail.
  1. In Gmail: Settings (⚙️) → See all settings → Inbox tab
  2. Set Inbox type to Multiple Inboxes
  3. For each section, enter the Search query and Section name exactly as listed in the script's header comment. Present these to the user in a clear table, e.g.: Section Search query Section name 1 is:starred OR is:important Starred / Important 2 label:work in:inbox Work 3 label:newsletter in:inbox Newsletters 4 label:orders in:inbox Orders 5 *(leave empty)*
  4. Set Multiple Inbox position to "Right of inbox" (recommended)
  5. Click Save Changes

Always present the full table with the actual section values from the config — do not just say "see the script header".

Update Mode (Returning Users)

When assets/config.json exists:

  1. Show the user their current configuration (sections + sender counts)
  2. Ask what they want to do: scan for new senders, add specific senders manually, remove senders, modify sections, or get unsubscribe suggestions
  3. If scanning: re-run the Gmail searches from Step 1, compare against existing sender lists, and present only new domains not yet in the config
  4. Let the user confirm which new domains to add and to which categories
  5. Before generating the script, compare the new sender lists against the previous assets/config.json. If any senders were removed, explicitly list them with their section names and ask the user to confirm. The generated script will delete the corresponding Gmail filters when run — make sure the user understands this. Do NOT generate the script until the user confirms the removals.
  6. Regenerate the Apps Script with the updated sender lists and save to assets/gmail-multi-inbox-setup.js
  7. Update assets/config.json
  8. User pastes the updated script and re-runs setupAll() (this handles filters and retro-labeling in one go)
  9. If any section queries or names changed, remind the user to update their Multiple Inboxes settings manually in Gmail (see Step 5, Part B from Initial Setup). Present the updated table of sections.

Unsubscribe Suggestions

When the user asks for inbox cleanup or unsubscribe suggestions:

Step 1: Identify noisy senders

Search Gmail for senders that pollute the inbox. Focus on:

  • High volume, low engagement — many emails, most unread. Compare from:domain.com (total) vs is:unread from:domain.com (unread) to estimate open rate.
  • Never replied to — from:domain.com -in:sent has the same count as from:domain.com, meaning the user never interacts with this sender.
  • Promotional / transactional noise — marketing emails, "we miss you" campaigns, loyalty programs, app notifications that duplicate push/in-app notifications (e.g. social media activity digests, app usage summaries, "someone liked your post").
  • Redundant notifications — emails that duplicate information available elsewhere: order status (check the app), shipping updates (carrier app), calendar reminders, password change confirmations, login alerts from low-risk services.

Use broad queries to discover candidates:

  • unsubscribe newer_than:6m — anything with an unsubscribe link in the last 6 months (widest net)
  • category:promotions — marketing and newsletters
  • category:updates — transactional notifications
  • category:social — social media digests and notifications
  • from:noreply OR from:no-reply OR from:notifications — automated senders
  • subject:newsletter OR subject:digest OR subject:weekly OR subject:monthly

Then for each discovered domain, measure engagement:

  • Total emails: from:domain.com newer_than:6m
  • Unread emails: is:unread from:domain.com newer_than:6m
  • Any replies: compare count of from:domain.com vs from:domain.com -in:sent

Exclude senders already managed in the config (they're already categorized).

Step 2: Present recommendations

Group the noisy senders into tiers:

  1. Unsubscribe — high volume, never read, no value (e.g. marketing from a store you bought from once, app notification digests)
  2. Consider unsubscribing — moderate volume, rarely read, value is questionable or available elsewhere
  3. Keep but categorize — useful but noisy — suggest adding to a section in the multi-inbox config instead

For each sender, show:

  • Sender domain and example "From" name
  • Email count (last 6 months)
  • Estimated open rate (read vs total)
  • Why it's flagged (e.g. "94 emails, 2% opened", "duplicates push notifications")

Step 3: Act on user choices

  • Unsubscribe: the action is manual — provide the sender info so the user can unsubscribe themselves. Do NOT generate script code to delete or archive emails without explicit user approval.
  • Categorize: add the sender to the appropriate section in the config and regenerate the script.
  • Block: explain how to block in Gmail (three dots → Block "sender"). This is also manual.

Important Notes

  • The Gmail API cannot configure Multiple Inboxes settings. The script handles labels, filters, and retroactive labeling. The user must always configure section queries, names, and position manually in Gmail Settings → Inbox → Multiple Inboxes. Always present the full configuration table after generating or updating the script.
  • Emails in labeled sections also appear in the main inbox — sections are views, not separate inboxes. Adding in:inbox to section queries ensures archived mail doesn't appear in sections.
  • from:domain.com matches any @domain.com address and subdomains.
  • One filter per sender domain (no complex boolean logic in a single Gmail filter).
  • Check the user's email for language clues and adapt search queries accordingly.
  • Label colors must use Gmail's predefined hex values. Arbitrary colors will be rejected by the API. Allowed background colors (pair with #000000 or #ffffff text for contrast):

- Reds: #fb4c2f, #e66550, #cc3a21, #ac2b16, #822111, #f6c5be, #efa093 - Oranges: #ffad47, #ffbc6b, #eaa041, #cf8933, #a46a21, #ffe6c7, #ffd6a2 - Yellows: #fad165, #fcda83, #f2c960, #d5ae49, #aa8831, #fef1d1, #fce8b3 - Greens: #16a766, #44b984, #149e60, #0b804b, #076239, #b9e4d0, #89d3b2, #43d692, #68dfa9, #3dc789, #2a9c68, #1a764d, #c6f3de, #a0eac9 - Blues: #4a86e8, #6d9eeb, #3c78d8, #285bac, #1c4587, #c9daf8, #a4c2f4 - Purples: #a479e2, #b694e8, #8e63ce, #653e9b, #41236d, #e4d7f5, #d0bcf1 - Pinks: #f691b3, #f7a7c0, #e07798, #b65775, #83334c, #fcdee8, #fbc8d9 - Grays: #000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff

平台分布

Codex

36.64%
按下载量换算66

Claude

31.16%
按下载量换算56

Cursor

18.89%
按下载量换算34

Gemini CLI

9.14%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills