Agent Skillsheyron-ai/agent-library › porteden-email

porteden-email

GitHub

用于管理多个邮箱账户(Gmail、Outlook、Exchange)的邮件操作,包括列表、搜索、读取、发送、回复、转发和删除等。支持AI优化输出格式及多种过滤条件。

skills/porteden-email/SKILL.md heyron-ai/agent-library

触发场景

需要查询或筛选邮件内容 需要发送邮件、回复或转发邮件 需要修改或删除现有邮件

安装

npx skills add heyron-ai/agent-library --skill porteden-email -g -y
更多选项

不安装直接使用

npx skills use heyron-ai/agent-library@porteden-email

指定 Agent (Claude Code)

npx skills add heyron-ai/agent-library --skill porteden-email -a claude-code -g -y

安装 repo 全部 skill

npx skills add heyron-ai/agent-library --all -g -y

预览 repo 内 skill

npx skills add heyron-ai/agent-library --list

SKILL.md

Frontmatter
{
    "name": "porteden-email",
    "homepage": "https:\/\/porteden.com",
    "metadata": {
        "openclaw": {
            "emoji": "📧",
            "install": [
                {
                    "id": "brew",
                    "bins": [
                        "porteden"
                    ],
                    "kind": "brew",
                    "label": "Install porteden (brew)",
                    "formula": "porteden\/tap\/porteden"
                },
                {
                    "id": "go",
                    "bins": [
                        "porteden"
                    ],
                    "kind": "go",
                    "label": "Install porteden (go)",
                    "module": "github.com\/porteden\/cli\/cmd\/porteden@latest"
                }
            ],
            "requires": {
                "env": [
                    "PE_API_KEY"
                ],
                "bins": [
                    "porteden"
                ]
            },
            "primaryEnv": "PE_API_KEY"
        }
    },
    "description": "Secured Email Mnagement - Gmail, Outlook & Exchange - list, search, read, send, reply, forward, delete, and modify emails across multiple accounts (gog-cli secure alternative)."
}

porteden email

Use porteden email (alias: porteden mail) for email management across multiple accounts. Use -jc flags for AI-optimized output.

If porteden is not installed: brew install porteden/tap/porteden (or go install github.com/porteden/cli/cmd/porteden@latest).

Setup (once)

  • Browser login (recommended): porteden auth login — opens browser, credentials stored in system keyring
  • Direct token: porteden auth login --token <key> — stored in system keyring
  • Verify: porteden auth status
  • If PE_API_KEY is set in the environment, the CLI uses it automatically (no login needed).

Common commands

  • List emails (or --today, --yesterday, --week, --days N): porteden email messages -jc
  • Filter emails: porteden email messages --from sender@example.com -jc (also: --to, --subject, --label, --unread, --has-attachment)
  • Search emails: porteden email messages -q "keyword" --today -jc
  • Custom date range: porteden email messages --after 2026-02-01 --before 2026-02-07 -jc
  • All emails (auto-pagination): porteden email messages --week --all -jc
  • Get single email: porteden email message <emailId> -jc
  • Get thread: porteden email thread <threadId> -jc
  • Send email: porteden email send --to user@example.com --subject "Hi" --body "Hello" (also: --cc, --bcc, --body-file, --body-type text, --importance high)
  • Send with named recipient: porteden email send --to "John Doe <john@example.com>" --subject "Hi" --body "Hello"
  • Reply: porteden email reply <emailId> --body "Thanks" (add --reply-all for reply all)
  • Forward: porteden email forward <emailId> --to colleague@example.com (optional --body "FYI", --cc)
  • Modify email: porteden email modify <emailId> --mark-read (also: --mark-unread, --add-labels IMPORTANT, --remove-labels INBOX)
  • Delete email: porteden email delete <emailId>

Notes

  • Credentials persist in the system keyring after login. No repeated auth needed.
  • Set PE_PROFILE=work to avoid repeating --profile.
  • -jc is shorthand for --json --compact: strips attachment details, truncates body previews, limits labels, reduces tokens.
  • Use --all to auto-fetch all pages; check hasMore and nextPageToken in JSON output.
  • Email IDs are provider-prefixed (e.g., google:abc123, m365:xyz789). Pass them as-is.
  • --include-body on messages fetches full body (default: preview only). Single message includes body by default.
  • --body and --body-file are mutually exclusive. Use --body-type text for plain text (default: html).
  • Confirm before sending, replying, forwarding, or deleting emails.
  • Environment variables: PE_API_KEY, PE_PROFILE, PE_TIMEZONE, PE_FORMAT, PE_COLOR, PE_VERBOSE.

版本历史

  • fcecd5d 当前 2026-07-25 05:36

同 Skill 集合

skills/email-marketing/SKILL.md
skills/finance-lite/SKILL.md
skills/human-writing/SKILL.md
skills/market-research/SKILL.md
skills/morning-daily-briefing/SKILL.md
skills/notion-cli/SKILL.md
skills/openclaw-github-assistant/SKILL.md
skills/real-estate-skill/SKILL.md
skills/self-improvement/SKILL.md
skills/seo-optimizer/SKILL.md
skills/social-media-scheduler/SKILL.md
skills/automation-workflows/SKILL.md
skills/data-analysis/SKILL.md
skills/summarize-pro/SKILL.md

元信息

文件数
0
版本
fcecd5d
Hash
bb2eaaf3
收录时间
2026-07-25 05:36

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 19:28
浙ICP备14020137号-1 $访客地图$