Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

surface-cli

БесплатноБез исполняемых скриптовНе проверен

Use the Surface mail CLI to read and act on Gmail, Outlook, and generic IMAP/SMTP mail through one JSON-first contract. Prefer this skill when you need…

vishalj99от vishalj991 900 установок в других каталогах

Об этом скилле

Surface CLI

Surface is a local-first mail CLI for Gmail, Outlook, and generic IMAP/SMTP. It is especially useful for Outlook school or work accounts that only work through the web UI, and for mail providers such as GMX that expose standard IMAP and SMTP settings. Surface prints machine-readable JSON to stdout and stores local state in ~/.surface-cli.

Use This Skill When

  • the user wants to read or triage email from Gmail, Outlook, or an IMAP mailbox
  • the user needs a provider-neutral CLI for search, unread fetch, read, attachments, or actions
  • you need stable thread_ref / message_ref values for follow-up commands or thread watching

Prerequisites

  1. Surface CLI installed (surface --help should work)
  2. At least one configured account
  3. Valid auth for the target account

Check setup:

surface account list
surface auth status
surface auth check --remembered-only --due-only

If the user asks to install the Surface skill for another agent on the same machine, use:

surface skill install codex
surface skill install claude-code
surface skill install all

Account Setup

Add an account:

surface account add personal_2 --provider gmail --email [email protected]
surface account add uni --provider outlook --email [email protected]
surface account add gmx --provider imap --email [email protected]

For reliable summary.needs_action, Surface should know who the account owner is. Gmail auth can verify the mailbox email automatically; Outlook may need explicit human identifiers:

surface account identity set uni --email [email protected] --name "Your Name" --name-alias "FirstName"
surface account identity show uni

Log in:

surface auth login personal_2
surface auth login uni
surface auth login gmx \
  --username [email protected] \
  --password "$SURFACE_GMX_PASSWORD"

Use surface auth login <account> --remember-me when local automation should keep checking that account for stale auth. This records remembered-auth account names and check cadence in remembered-auth.json under the Surface state root; local login also updates the project .env marker for compatibility. Raw provider tokens, Outlook profile cookies, and IMAP passwords remain in Surface auth storage. Surface only auto-loads compatibility remembered-auth metadata and SURFACE_CACHE_DIR from project .env; write-safety and summarizer settings still come from the process environment or config.toml. Use surface auth check --remembered-only --due-only from scheduled or watcher workflows.

For remote auth, use surface auth login <account> --remote-host <host> --remember-me so the remembered-auth marker is written to the remote Surface state root after auth succeeds. No remote project directory is required.

For GMX and similar providers, make sure IMAP/POP3 access is enabled in the provider web settings before logging in. Generic IMAP login does not need a Google Cloud project, OAuth client JSON, Microsoft Graph app registration, or a browser session. Surface can infer server settings for supported domains such as gmx.com and gmx.net; custom IMAP providers still require the explicit --imap-* and --smtp-* flags. Generic IMAP does not run browser 2FA or OAuth consent. If the provider rejects the normal mailbox password after 2FA is enabled, use an app-specific password when one is available. --password <password> is supported and treats the flag value as the password directly, but prefer --password-env, --password-file, or --password-command because direct CLI passwords can leak through shell history, process listings, terminal logs, or agent transcripts. Do not ask the user to paste mailbox passwords into chat or store them in the repo.

Local policy lives in:

~/.surface-cli/config.toml

Important local knobs:

  • summarizer_backend
  • summarizer_model
  • writes_enabled
  • send_mode
  • test_recipients
  • test_account_allowlist

Summarization is opt-in and controlled by the user's local config. Do not change summarizer_backend, summarizer_model, or related environment variables unless the user explicitly asks. If an external summarizer backend is enabled, email thread content may be sent to the configured model provider; confirm the user accepts that privacy tradeoff before enabling or changing summarization.

Common Operations

List Accounts

surface account list
surface auth status
surface auth status personal_2

Fetch Unread Threads

surface mail fetch-unread --account uni --limit 10
surface mail fetch-unread --account personal_2 --limit 20
surface mail fetch-unread --account uni --session sess_01... --limit 10

Search Mail

surface mail search --account uni --text "invoice" --limit 10
surface mail search --account uni --from [email protected] --subject "waitlist" --limit 10
surface mail search --account uni --session sess_01... --from [email protected] --limit 10
surface mail search --account
Полный SKILL.md на ClawHub

Установить surface-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл surface-cli?

Use the Surface mail CLI to read and act on Gmail, Outlook, and generic IMAP/SMTP mail through one JSON-first contract. Prefer this skill when you need Outlook access for school or work accounts that do not expose IMAP, or generic IMAP for providers such as GMX, plus stable refs for unread fetch, sent-message lookup, structured search, thread refresh, message read, attachments, send or draft, archive, mark read or unread, and provider-supported RSVP.

Как установить скилл surface-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл surface-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить surface-cli с