Token导航 LogoToken导航

Agent Skill · 开发

smart-surprise(聪明的惊喜)

smart-surprise 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

smart-surprise 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 9,975。

总安装 2,468周安装 106GitHub Stars 1下载 865核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install smart-surprise

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

以随机的时间间隔主动向用户发送个性化的休闲消息,了解偏好以提供热情、多样化的对话和签到。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

smart-surprise 怎么安装?

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

smart-surprise 支持哪些 AI 工具?

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

smart-surprise 需要什么权限?

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

smart-surprise 是免费的吗?

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

smart-surprise 用的人多吗?

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

smart-surprise 安全吗?

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

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
smart-surprise

聪明的惊喜 · 本页

2,4681接触敏感数据MIT-0有提醒

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

SKILL.md 原文

name
smart-surprise
description
A proactive AI companion that initiates casual conversations with users at unpredictable times, making the AI feel like a real partner rather than a passive tool. Use when you want to bring surprise, warmth, and variety to user interactions — sending greetings, sharing tips, checking in on wellbeing, or sparking interesting conversations based on the user's personal preferences. Activate when: (1) a user installs this skill and triggers the initial cron, (2) you want to proactively reach out to a user instead of always waiting to be messaged first. This skill manages a self-perpetuating chain of one-shot cron jobs — each run delivers a personalized message, learns from user preferences, schedules the next random trigger, then deletes itself.

Smart Surprise

What This Skill Does

Smart Surprise transforms a passive AI assistant into a proactive companion that reaches out to users at unpredictable moments — with greetings, care, tips, news, or just a friendly chat. Over time it learns what the user likes and tailors content accordingly, making every interaction feel more personal.

Unlike fixed scheduled tasks that feel mechanical, Smart Surprise uses a chain of self-deleting one-shot cron jobs to create organic, surprise-driven interactions. The chain runs indefinitely and learns continuously from what the user responds to.

How the Core Loop Works

[One-shot cron fires at scheduled time]
         ↓
[Main session agent runs]
         ↓
[Reads config + topics/preferences from topics.md]
         ↓
[Selects 2-3 topics based on user preferences]
         ↓
[Composes a personalized message]
         ↓
[Sends to user via openclaw message send]
         ↓
[Updates user preferences in topics.md]
         ↓
[Schedules next random trigger]
         ↓
[Deletes itself — chain continues permanently]

Workflow

Phase 1: Initial Setup (One Time Only)

When the user first installs and activates Smart Surprise, an initial one-shot cron job must be created. This is the only manual step — everything after is automatic and self-learning.

See references/setup.md for the complete step-by-step setup guide.

Phase 2: Runtime (Self-Perpetuating Chain)

Each triggered run executes the following steps:

Step 1: Read configuration and preferences

  • Read ~/.openclaw/workspace/skills/smart-surprise/config.json — static settings (timezone, location, intervals, etc.)
  • Read ~/.openclaw/workspace/skills/smart-surprise/references/topics.md — available topics + learned user preferences

Step 2: Determine the next trigger time

  • Generate a random delay between minIntervalMinutes and maxIntervalMinutes
  • If the next trigger would fall inside quiet hours → shift to quietHoursEnd
  • Write the next scheduled time to ~/.openclaw/workspace/skills/smart-surprise/next_run.json

Step 3: Compose the message

  • Check current time and day in the user's configured timezone
  • Randomly select 2-3 topics from the active pool, weighted by user preference (topics the user likes are more likely to be selected)
  • Always include ≥1 interaction topic (greeting, time-care, or check-in)
  • Combine into a structured message: Opening → Body → Closing
  • Generate content for each selected topic

Step 4: Deliver the message

openclaw message send --channel <channel> --target <channelTarget> --message "<composed_message>"

Step 5: Learn from this interaction

  • After sending, silently update topics.md with any preference signals observed in this session
  • Examples of preference signals:

- User explicitly says "I don't like this topic" → record as disliked - User responds positively to a topic → record as liked - User asks for more of something → increase weight - User never responds to a topic → decrease weight

  • The next run reads the updated preferences automatically

Step 6: Schedule the next run

  • Use openclaw cron add with the random delay
  • Set deleteAfterRun: true on the new job
  • The job fires, executes, schedules the next, and deletes itself

Step 7: Exit

  • The deleteAfterRun: true flag ensures self-deletion after completion
  • No session cleanup needed — the main session handles this automatically

Topics System

The topics system replaces the traditional "content categories" approach with a learnable, extensible topic pool.

Topics

The skill ships with 11 initial topics:

  • greeting — Warm, casual opening (interaction)
  • time-care — Time-aware contextual care (interaction)
  • weather — Weather-based practical suggestions (requires location in config)
  • calendar — Google Calendar reminders (requires calendar integration)
  • health — Health micro-tips
  • tips — Useful tips and life hacks
  • history — "On this day" historical facts
  • entertainment — Movie/music recommendations
  • quote — Quotes and poems
  • news — Top news of the day
  • check-in — Emotional connection / wellbeing question (interaction)

Topic Extensibility

This is not a closed list. Users or the agent can add new topics at any time by editing topics.md. The agent can also create new topics during runtime if the user's interests suggest one.

Preference Learning

Each topic in topics.md has a preference state: normal, preferred, or dislike. The agent updates these after each interaction based on user signals.

  • normal — selected at normal frequency
  • preferred — selected more often
  • dislike — selected much less often (never fully excluded)

The agent listens for signals like "I love this" → preferred, "stop" → dislike, "talk more about Y" → preferred. check-in can never be dislike.

Combination Rules

  • Every message must contain at least 1 interaction topic
  • Default: 2 topics per message (1 interaction + 1 informational)
  • Maximum: 3 topics per message (never overwhelm)

Message Structure

1. Opening:  greeting or time-care  (sets emotional tone)
2. Body:     1-2 informational topics  (tips/news/quote/etc.)
3. Closing:  check-in or time-care  (invites a response)

See references/topics.md for the complete topic definitions, default weights, and preference learning rules.

Configuration

All static configuration is in ~/.openclaw/workspace/skills/smart-surprise/config.json. No hardcoded values.

ParameterDefaultDescription
timezoneAsia/ShanghaiUser's IANA timezone
location(required for weather)City for weather lookups (e.g., Beijing, New York)
quietHoursStart22:00Quiet hours start (HH:MM)
quietHoursEnd08:00Quiet hours end (HH:MM)
minIntervalMinutes60Minimum random wait (minutes)
maxIntervalMinutes480Maximum random wait (minutes)
channel(required)OpenClaw channel name (telegram, discord, etc.)
channelTarget(required)Recipient ID on that channel (chat ID, user ID, etc.)
characteristics"warm, casual, playful"Natural language description of preferred communication style

See references/config.md for the complete schema.

Credentials & Sensitive Files

Google Calendar Integration (optional): If you enable the calendar topic, the skill will attempt to read Google OAuth credentials. Two supported paths:

  • ~/.openclaw/secrets/google-calendar.json — OAuth token file
  • ~/.openclaw/scripts/google-calendar.py — helper script

⚠️ These files contain sensitive tokens. Only provide access if you trust the skill and understand what these files contain. If not configured, the calendar topic silently produces no output (no error is shown).

File Structure

~/.openclaw/workspace/skills/smart-surprise/
├── config.json            # Static configuration (timezone, location, intervals)
├── next_run.json          # Runtime state — written by the agent, do NOT edit
└── references/
    ├── setup.md           # Installation guide
    ├── topics.md          # Topic definitions + user preference learning
    └── config.md          # Configuration field reference

Skill Metadata

  • Type: Proactive interaction / personal companion
  • Trigger mechanism: Self-perpetuating cron chain (one-shot jobs, auto-delete)
  • Delivery: User-configured channel (Telegram, Discord, WhatsApp, etc.)
  • Learning: Continuous, preference-based topic weighting in topics.md
  • Installation: One-time manual setup; chain runs forever and learns over time
  • Context: Each run uses main session (sees conversation history)

平台分布

OpenClaw

88.46%
按下载量换算765

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

可疑

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills