← 返回 Skills 市场
krisco65

agent-wake

作者 krisco65 · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
445
总下载
0
收藏
4
当前安装
2
版本数
在 OpenClaw 中安装
/install agent-wake
功能描述
Wake an OpenClaw agent session from an external script or process. Use when a background task (Claude Code CLI, cron job, webhook, price alert, or any script...
使用说明 (SKILL.md)

agent-wake

Wake your OpenClaw agent from any external process using the gateway HTTP API.

How it works

scripts/agent-wake.py calls POST /tools/invoke with the cron tool, firing a wake event into the agent's session. The agent receives the event text as a system message and responds immediately in the correct channel.

Quick start

python agent-wake.py "Task finished -- brief summary" "YOUR_DISCORD_CHANNEL_ID"

Setup (one-time)

See references/setup.md for:

  • Enabling the cron tool over HTTP (required -- blocked by default)
  • Setting GATEWAY_TOKEN
  • Finding your Discord channel ID

Usage patterns

End of a Claude Code CLI task

Add to the task prompt:

When done, run: python "/path/to/agent-wake.py" "Task done -- summary here" "CHANNEL_ID"

From any Python script

import subprocess
subprocess.run([
    "python", "/path/to/agent-wake.py",
    "Price alert triggered -- AAPL crossed $200",
    "1475232925724315740"
])

Standalone (wake main session)

python agent-wake.py "Backup completed successfully"

Omit channel ID to wake the main session (response goes to default channel).

What the agent receives

The event text is injected as a system message. Be specific -- the agent acts on what you write:

Build finished -- 3 errors fixed, tests passing. Send your response to Discord channel 1475232925724315740...

Script location

scripts/agent-wake.py -- copy this wherever your tasks run. No dependencies beyond Python stdlib.

安全使用建议
The included Python script appears to do exactly what the description says: post a wake event to the local OpenClaw gateway using a gateway auth token. However, the registry metadata incorrectly lists no required credentials while the SKILL.md and script require a GATEWAY_TOKEN (or read OPENCLAW_GATEWAY_TOKEN from ~/.openclaw/gateway.cmd). Before installing or running this: 1) confirm where you should store the gateway token and that the registry metadata is updated; 2) ensure the gateway URL is a trusted, local endpoint (default is http://localhost:18789) and that enabling the cron tool over HTTP is acceptable for your environment; 3) protect the gateway token (do not commit a .env with the token into version control); and 4) if you plan to run this from external or networked environments, consider network-level protections so the gateway cannot be invoked by untrusted actors. If you want to proceed, update the skill/metadata to explicitly declare GATEWAY_TOKEN as a required credential so its needs are clear.
功能分析
Type: OpenClaw Skill Name: agent-wake Version: 1.0.1 The skill is designed to wake an OpenClaw agent session via a local gateway, injecting a user-provided message as a system event. It accesses the `GATEWAY_TOKEN` for authentication (from environment, local .env, or `~/.openclaw/gateway.cmd`) and makes an HTTP POST request to `http://localhost:18789/tools/invoke`. While the core functionality involves injecting text that the AI agent will act upon (a form of prompt injection), this is the explicit and documented purpose of the skill, and the script itself adds instructions to *constrain* the agent's response (e.g., 'Do not respond anywhere else.'), not to manipulate it maliciously. There is no evidence of data exfiltration, unauthorized execution, persistence, or other malicious intent from the skill itself. The `references/setup.md` clearly outlines the required manual configuration to allow the `cron` tool, which is a prerequisite for the skill's operation, not a malicious action.
能力评估
Purpose & Capability
The SKILL.md and the included script require a gateway auth token (GATEWAY_TOKEN or OPENCLAW_GATEWAY_TOKEN read from ~/.openclaw/gateway.cmd), but the registry metadata lists no required environment variables or credentials. That mismatch is incoherent: a wake tool legitimately needs the gateway token, and the metadata should declare it. Other than that, the requested actions (POST to /tools/invoke on the gateway) align with the stated purpose.
Instruction Scope
The runtime instructions and script are narrowly scoped: they load a local .env (script directory only), optionally read gateway.cmd from ~/.openclaw, and POST a wake event to the local gateway /tools/invoke endpoint. The README instructs enabling the cron tool over HTTP and setting the gateway token. The skill does not instruct reading unrelated system files or transmitting data to third-party endpoints.
Install Mechanism
No install spec; this is an instruction-only skill with a small Python script. Nothing is downloaded or written to disk by an installer. Risk from installation is low.
Credentials
The functionality reasonably requires a gateway auth token, and the SKILL.md declares GATEWAY_TOKEN as required, but the registry metadata omitted it. The script also reads OPENCLAW_GATEWAY_TOKEN from gateway.cmd—this is relevant to the purpose but the lack of declared credentials in the registry is a red flag for packaging/metadata correctness and could lead to accidental misconfiguration or unintended exposure.
Persistence & Privilege
The skill does not request permanent presence, does not set always:true, and does not modify other skills or system-wide settings. It merely invokes the gateway API when executed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-wake
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-wake 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: removed broad .env scanning; now only reads local .env next to script or gateway token from gateway.cmd. Added explicit credential declaration in metadata.
v1.0.0
Initial release: wake your OpenClaw agent from any external script or Claude Code CLI task via the gateway HTTP API
元数据
Slug agent-wake
版本 1.0.1
许可证
累计安装 4
当前安装数 4
历史版本数 2
常见问题

agent-wake 是什么?

Wake an OpenClaw agent session from an external script or process. Use when a background task (Claude Code CLI, cron job, webhook, price alert, or any script... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 445 次。

如何安装 agent-wake?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-wake」即可一键安装,无需额外配置。

agent-wake 是免费的吗?

是的,agent-wake 完全免费(开源免费),可自由下载、安装和使用。

agent-wake 支持哪些平台?

agent-wake 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 agent-wake?

由 krisco65(@krisco65)开发并维护,当前版本 v1.0.1。

💬 留言讨论