Skill: imjszhang/js-x-monitor (version 1.0.0)

--- name: js-x-monitor description: "X.com (Twitter) 账号监控自动化 — 定时抓取指定账号最新推文，发现新内容即时推送通知到消息渠道" version: 1.0.0 metadata: openclaw: emoji: "\U0001F4E1" os: - windows - macos - linux requires: bins: - node --- # js-x-monitor-skill X.com (Twitter) 账号监控自动化 Skill。 ## 描述 定时监控指定 X.com 账号的最新推文，发现新内容即时推送通知到消息渠道（飞书/微信/Discord）。适合跟踪行业动态、竞品信息、技术趋势等场景。 ## 适用场景 - 跟踪技术大牛的最新观点 - 监控竞品账号的产品动态 - 收集行业资讯和趋势 - 自动化信息收集工作流 ## 前置依赖 - OpenClaw >= 2026.3.0 - js-eyes 插件 >= 1.4.0 - js-search-x 技能 >= 1.0.0 - 浏览器已登录 X.com ## 安装 ```bash openclaw skill install js-x-monitor ``` ## 配置 初始化配置： ```bash openclaw x-monitor init ``` 编辑 `~/.openclaw/x-monitor/config.json`： ```json { "accounts": [ { "username": "karpathy", "enabled": true }, { "username": "OpenAI", "enabled": true } ], "notification": { "channels": ["feishu"], "includeRetweets": false, "includeReplies": false, "summaryLength": 100 }, "deduplication": { "method": "id_and_hash", "historyDays": 30 }, "checkInterval": 3600 } ``` ## 使用 ### 添加监控账号 ```bash openclaw x-monitor add <username> ``` ### 启动监控 ```bash openclaw x-monitor start ``` ### 查看状态 ```bash openclaw x-monitor status ``` ## AI 工具 本 Skill 注册以下 AI 工具： | 工具名 | 描述 | |--------|------| | `x_monitor_add_account` | 添加监控账号 | | `x_monitor_remove_account` | 移除监控账号 | | `x_monitor_list_accounts` | 列出监控账号 | | `x_monitor_get_status` | 获取监控状态 | | `x_monitor_test_account` | 测试单个账号 | ## 数据存储 - 状态文件：`~/.openclaw/x-monitor/state/` - 配置文件：`~/.openclaw/x-monitor/config.json` ## 开源协议 MIT

path: docs/QUICKSTART.md
content: # 快速开始

## 1. 安装 Skill

```bash
# 通过 ClawHub 安装（推荐）
openclaw skill install js-x-monitor

# 或手动安装
git clone https://github.com/imjszhang/js-x-monitor-skill.git
cd js-x-monitor-skill
openclaw skill install --path .
```

## 2. 前置检查

确保以下组件已安装并运行：

```bash
# 1. 检查 OpenClaw
openclaw --version

# 2. 检查 JS-Eyes（浏览器扩展）
openclaw js-eyes status

# 3. 检查 js-search-x 技能
openclaw skill list | grep js-search-x
```

确保浏览器已登录 X.com。

## 3. 初始化

```bash
openclaw x-monitor init
```

这会创建配置文件在 `~/.openclaw/x-monitor/config.json`。

## 4. 添加监控账号

```bash
openclaw x-monitor add karpathy
openclaw x-monitor add OpenAI
openclaw x-monitor add elonmusk
```

## 5. 测试

```bash
# 测试单个账号
openclaw x-monitor test karpathy

# 查看所有监控账号
openclaw x-monitor list
```

## 6. 启动监控

```bash
openclaw x-monitor start
```

监控任务将每小时运行一次。

## 7. 查看状态

```bash
openclaw x-monitor status
```

## 8. 停止监控

```bash
openclaw x-monitor stop
```

## 配置说明

编辑 `~/.openclaw/x-monitor/config.json`：

```json
{
  "accounts": [
    {
      "username": "karpathy",
      "enabled": true
    }
  ],
  "notification": {
    "channels": ["feishu"],
    "includeRetweets": false,
    "includeReplies": false,
    "summaryLength": 100
  },
  "deduplication": {
    "method": "id_and_hash",
    "historyDays": 30
  },
  "checkInterval": 3600
}
```

## 故障排查

### Q: 测试时提示 "x_get_profile" 不存在
A: 确保 js-search-x 技能已安装：`openclaw skill install js-search-x`

### Q: 收不到通知
A: 检查消息渠道配置，确保 OpenClaw 的 channel 已正确配置

### Q: 状态文件写入失败
A: 检查目录权限：`ls -la ~/.openclaw/x-monitor/`

## 获取帮助

```bash
openclaw x-monitor --help
```

或访问 [GitHub Issues](https://github.com/imjszhang/js-x-monitor-skill/issues)


path: package.json
content: {
  "name": "js-x-monitor-skill",
  "version": "1.0.0",
  "description": "X.com 账号监控 Skill for OpenClaw",
  "author": "imjszhang",
  "license": "MIT",
  "private": true,
  "engines": {
    "node": ">=18.0.0"
  }
}


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)