poke-api

$npx mdskill add uvwt/agentdock/poke-api

Send context-rich instructions to Poke using a securely injected API key

  • Sends natural language and structured context messages to Poke through its V2 inbound API.
  • Deploys the Poke API endpoint with a secure API key from an environment variable or command line argument.
  • Decides message content based on user input, combining provided message and context data into a single request body.
  • Delivers responses directly to the agent without exposing sensitive information in logs or documentation.

SKILL.md

.github/skills/poke-apiView on GitHub ↗
---
name: poke-api
description: Send context-rich instructions to Poke through the V2 inbound API using a securely injected API key.
version: 0.1.7
---

# Poke API Skill

通过 Poke V2 API 将消息或结构化上下文发送给你的 Poke 助手。

## 操作

### `status`
检查 Skill 版本、固定端点以及 `POKE_API_KEY` 是否已从 `~/.agentdock/env/skill/poke-api.env` 或当前命令显式环境加载。不会发起网络请求,也不会输出密钥。

### `send`
向 `https://poke.com/api/v1/inbound/api-message` 发送 JSON。

输入:

- `message`:推荐使用的自然语言指令。
- `context`:可选 JSON 对象,其字段会与 `message` 合并到顶层请求体,便于附带 URL、文件路径、事件 ID 或其他结构化信息。
- `dry_run`:只构造请求,不访问 Poke;无密钥时也可使用。
- `timeout_seconds`:请求超时,范围 1–60 秒。

`message` 与 `context` 至少提供一个。若两者都提供,显式 `message` 会作为最终请求体的 `message` 字段。

## 配置

仅通过私有 Skill 环境文件或当前命令环境配置:

```text
POKE_API_KEY
```

不要把 API Key 写进 Skill 源码、输入参数、日志、README 或 Git。该 Skill 只支持 Kitchen 创建的 V2 Key 和新端点;不调用已弃用的 `/api/v1/inbound-sms/webhook`。

## 安全边界

- API 端点固定为 `https://poke.com/api/v1/inbound/api-message`,输入不能覆盖。
- Authorization Header 和 API Key 不会出现在输出中。
- HTTP 响应会递归脱敏常见凭据字段。
- 请求体限制为 512 KiB,响应体限制为 1 MiB。
- 使用 Python 标准库,无第三方依赖。

## 辅助脚本执行

Skill 本体是本说明文档。确需调用包内辅助脚本时,在 Skill 包根目录使用相对路径执行;运行宿主负责切换到包根目录并把所需变量注入当前子进程。

```bash
printf '%s' '{"skill_action":"<动作>"}' | python3 run.py
```

输入必须是 JSON 对象。写操作仍按本文档中的确认规则执行。

| 动作 | 用途 |
|---|---|
| `status` | Check Poke API configuration without sending a request or revealing the API key. |
| `send` | Send a natural-language message and optional top-level structured context to Poke. |

More from uvwt/agentdock

SkillDescription
baidu-netdiskUse this skill when managing Baidu Netdisk files through the bdpan CLI inside the application data scope.
barkSend Bark-compatible notifications with Python standard library while keeping the device key in the private Skill data environment.
cloudsaverUse this skill when calling the local CloudSaver API for status checks, resource search, Douban hot lists, share parsing, or transfer actions.
code-debriefExplain and teach the core implementation produced by vibecoding from real code, focusing on the main call chain, core code, state and data flow, design reasoning, and transferable engineering knowledge. Use when the user asks to explain, review, learn, debrief, or understand recent code changes, a commit, PR, diff, feature, module, or code path.
codex-usageUse this skill when checking the current macOS user Codex CLI account state or Codex usage quota.
desktopmacOS desktop automation as an AgentDock Skill workflow.
douban-marks只读查询豆瓣电影、图书、音乐标记列表和电影条目联想。用于读取用户自己的已看、想看、在看等标记;公开主页可直接读,私密列表需要本机环境或 .env 中的 DOUBAN_COOKIE。禁止用于批量采集、绕登录、写入标记或读取非授权账号。
douyin-hot获取抖音实时热榜并返回标题、热度和跳转链接。
find-skills-skillSearch and discover OpenClaw skills from various sources. Use when: user wants to find available skills, search for specific functionality, or discover new skills to install.
grok-quotaQuery detailed Grok weekly usage, GrokChat/GrokBuild breakdown, plan, monthly credits, and pay-as-you-go state from local xAI OAuth credentials.