Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

what-just-happened刚刚发生了什么

Agent Skill

what-just-happened 用于辅助安全审计、权限检查和凭据风险排查,适合在 OpenClaw 中需要复核安全边界、认证流程或敏感配置时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,061

周安装

411

GitHub Stars

公开资料未说明

下载量

3,255
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install what-just-happened

简介

网关重启后自动检查日志并报告最近事件摘要。

  • 识别启动、信号变更、认证变动等关键状态变化。
  • 输出简明消息便于运维人员快速掌握系统状况。
  • 依赖本地日志文件可读权限与时间戳完整性。what-just-happened 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 不替代完整审计流程,仅提供初步状态快照。

SKILL.md

name
what-just-happened
displayName
What Just Happened
description
When the gateway comes back online, check recent logs and post a short message about what happened (restart, SIGUSR1, auth change, reconnect). User sees the response in TUI or Telegram.
version
1.1.0

What Just Happened

Description

When the gateway comes back online, check recent logs and post a short message about what happened (restart, SIGUSR1, auth change, reconnect). User sees the response in TUI or Telegram.

What Just Happened

Standalone skill with its own GitHub repo and OpenClaw/ClawHub page. After a gateway restart or reconnect, it summarizes what happened by reading recent gateway logs (and optionally gateway-guard restart logs) and posts a short, user-facing message. The user should see the response in their TUI or Telegram.

Usage

  • Gateway just came back online and you want the user to see what happened (use watcher or cron).
  • User asks "what happened to the gateway?" or "why did it reconnect?"
  • You want a brief summary of recent restarts/errors and a proposed solution (e.g. gateway-guard).

Commands

python3 <workspace>/skills/what-just-happened/scripts/report_recent_logs.py [--minutes N] [--json]
  • --minutes N — Look at log lines from the last N minutes (default 5).
  • --json — Emit a single JSON object with keys like summary, restart, reason, suggestGatewayGuard.

Output is a short paragraph suitable for posting. When the cause is auth/config, the script includes a tip with the ClawHub link: clawhub install gateway-guard — https://clawhub.ai/skills/gateway-guard. ClawHub: Update this link when the new instance is live.

Two ways to run

  1. Every time the gateway comes back online (recommended)

You must install the gateway-back watcher or it will never auto-trigger. Run once (from the skill dir):

   cd workspace/skills/what-just-happened
   ./scripts/install_gateway_back_watcher.sh

The install script loads a LaunchAgent that runs every 15s. When it sees the gateway go from down → up, it triggers the summary to TUI or Telegram. Verify it's loaded: launchctl list com.openclaw.what-just-happened (should show a PID). If you see "not loaded", run the install script again.

To stop: launchctl unload ~/Library/LaunchAgents/com.openclaw.what-just-happened.plist

  1. Cron (periodic)

A cron job runs every 2 minutes. When it runs, the agent checks the last 5 minutes of logs and, if a restart happened, announces to the user. Good as a fallback; for immediate feedback on reconnect, use the watcher above.

  1. Manual

User says "what just happened?" or "I restarted the gateway" and the orchestrator runs the script and replies in chat.

How it works

Reads OPENCLAW_HOME/logs/gateway.log and optionally gateway-guard.restart.log. Looks for recent shutdown/restart/SIGUSR1/reload lines and produces a plain-language summary. Suggests gateway-guard (with ClawHub install link) when the cause was auth or config change.

Delivery (TUI or Telegram)

  • Gateway-back watcher and cron both trigger an agent turn with announce (deliver). The OpenClaw gateway delivers that to the configured channel(s)—typically the last-used channel (TUI webchat) and/or Telegram if configured. The user sees the summary in their TUI or Telegram.
  • Manual "what just happened?" is replied to in the current chat (TUI).

Integration summary

TriggerHowUser sees response
Gateway comes back onlineInstall install_gateway_back_watcher.sh (LaunchAgent every 15s)TUI or Telegram (announce)
Cron every 2 minOpenClaw cron job with announceTUI or Telegram (announce)
ManualUser says "what just happened?"Current chat (TUI)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.14%
按下载量换算2,511

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills