Token导航 LogoToken导航

Agent Skill · 研究检索

surface-cli(surface CLI 搜索)

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

surface-cli 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 20,076。

总安装 5,339周安装 227GitHub Stars 公开资料未说明下载 1,870核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install surface-cli

这个 Skill 是做什么的

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

Surface CLI 通过 JSON 接口读写 Gmail 和 Outlook 邮件。适合学校或机构批量处理邮件的场景。支持邮件分类与线程级操作。surface-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。需申请对应邮箱服务的 API 访问权限。建议限制单次操作数量以防触发反爬机制。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install surface-cli;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

surface-cli 怎么安装?

在终端执行 openclaw skills install surface-cli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

surface-cli 支持哪些 AI 工具?

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

surface-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

surface-cli 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

surface-cli 用的人多吗?

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

surface-cli 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
surface-cli

surface CLI 搜索 · 本页

5,339—接触敏感数据MIT-0通过

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

SKILL.md 原文

name
surface-cli
description
Use the Surface mail CLI to read and act on Gmail and Outlook 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 require admin setup, plus stable refs for unread fetch, structured search, thread refresh, message read, attachments, send or draft, archive, mark read or unread, and Outlook RSVP.
metadata

Surface CLI

Surface is a local-first mail CLI for Gmail and Outlook. It is especially useful for Outlook school or work accounts that only work through the web UI and do not require IMAP or admin changes. 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 or Outlook
  • 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

Account Setup

Add an account:

surface account add personal_2 --provider gmail --email you@example.com
surface account add uni --provider outlook --email you@example.com

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 you@example.com --name "Your Name" --name-alias "FirstName"
surface account identity show uni

Log in:

surface auth login personal_2
surface auth login uni

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 registrar@school.edu --subject "waitlist" --limit 10
surface mail search --account uni --session sess_01... --from registrar@school.edu --limit 10
surface mail search --account personal_2 --mailbox inbox --label unread --text "sale" --limit 10
surface mail search --account personal_2 --text "has:attachment newer_than:30d" --limit 5

Watching Threads And Topics

Surface is the polling primitive, not the scheduler or delivery transport. If the user asks to watch mail, use the surrounding automation system to rerun Surface commands and surface updates to the user-requested destination.

  • For a specific thread watch, persist the account, thread_ref, and the newest known

message/timestamp. On each check, rerun surface mail thread get <thread_ref> --refresh and notify only when the newest message state changes.

  • For a topic watch, establish a baseline with search, then use periodic fetch-unread checks

to catch new inbox arrivals and targeted search checks when the topic has clear --from, --subject, --mailbox, --label, or --text filters.

  • Do not assume a delivery target. Return updates through the current agent conversation or the

explicit destination the user asked for.

  • Reasonable starting cadences are: 5-10 minutes for one active thread, 30-60 minutes for a

narrow topic watch, and 2-4 hours for inbox digests. Avoid sub-5-minute polling unless the user explicitly asks for it.

  • For Outlook-heavy polling, keep concurrency modest and prefer one warm session per parallel

worker if several live checks will run close together.

Warm Sessions

surface session start --account uni
surface session list
surface session stop sess_01...

Parallel Read Guidance

Read-only commands may be run in parallel. Live probes passed for:

  • two Gmail searches on the same account
  • two cold Outlook searches on the same account
  • Gmail and Outlook searches at the same time
  • two separate Outlook warm sessions searched at the same time
  • two searches sharing one Outlook warm session

For Outlook, keep concurrency modest because each cold command or warm session uses browser resources. If planning multiple concurrent Outlook operations, prefer one warm session per parallel worker. Reusing the same --session concurrently works in the tested case but can be slower due to contention.

Read One Thread

surface mail thread get thr_01...
surface mail thread get thr_01... --refresh
surface mail thread get thr_01... --refresh --session sess_01...

Read One Message

surface mail read msg_01...
surface mail read msg_01... --refresh
surface mail read msg_01... --refresh --session sess_01...
surface mail read msg_01... --mark-read

Attachments

surface attachment list msg_01...
surface attachment download msg_01... att_01...

Compose And Send

surface mail send --account personal_2 --to recipient@example.com --subject "Hello" --body "Test"
surface mail send --account personal_2 --to recipient@example.com --subject "Hello" --body "Test" --draft
surface mail reply msg_01... --body "Thanks"
surface mail reply msg_01... --body "Thanks" --draft
surface mail reply-all msg_01... --body "Thanks everyone"
surface mail forward msg_01... --to recipient@example.com --body "FYI"

Mailbox Actions

surface mail archive msg_01...
surface mail mark-read msg_01...
surface mail mark-unread msg_01...
surface mail rsvp msg_01... --response accept

Workflow

  1. Start with surface account list if the target account is unclear.
  2. Use surface auth status before assuming a provider is ready.
  3. Use surface account identity show <account> if summary.needs_action looks wrong; add

--name-alias or --email-alias with surface account identity set when the mailbox address alone is not enough to identify the user in message bodies.

  1. For triage, prefer fetch-unread or search and inspect the returned thread/message refs.
  2. If you expect several live Outlook reads in a row, start a warm session first and reuse its session_id.
  3. For a thread watch, use surface mail thread get <thread_ref> --refresh and compare the newest

message state against the stored prior observation before notifying.

  1. For a topic watch, start with search to set the baseline, then use fetch-unread for new

inbox arrivals plus targeted search when the watch has narrow filters.

  1. Read only the messages you need with surface mail read <message_ref>.
  2. For passive watching, do not mutate read state. If the user explicitly asks you to triage unread

mail and write safety is enabled, marking handled messages read after reporting is acceptable unless the user asks to keep them unread.

  1. Act using refs from Surface output. Do not rely on array positions from previous JSON.

Important Rules

  • Surface outputs JSON on stdout. Parse it instead of scraping terminal text.
  • Use message_ref and thread_ref for follow-up commands.
  • search accepts structured filters for sender, subject, mailbox, and labels in addition to raw --text.
  • session start is the explicit opt-in path for warm Outlook read sessions. In v1, --session is supported on search, fetch-unread, thread get --refresh, and read.
  • thread get --refresh is the thread-level live refresh path for automations that watch a specific conversation.
  • read is cache-first by default. Use --refresh when you need live provider state.
  • the first session-backed Outlook query still pays mailbox setup cost; the main win is faster follow-on live reads in the same mailbox session
  • read does not download attachments. Use surface attachment download.
  • fetch-unread and search do not mutate mailbox state.
  • passive watching should stay read-only; do not mark watched mail read unless the user explicitly asks
  • if the user asks for unread triage rather than passive watching, mark-read or read --mark-read

is acceptable only after reporting and only when local write safety allows it

  • watcher notifications should go to the user-requested destination; do not invent a session,

channel, or DM target

  • --draft is the safe compose path when you do not need to send immediately.

Provider Notes

  • Gmail and Outlook both support read, search, unread fetch, attachments, send/reply/forward,

archive, mark-read, mark-unread, RSVP, and --draft.

  • Gmail RSVP requires Google Calendar API access on the authenticated account. If RSVP returns a

reauth error, re-run surface auth login <account>.

Safety

  • Respect local write-safety policy from ~/.surface-cli/config.toml and any SURFACE_* env vars.
  • Do not send mail unless write safety is enabled locally.
  • Prefer the configured sink recipients from local config; do not invent recipients.
  • For send-like tests, use --draft unless the task explicitly requires a live send.
  • When testing live sends, only send to recipients already configured locally for safe testing.

Examples

surface account list
surface auth status
surface session start --account uni
surface mail fetch-unread --account uni --limit 10
surface mail fetch-unread --account uni --session sess_01... --limit 10
surface mail search --account personal_2 --from alerts@example.com --subject 'discount' --mailbox inbox --label unread --limit 5
surface mail thread get thr_01... --refresh --session sess_01...
surface mail read msg_01... --refresh --session sess_01...
surface mail read msg_01... --mark-read
surface attachment list msg_01...
surface attachment download msg_01... att_01...
surface mail reply msg_01... --body 'Thanks' --draft
surface mail archive msg_01...

平台分布

OpenClaw

95.66%
按下载量换算1,789

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills